PurgeWhenFull filter is not working
PurgeWhenFull filter is not working
I have the PurgeWhenFull filter setup, but it does not automatically delete events when the disk becomes more than 95% full. My disk just fills to 100% and I have to delete events from the command line. Any suggestions?
OK, it works now. I need perl modules
This works now, which is a real relief. As suggested, I looked at the log file. Specifically, I looked at the /tmp/zmdc.log file. This file had an error that said:
The packages that the search yielded were:
So I looked at line 102 of the /usr/local/bin/zmfilter.pl file. It said:Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.3/i386-linux-thread-multi /usr/lib/perl5/5.8.3 /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 102.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 102.
That looked like the syntax for a perl module. So I searched for RPM packages (for FC1) that had the keyword perl in thier name or description. Then I searched that list of RPM packages for the keyword mime.use MIME::Entity;
The packages that the search yielded were:
I installed them, restarted Zoneminder, and the filters worked.perl-MIME-Types - MIME types module for Perl
perl-MIME-tools - Modules for parsing and creating MIME entities in Perl