Filters not executing

Forum for questions and support relating to the 1.26.x releases only.
Post Reply
paxx
Posts: 11
Joined: Tue Mar 01, 2011 4:20 pm

Filters not executing

Post by paxx » Sun Dec 22, 2013 8:33 am

Hello,

I have FILTER_EXECUTE_INTERVAL currently set to 30 seconds and a saved filter that identifies any alarm for the day. I'm trying to offload alarms to an FTP server for backups in case the machine is damaged/stolen.

The filter works fine when manually executed but it doesn't seem to run automatically. Am I missing an option that needs to be checked to enable the filter to run every 30 seconds?

Thanks all,

mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Filters not executing

Post by mastertheknife » Sun Dec 22, 2013 12:43 pm

What ZM version?
Kfir Itzhak.

paxx
Posts: 11
Joined: Tue Mar 01, 2011 4:20 pm

Re: Filters not executing

Post by paxx » Sun Dec 22, 2013 2:26 pm

ZM version 1.26.5 running on CentOS 6.3

thanks for your help!

User avatar
knight-of-ni
Posts: 2244
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Filters not executing

Post by knight-of-ni » Mon Dec 23, 2013 3:07 pm

After creating the filter and clicking the "Save" button, a popup window appears.
Did you check "Run filter in background" before clicking the Save button in the popup window?
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/

sogood007
Posts: 25
Joined: Tue Oct 26, 2004 6:53 pm

Re: Filters not executing

Post by sogood007 » Mon Dec 23, 2013 3:15 pm

When I saw your question, I went to check mine and it also didn't (I just update to 1.26.5) There was error about zmfilter.pl exit status in the log. I tried running it manually and notice it complained about

Code: Select all

Bareword "ZM_DIR_EVENTS" not allowed while "strict subs" in use at /usr/bin/zmfilter.pl line 54.

I notice there is a patch in github of this
https://github.com/ZoneMinder/ZoneMinde ... 087092d065

Code: Select all

-use constant EVENT_PATH => (ZM_DIR_EVENTS=~m|/|)?ZM_DIR_EVENTS:(ZM_PATH_WEB.'/'.ZM_DIR_EVENTS);
 +use constant EVENT_PATH => ($Config{ZM_DIR_EVENTS}=~m|/|)?$Config{ZM_DIR_EVENTS}:($Config{ZM_PATH_WEB}.'/'.$Config{ZM_DIR_EVENTS});
I changed my local copy of zmfilter.pl according, the background filter seems to work after that.

duli
Posts: 7
Joined: Sun Jun 09, 2013 12:42 am

Re: Filters not executing

Post by duli » Thu Dec 26, 2013 3:13 am

Hello, I've just fresh installed zm 1.26.5 in a CentOS 6.5 machine. Everything is working fine.

After activating the purge when full filter, I started to see events getting deleted from database as expected, but the actual event files are not deleted. The disk percentage stays always the same (even after waiting the zmaudit interval time).

This way the filter stays running foverver... I've set the max percentage to 60 hours ago. Now the filter is still deleting events from DB but disk space already is 75%. So I had to manually stop the filter...

How can I further debug this?

mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Filters not executing

Post by mastertheknife » Thu Dec 26, 2013 5:19 pm

Hi,

Filters are broken on v1.26.5.
Kfir Itzhak.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests