Using Filters
-
- Posts: 7
- Joined: Sun Aug 31, 2008 6:02 pm
Using Filters
I attempted to edit the default filter PurgeWhenFull and adjusted it so that it deleted images when the drive reaches 50% full. When I click save it does but when I attempt to submit , nothing shows as being active. When I run a ps -aux, I can see that zmfilter.pl and zmaudit.pl are running. Over several hours I can see that the disk percents shrinks over time and am very confused at why Zoneminder does that. Can someone please clarify the whole process and how I am supposed to set criteria to delete images so that the system will only record when necessary. Zoneminder has a ways to go with ease of use.
RTfM.
zmfilter runs periodically, setting is on options pages somewhere. After you set the purgewhenfull, you can see why the db shrinks automatically because it shrinks by the number of events that you yourself specify in the options for the filter.
Basically, to speed up deletion, the event is deleted from the database, but not from the filesystem. This is done so that the deletes are performed quickly, avoiding hangs in the system that may cause frame drops or other bad side effects of lag. One of the other background daemons, zmupdate maybe, runs around in the background, reconciling the filesystem with the database, at a lower priority I further beleive, so that the analysis and real-time stuff can go along as smoothly as possible.
Ya it sucks, I'm on month four or five, and I'm still reading, I'll be lucky if I'm close to 5% of the stuff (well, 75% through the stuff relevant to my distro, at least). There's tons and tons of stuff here, and a very active community. Happy zoneminding. Zonemindering?
zmfilter runs periodically, setting is on options pages somewhere. After you set the purgewhenfull, you can see why the db shrinks automatically because it shrinks by the number of events that you yourself specify in the options for the filter.
Basically, to speed up deletion, the event is deleted from the database, but not from the filesystem. This is done so that the deletes are performed quickly, avoiding hangs in the system that may cause frame drops or other bad side effects of lag. One of the other background daemons, zmupdate maybe, runs around in the background, reconciling the filesystem with the database, at a lower priority I further beleive, so that the analysis and real-time stuff can go along as smoothly as possible.
Ya it sucks, I'm on month four or five, and I'm still reading, I'll be lucky if I'm close to 5% of the stuff (well, 75% through the stuff relevant to my distro, at least). There's tons and tons of stuff here, and a very active community. Happy zoneminding. Zonemindering?
-h