Page 1 of 2

event auto deletion not working

Posted: Wed Jan 04, 2006 1:28 am
by bhomass
I setup a filter with automatically delete matches set to true.
this used to delete each event soon after it is collected. But, now with the same filter setting, the events don't auto delete anymore, it just accumulates with time.

what could I be doing wrong?

Posted: Wed Jan 04, 2006 1:35 am
by jameswilson
not sure if it will help and id also look in the filter log but, i had this when i enabled things like ftp and smtp without fully configuring them. this caused the filters to stall and i only noticed cos eventually my disk overflowed as purge whenful wouldnt run.

Posted: Wed Jan 04, 2006 6:40 pm
by zoneminder
Is there anything in zmfilter.log?

Phil

Posted: Wed Jan 04, 2006 7:58 pm
by cordel
What do you have set in your filter?

Corey

Posted: Fri Jan 06, 2006 12:49 am
by bhomass
I eliminated all email functions, both from options menu and from filter definition.

there is not much in zmfilter.log except it is scanning for eents.

the filter has two expresssion for selecting 2 monitor ID's, the auto delete box is selected when saved. nothing else!

still the events accumulate and do not auto delete.

Posted: Fri Jan 06, 2006 1:11 am
by jameswilson
if you run that filter do you get any events returned?

Posted: Fri Jan 06, 2006 6:34 pm
by bhomass
yes, by waving my hands in front of the camera, I can generate new events, which, as explained, continue to accumulate.

the filter is defined and saved, I assume that means it must be running.

Posted: Fri Jan 06, 2006 8:18 pm
by cordel
jameswilson wrote:if you run that filter do you get any events returned?
Yes we understand that they are accumulating, but if you run the filter, It should return a list of events that it would preform that action on. If it don't return a list of events, it will not do anything.

So what happens when you run (click submit) in the filter window?
Corey

Posted: Sat Jan 07, 2006 7:44 pm
by bhomass
so, now I understand what the submit button is for.

right now there are a lot of events piled up. when I click on the All button on one of the camera names, a page with the complete list of events popup. I click show filter window, the filter page pops up. I use the pull down to display the filter which I define as
monitor id equal to 3
monitor id equal to 4

when save, I have "automatically delete all matches" checked.
but when I submit, the page that listed all the events becomes blank, and says 0 events. even though that's the monitor with id=3.

according to you then, the filter is not detecting any of these events. what can be wrong?

Posted: Sat Jan 07, 2006 8:09 pm
by jameswilson
what exactly do you want your purge when full filter to do?

Posted: Sat Jan 07, 2006 9:00 pm
by cordel
Okay so you have two lines, if you would have put you filter settings up this would have gone much faster, on the second line you apperently have the first field set to "and" that should be "or", Change it to or and it will work.

Regards,
Corey

Posted: Sun Jan 08, 2006 12:37 am
by bhomass
that's what it was? how embarrassing.

ok, now when I submit, all the right events come up. and after a while the events do automatically get deleted, as I wanted.

one questions though, the event deletion takes a little delay, event when I manually do submit. is the filter suppose to execute right when I hit "submit" button including the delete event step?

Posted: Sun Jan 08, 2006 1:16 am
by jameswilson
no the filter wont execute it will show the db 'matches' from the info you entered in the query. The filter will run every n seconds. you can change the freq in options under reload filter etc default is 300 seconds i think

james

Posted: Mon Jan 09, 2006 5:43 pm
by zoneminder
If you have a lot of events even running filters manually can take a few seconds or more as every event you have has to be checked. The database will optimise this as much as it can but even with extra DB tuning it often will still need to load indexes etc from disk.

Posted: Tue Jan 10, 2006 10:04 am
by SyRenity
Hi.

BTW, Phil, is there a good way to run the filters manually indeed? I think that running zmaudit.pl may perhaps do it, but won't it clash with the one launched each 300 secs?