Don't poll cameras that are not enabled

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Don't poll cameras that are not enabled

Post by knight-of-ni »

I have a couple of wireless IP cameras I occasionally turn on to watch pet activity within the house. It can be pretty amusing sometimes.

When I have the cameras turned off, I un-check the "Enabled" check box under the appropriate monitor. However, Zoneminder 1.25.0 continues to check for the presence of these cameras and fills the log with errors:

Code: Select all

2011-10-04 07:52:17.579210	zmdc	15811	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	
2011-10-04 07:52:17.577830	zmdc	15811	ERR	'zmc -m 3' exited abnormally, exit status 255	zmdc.pl	
2011-10-04 07:52:17.516020	zmc_m1	19574	ERR	Failed to pre-capture monitor 1 (0/1)	zmc.cpp	256
2011-10-04 07:52:17.515912	zmc_m1	19574	ERR	Unable to connect to camera	zm_remote_camera_http.cpp	1069
2011-10-04 07:52:17.515451	zmc_m1	19574	ERR	Can't connect to remote camera: No route to host	zm_remote_camera_http.cpp	101
2011-10-04 07:52:17.511454	zmc_m3	19573	ERR	Failed to pre-capture monitor 3 (0/1)	zmc.cpp	256
2011-10-04 07:52:17.511188	zmc_m3	19573	ERR	Unable to connect to camera	zm_remote_camera_http.cpp	1069
2011-10-04 07:52:17.510548	zmc_m3	19573	ERR	Can't connect to remote camera: No route to host	zm_remote_camera_http.cpp	101
As far as I know, I'm doing everything right here so I am logging this as a feature request.

When a camera is not enabled, Zoneminder should not poll the device.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
PowerRanger
Posts: 23
Joined: Thu Oct 23, 2008 7:42 pm

Re: Don't poll cameras that are not enabled

Post by PowerRanger »

As a possible workaround, have you tried setting 'Function' to none?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Don't poll cameras that are not enabled

Post by knight-of-ni »

Sorry for the late reply.

I can confirm that setting the function to "none" stops the error log from filling up.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Post Reply