I have this filter (see attachment below) setup. It does Not run automatically. Every few days I have to manually click Execute and then manually click the checkbox to select all and scroll down and click Delete.
Why won't it run and delete automatically?
Thanks!
Filter does not run automatically on it's own like it should
Re: Filter does not run automatically on it's own like it should
Try running on the command line if the logs show nothing.
-
Re: Filter does not run automatically on it's own like it should
What log would I be looking at and what would I be looking for in the logs?
Is there docs on how to run from command line so I know where the command and format is to do that?
I found this by searching for "delete" but no idea what no filter found means and this doesn't really look like the filter I posted above:
07/10/2021 03:54:08.269290 zmfilter_3[27657].WAR [main:267] [No filter found for SELECT * FROM `Filters` WHERE `Id` = ? AND( `AutoArchive` = 1
or `AutoVideo` = 1
or `AutoUpload` = 1
or `AutoEmail` = 1
or `AutoMessage` = 1
or `AutoExecute` = 1
or `AutoDelete` = 1
or `UpdateDiskSpace` = 1
or `AutoMove` = 1
or `AutoCopy` = 1
) ORDER BY `Name` with values(3)]
Re: Filter does not run automatically on it's own like it should
This is a good place to check - https://zoneminder.readthedocs.io/en/1. ... vents.html
You need to give it the filter id or name.
You need to give it the filter id or name.
Code: Select all
Usage:
zmfilter.pl [-f <filter name>,--filter=<filter name>]
[--filter_id=<filter id>] | -v, --version
Options:
-f{filter name}, --filter={filter name} - The name of a specific filter
to run --filter_id={filter id} - The id of a specific filter to run -v,
--version - Print ZoneMinder version
-
Re: Filter does not run automatically on it's own like it should
This is all I got using the command line filter:
Search for the filter name only showed this in logs:[root@dvr bin]# zmfilter.pl --filter=PurgeWhenFull
07/10/2021 15:18:06.180082 zmfilter[1805].INF [main:177] [Scanning for events using filter 'PurgeWhenFull']
[root@dvr bin]#
[root@dvr log]# pwd
/var/log
[root@dvr log]# grep -rni PurgeWhenFull ./*
./messages:4923872:Jul 10 15:18:06 dvr zmfilter[1805]: INF [Scanning for events using filter 'PurgeWhenFull']
./zoneminder/zmfilter.log:1:07/10/2021 15:18:06.180082 zmfilter[1805].INF [main:177] [Scanning for events using filter 'PurgeWhenFull']
[root@dvr log]#
Re: Filter does not run automatically on it's own like it should
Anyone have any ideas on why the filter is not automatically working?
-
- Posts: 1373
- Joined: Sat Aug 31, 2019 7:35 am
- Location: San Diego
Re: Filter does not run automatically on it's own like it should
Might be a bug. But it you make a separate filter for default and 2tb, I think you'll find it works.
Re: Filter does not run automatically on it's own like it should
That sounds like a good suggestion, divide and conquer. I'm not convinced having two separate storage locations works well either, but I've never tried that.
-
Re: Filter does not run automatically on it's own like it should
I've divided it up into 2 filters, one for Default storage and one for 2TB storage. I'll see how that goes and report back.
@Magic919 As for having multiple storage locations, that's a non-issue. Simply set in the camera Storage tab settings which one to use.
@Magic919 As for having multiple storage locations, that's a non-issue. Simply set in the camera Storage tab settings which one to use.
Re: Filter does not run automatically on it's own like it should
Well it does look like it is working now. There must be some bug with the more complex expressions.