Page 1 of 1
Auto filter
Posted: Mon Oct 18, 2004 10:24 am
by Ben G
Hi.
Maybe I've got this wrong, but I though that if you saved a filter with the "auto delete" function checked, then the filter would be run at regular intervals and the matching events would be deleted. If that's true, then how do you make it work? My filter's just sat there for days and done nothing. The "upload filters" setting is 300 (seconds?).
What's wrong?
Ben G.
Posted: Mon Oct 18, 2004 12:24 pm
by lazyleopard
Look in the zmfilter.log log file to see what's being done. You may find error messages reported there rather than in /var/log/messages (or syslog, or wherever). If it's working you'll see lines like this:
Code: Select all
Deleting event 66850
Deleting event 67161
Deleting event 67296
Posted: Mon Oct 18, 2004 1:43 pm
by zoneminder
Are you saying that your upload filter works but your delete one doesn't?
If possible perhaps you could post the filter you are trying to use. Either a screenshot or the text entered into the Filters table?
Phil,
Posted: Tue Oct 19, 2004 7:07 am
by Ben G
I think I've found the problem.
/tmp/zmdc.log repeats the following at 5min intervals:
==============
Starting pending process, zmfilter.pl
'zmfilter.pl' starting at 04/10/19 16:59:36, pid = 11187
'zmfilter.pl' started at 04/10/19 16:59:36
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i586-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmfilter.pl ' crashed at 04/10/19 16:59:42, exit status 2
=============
What am I missing?
Ben G
Posted: Tue Oct 19, 2004 8:39 am
by zoneminder
You are missing the 'MIME::Entity' perl module!
I think the essentials of how to install in are in the README (maybe the Troubleshooting section?) but in essence run
to start the perl package manager and then just do
and then quit. If it's your first time running it it will ask you a bunch of questions, just accept the defaults but if it asks you about installing a new Bundle I would defer at this point as it might take a while.
Phil,
Posted: Tue Oct 19, 2004 11:32 am
by Ben G
Thanks, Phil.
I just needed to install perl-MIME-tools and perl-DateManip
Works fine now.
Ben