Bulk add monitors?

Forum for questions and support relating to the 1.24.x releases only.
Locked
photog3
Posts: 1
Joined: Wed Nov 16, 2011 7:20 pm

Bulk add monitors?

Post 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-
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: Bulk add monitors?

Post 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.
Locked