Filter does not run quickly after event
Posted: Mon Aug 17, 2015 10:22 pm
I am using a background filter to run a script when an event is detected. When one event occurs, the script runs quickly after the event closes. When multiple, back-to-back events occur, only the first gets run and the next filter run happens almost 5 minutes later. I'd like the filter to run for all qualifying events shortly after the event concludes.
Please advise how to fix.
Installation is 1.28.1 on Ubuntu 14.04
It uses one IP camera Fcam1 which is a Foscam pan tilt camera.
There are 12 zones defined.
The script that runs take seconds to execute.
Options
FILTER_RELOAD_DELAY = 300
FILTER_EXECUTE_INTERVAL = 20
Filter (I would post an image but some quota has been reached preventing)
Log - from syslog
Please advise how to fix.
Installation is 1.28.1 on Ubuntu 14.04
It uses one IP camera Fcam1 which is a Foscam pan tilt camera.
There are 12 zones defined.
The script that runs take seconds to execute.
Options
FILTER_RELOAD_DELAY = 300
FILTER_EXECUTE_INTERVAL = 20
Filter (I would post an image but some quota has been reached preventing)
Code: Select all
Run in background
Alarm Frames greater than or equal 3
Limit to first <blank>
Execute command on matches /home/bob/zmx.sh
Code: Select all
Aug 17 14:47:16 server zma_m1[21839]: INF [Fcam1: 19000 - Processing at 7.75 fps]
Aug 17 14:49:19 server zma_m1[21839]: INF [Fcam1: 19960 - Gone into alarm state]
Aug 17 14:49:20 server zma_m1[21839]: INF [Fcam1: 19960 - Opening new event 131, alarm start]
Aug 17 14:49:20 server zma_m1[21839]: INF [Fcam1: 19961 - Gone into alert state]
Aug 17 14:49:20 server zma_m1[21839]: INF [ExtendAlarm count: 0, ExtendAlarm frames: 0]
Aug 17 14:49:20 server zma_m1[21839]: INF [Fcam1: 19964 - Gone back into alarm state]
Aug 17 14:49:20 server zma_m1[21839]: INF [Fcam1: 19966 - Gone into alert state]
Aug 17 14:49:21 server zma_m1[21839]: INF [ExtendAlarm count: 0, ExtendAlarm frames: 0]
Aug 17 14:49:21 server zma_m1[21839]: INF [Fcam1: 19970 - Gone back into alarm state]
Aug 17 14:49:21 server zma_m1[21839]: INF [Fcam1: 19972 - Gone into alert state]
Aug 17 14:49:24 server zmc_m1[21836]: INF [Fcam1: 20000 - Capturing at 7.75 fps]
Aug 17 14:49:25 server zma_m1[21839]: INF [Fcam1: 20000 - Processing at 7.75 fps]
Aug 17 14:49:28 server zma_m1[21839]: INF [Fcam1: 20022 - Left alarm state (131) - 112(5) images]
Aug 17 14:49:28 server zma_m1[21839]: INF [Fcam1: 20022 - Closing event 131, alarm end]
Aug 17 14:49:30 server zmfilter[21851]: INF [Executing '/home/bob/zmx.sh /usr/share/zoneminder/events/1/131']
Aug 17 14:50:06 server zma_m1[21839]: INF [Fcam1: 20320 - Gone into alarm state]
Aug 17 14:50:06 server zma_m1[21839]: INF [Fcam1: 20320 - Opening new event 132, alarm start]
Aug 17 14:50:06 server zma_m1[21839]: INF [Fcam1: 20322 - Gone into alert state]
Aug 17 14:50:07 server zma_m1[21839]: INF [Fcam1: 20323 - Gone back into alarm state]
Aug 17 14:50:08 server zma_m1[21839]: INF [Fcam1: 20338 - Gone into alert state]
Aug 17 14:50:15 server zma_m1[21839]: INF [Fcam1: 20388 - Left alarm state (132) - 118(17) images]
Aug 17 14:50:15 server zma_m1[21839]: INF [Fcam1: 20388 - Closing event 132, alarm end]
Aug 17 14:51:33 server zmc_m1[21836]: INF [Fcam1: 21000 - Capturing at 7.75 fps]
Aug 17 14:51:34 server zma_m1[21839]: INF [Fcam1: 21000 - Processing at 7.75 fps]
Aug 17 14:52:59 server zmc_m1[21836]: WAR [Select timed out]
Aug 17 14:52:59 server zmc_m1[21836]: ERR [Connection dropped by remote end]
Aug 17 14:52:59 server zmc_m1[21836]: WAR [Unable to capture image, retrying]
Aug 17 14:52:59 server zma_m1[21839]: WAR [Signal: Lost]
Aug 17 14:53:04 server zmc_m1[21836]: WAR [Select timed out]
Aug 17 14:53:04 server zmc_m1[21836]: ERR [Connection dropped by remote end]
Aug 17 14:53:04 server zmc_m1[21836]: WAR [Unable to capture image, retrying]
Aug 17 14:53:07 server zmc_m1[21836]: WAR [Select timed out]
Aug 17 14:53:07 server zmc_m1[21836]: ERR [Connection dropped by remote end]
Aug 17 14:53:07 server zmc_m1[21836]: WAR [Unable to capture image, retrying]
Aug 17 14:53:10 server zmc_m1[21836]: WAR [Select timed out]
Aug 17 14:53:10 server zmc_m1[21836]: ERR [Connection dropped by remote end]
Aug 17 14:53:10 server zmc_m1[21836]: WAR [Unable to capture image, retrying]
Aug 17 14:53:12 server zmc_m1[21836]: WAR [Select timed out]
Aug 17 14:53:12 server zmc_m1[21836]: ERR [Connection dropped by remote end]
Aug 17 14:53:12 server zmc_m1[21836]: WAR [Unable to capture image, retrying]
Aug 17 14:53:15 server zma_m1[21839]: WAR [Signal: Reacquired]
Aug 17 14:53:15 server zma_m1[21839]: INF [Fcam1: 21639 - Gone into alarm state]
Aug 17 14:53:15 server zma_m1[21839]: INF [Fcam1: 21639 - Opening new event 133, alarm start]
Aug 17 14:53:15 server zma_m1[21839]: INF [Fcam1: 21640 - Gone into alert state]
Aug 17 14:53:21 server zma_m1[21839]: INF [Fcam1: 21690 - Left alarm state (133) - 101(1) images]
Aug 17 14:53:21 server zma_m1[21839]: INF [Fcam1: 21690 - Closing event 133, alarm end]
Aug 17 14:54:01 server zmc_m1[21836]: INF [Fcam1: 22000 - Capturing at 6.76 fps]
Aug 17 14:54:01 server zma_m1[21839]: INF [Fcam1: 22000 - Processing at 6.80 fps]
Aug 17 14:54:50 server zmfilter[21851]: INF [Executing '/home/bob/zmx.sh /usr/share/zoneminder/events/1/132']
Aug 17 14:56:10 server zmc_m1[21836]: INF [Fcam1: 23000 - Capturing at 7.75 fps]
Aug 17 14:56:10 server zma_m1[21839]: INF [Fcam1: 23000 - Processing at 7.75 fps]