PurgeWhenFull

Support and queries relating to all previous versions of ZoneMinder
Locked
julianopillati
Posts: 15
Joined: Tue May 31, 2005 10:30 pm
Contact:

PurgeWhenFull

Post by julianopillati »

Hello, I create one PurgeWhenFull95 for remove old events when ZM events are in 95% of usage. But when ZM go to 95% of usage all events in ZM are deleted, this is normal ? Not is possible remove only the more old events(fisrt day for example when go to in 95%), Without remove all events ? You understand what I like say ?

If is possible, how i do ? Have anyone doc exaplim how do this ?

Thank you!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You need to limit the number of results to the number of events you want to delete. The included PurgeWhenFull filter should already do this.

Phil
julianopillati
Posts: 15
Joined: Tue May 31, 2005 10:30 pm
Contact:

How do this Automatically ?

Post by julianopillati »

Is possible do this Automatically ?

For example, i have ZM with four cameras, and I go travel and come back after 3 month. I like when events use 95% disc Automatically use that filter, is possible ?

Thank you agaim!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is covered in the README and in this FAQ entry.

Phil
riik
Posts: 11
Joined: Sat Dec 31, 2005 11:18 am

Purge

Post by riik »

Hi all,
I just installed latest version of ZM but there are no predefined filters in my filterwindow.

Something I missed?

Regards
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Unless your database didn't get loaded, it should be there.
riik
Posts: 11
Joined: Sat Dec 31, 2005 11:18 am

db not loaded?

Post by riik »

Is there something else that should not work if the database did not load, I have 5 cameras running in modect mode and events occur when they should. I can change settings in the console options window too. Are´nt those variables in the database?

Regards

Rikard
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I don't why your filter should be missing. However it's pretty simple. You can just run the following statement in mysql

Code: Select all

insert into Filters values ('PurgeWhenFull','trms=2&obr1=&cbr1=&attr1=Archived&op1==&val1=0&cnj2=and&obr2=&cbr2=&attr2=DiskPercent&op2=>=&val2=95&sort_field=Id&sort_asc=1&limit=5',0,0,0,0,0,'');
or manually create a filter on disk space sorted by id ascending and with a limit of say 5. Then save it and check the delete box.

Phil
Locked