Page 1 of 1

Bulk add monitors?

Posted: Wed Nov 16, 2011 7:34 pm
by photog3
Is there a method for bulk adding monitors via CLI? I'd like to put together a script I can feed a csv with config details for a large number of monitors. I'd like to preload all of the feeds from my gateway devices into the config, then prune back/rename/enable the feeds. I have about 50 monitors I'd rather not add by hand. Is there a way via CLI to add a remote monitor in disabled mode?

Ideally, I'd like to just declare the IP/hostname of the video server on the CLI, and then have the script add all the ports via standard naming convention.

Thanks-

Re: Bulk add monitors?

Posted: Thu Nov 17, 2011 7:14 am
by Flasheart
Not as far as I know, but it shouldn't be difficult to write a script to shutdown zoneminder, take the data in any format you have, prepare sql statements and add to zoneminder's config table before restarting zm.