Auto filter

Support and queries relating to all previous versions of ZoneMinder
Locked
Ben G
Posts: 10
Joined: Mon Oct 11, 2004 12:03 am
Location: Sydney, Australia

Auto filter

Post 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.
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post 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
Rick Hewett
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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,
Ben G
Posts: 10
Joined: Mon Oct 11, 2004 12:03 am
Location: Sydney, Australia

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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

Code: Select all

perl -MCPAN -eshell
to start the perl package manager and then just do

Code: Select all

install MIME::Entity
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,
Ben G
Posts: 10
Joined: Mon Oct 11, 2004 12:03 am
Location: Sydney, Australia

Post by Ben G »

Thanks, Phil.

I just needed to install perl-MIME-tools and perl-DateManip

Works fine now.

Ben
Locked