Page 1 of 1

filter event parameter - bug?

Posted: Sun Dec 06, 2009 9:45 am
by Philia
Hey all.
I have Zoneminder 1.24.2 (compiled from source).
I'm using it for monitoring my bird feeder. Video is streamed on my website, and on motion detection message is being sent to twitter.

I have a "Cause equal to Motion" filter that executes "/usr/local/bin/twit.py" (python program) on motion detection.
As far as i know Zoneminder is supposed to add a parameter with Monitor Id and Event Id to execution path.
In my case parameter is incorrect. This is tail from /tmp/zmfilter.log

Code: Select all

06.12.2009 10:06:33.697789 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1048']
06.12.2009 10:06:34.693238 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1048' exited with status: 1]
06.12.2009 10:06:34.693997 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1049']
06.12.2009 10:06:35.829240 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1049' exited with status: 1]
06.12.2009 10:06:35.830007 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1050']
06.12.2009 10:06:36.804558 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1050' exited with status: 1]
06.12.2009 10:06:36.805339 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1051']
06.12.2009 10:06:37.823565 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1051' exited with status: 1]
06.12.2009 10:06:37.824324 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1052']
06.12.2009 10:06:38.829558 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1052' exited with status: 1]
06.12.2009 10:07:38.833917 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1048']
06.12.2009 10:07:39.877267 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1048' exited with status: 1]
06.12.2009 10:07:39.878060 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1049']
06.12.2009 10:07:40.884475 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1049' exited with status: 1]
06.12.2009 10:07:40.885248 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1050']
06.12.2009 10:07:41.937297 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1050' exited with status: 1]
06.12.2009 10:07:41.938180 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1051']
06.12.2009 10:07:42.852622 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1051' exited with status: 1]
06.12.2009 10:07:42.853440 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1052']
06.12.2009 10:07:44.297518 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1052' exited with status: 1]
06.12.2009 10:08:44.299033 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1048']
06.12.2009 10:08:45.178011 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1048' exited with status: 1]
06.12.2009 10:08:45.178786 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1049']
06.12.2009 10:08:46.171159 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1049' exited with status: 1]
06.12.2009 10:08:46.171832 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1050']
06.12.2009 10:08:47.280569 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1050' exited with status: 1]
06.12.2009 10:08:47.281342 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1051']
06.12.2009 10:08:48.284647 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1051' exited with status: 1]
06.12.2009 10:08:48.285401 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1052']
06.12.2009 10:08:49.209980 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1052' exited with status: 1]
06.12.2009 10:09:49.211392 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1048']
06.12.2009 10:09:50.126775 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1048' exited with status: 1]
06.12.2009 10:09:50.127547 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1049']
06.12.2009 10:09:51.057027 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1049' exited with status: 1]
06.12.2009 10:09:51.057800 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1050']
06.12.2009 10:09:52.017322 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1050' exited with status: 1]
06.12.2009 10:09:52.018120 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1051']
06.12.2009 10:09:52.952307 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1051' exited with status: 1]
06.12.2009 10:09:52.953079 zmfilter[3849].INF [Executing '/usr/local/bin/twit /var/www/events/1/1052']
06.12.2009 10:09:53.977532 zmfilter[3849].ERR [Command '/usr/local/bin/twit /var/www/events/1/1052' exited with status: 1]
As you can see I'm getting only events with id 1048-1052 when last id in DB is 1525.
I did not have this problem on Zoneminder 1.19.
Is there any way I can fix it?

Regards,
Philia