Only Update Diskspace forum running

Current Development version likely to have breaking changes
Post Reply
Jamo
Posts: 17
Joined: Tue Aug 13, 2013 6:25 am

Only Update Diskspace forum running

Post by Jamo »

Somehow my zoneminder version has ended up on 1.37.25 (development version) but that's fine. It's working well and I'm happy to report / work with a bleeding edge installation.

What I have noticed (not sure if this is new to the version) is that the only background filter that is running is the "UpdateDiskSpace" filter.

I have a background filter that is supposed to purge older events "PurgeOlderThan1Days" that should run but does not seem to.

If I "List matches" from the filter screen it lists the matches correctly.
If I "Execute" from the filter screen it deletes matches correctly.
If I run if from command line using "zmfilter.pl --filter=PurgeOlderThan1Days it works perfectly, deleting events as required.

However, even after "saving" and checking "Run filter in background" and the filter showing the asterisk to indicate it's a background filter, it just doesn't seem to run.

Looking at /var/log/zm
it seems that this filter hasn't run since it was created... in fact only the "UpdateDiskSpace" - filter_id=2 seems to run:

Code: Select all

root@zoneminder:/var/log/zm# ls -alt | grep -i filter
-rw-rw-r--  1 www-data www-data        0 Oct 24 00:00 zmfilter_2.log
-rw-rw-r--  1 www-data www-data 49087835 Oct 23 12:01 zmfilter_2.log.1
-rw-rw-r--  1 www-data www-data  4696292 Oct 22 23:59 zmfilter_2.log.2.gz
-rw-rw-r--  1 www-data www-data  3640624 Oct 22 00:00 zmfilter_2.log.3.gz
-rw-r--r--  1 www-data www-data        0 Oct 21 10:31 zmfilter_8.log
-rw-rw-r--  1 www-data www-data        0 Oct  7 08:17 zmfilter_1.log
-rw-r--r--  1 www-data www-data        0 Oct  6 10:38 zmfilter_5.log
-rw-rw-r--  1 www-data www-data      129 Oct  6 00:02 zmfilter_1.log.1
-rw-rw-r--  1 www-data www-data     1411 Oct  5 23:59 zmfilter_1.log.2.gz
-rw-r--r--  1 www-data www-data        0 Sep 26 08:26 zmfilter_4.log
-rw-r--r--  1 www-data www-data        0 Apr  9  2022 zmfilter.log
-rw-r--r--  1 www-data www-data    46680 Apr  7  2022 zmfilter.log.1
-rw-r--r--  1 www-data www-data        0 Mar 16  2022 zmfilter_3.log
-rw-r--r--  1 www-data www-data       99 Mar 14  2022 zmfilter_3.log.1
Any ideas how to debug?

thanks
James
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Only Update Diskspace forum running

Post by iconnor »

You can do sudo zmdc.pl status zmfilter .pl --filter_id=2 --daemon to see what zmdc.pl thinks about it.

sudo zmdc.pl start zmfilter .pl --filter_id=2 --daemon

Is basically how to web ui tells zmdc.pl to run it, so running that from command line should do the same thing.

ps ax | grep zmfilter should either list it or not.

Maybe it just isn't logging...
Jamo
Posts: 17
Joined: Tue Aug 13, 2013 6:25 am

Re: Only Update Diskspace forum running

Post by Jamo »

Thanks, you're quite right - the filter is running, just not logging :D

Sorry to waste your time on that - just assumed it wasn't because of the lack of log files. Thanks for the commands below, very helpful.
Post Reply