filter 'disk percent greater than 75' deletes any event

Support and queries relating to all previous versions of ZoneMinder
Locked
passt
Posts: 14
Joined: Wed Mar 19, 2008 7:53 am
Location: Germany

filter 'disk percent greater than 75' deletes any event

Post 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
timcraig
Posts: 195
Joined: Mon Dec 10, 2007 5:53 pm
Location: San Jose, CA

Post 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.
passt
Posts: 14
Joined: Wed Mar 19, 2008 7:53 am
Location: Germany

Post 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.
Locked