Page 1 of 1

filter 'disk percent greater than 75' deletes any event

Posted: Fri May 09, 2008 11:21 am
by passt
Hi,

unfortunately I deleted the filter 'PurgeWhenFull', but I created a new one with

Code: Select all

Disk Percent - greater than - 75
Sort by: Date/Time - Asc
Limit to first: 1000 results only
Delete all matches: [x]
When the disk limit 75% was reached, the filter started to work. I expected that only those events were deleted until the disk limit was below 75%, but Zoneminder deleted any event.

Can anybody help?

For testing purpose I connected four network cams with Modect and an image size of 640x480. This results in heavy load of 100% on the machine nearly all the time. Possibly this is the reason.

grtz,
Peter

Posted: Fri May 09, 2008 2:15 pm
by timcraig
That's how the filters work. The disk percentage filter is a logical flag that goes off when the disk percentage hits the target criteria.

What you want to do is set your limit field to 5 or 10 and make sure the sorting is on event id or data/time in ascending order. That way event will be deleted slowly instead of having all your events purged.

You also want to add the rule "Archive Status" - "not archived."

Another thing I do with my delete filters is add the rule "Name"-"matches'-"Event-"(or whatever string you have for event prefixes). The rule makes the delete filter skip events that have been renamed. Sometimes you will rename a event you want to keep but forgot to archive it.

Posted: Fri May 09, 2008 2:45 pm
by passt
Thank you for your hints.

I think the most important is:
What you want to do is set your limit field to 5 or 10 and make sure the sorting is on event id or data/time in ascending order. That way event will be deleted slowly instead of having all your events purged.