Is PurgeWhenFull working?
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
Is PurgeWhenFull working?
Hallo,
recently, I installed from scratch 1.22.3 on a new machine. I have two monitors in
"mocord" and disk gets full quickly.
I did enable (I suppose) PurgeWhenFull, but disk remains at 100%.
"run in background" and " delete all matches" are checked....
This is what I see in zmfilter.log: what is wrong ?
Thanks
Roberto
----------------------------------
15/01/2007 15:09:25.238941 zmfilter[26296].DBG [Reloading filters]
15/01/2007 15:09:25.239849 zmfilter[26296].DBG [Found filter 'PurgeWhenFull']
15/01/2007 15:09:25.240534 zmfilter[26296].DBG [SQL:select E.Id,E.MonitorId,M.Name as Moni
torName,M.DefaultRate,M.DefaultScale,E.Name,E.Cause,E.Notes,E.StartTime,unix_timestamp(E.S
tartTime) as Time,E.Length,E.Frames,E.AlarmFrames,E.TotScore,E.AvgScore,E.MaxScore,E.Archi
ved,E.Videoed,E.Uploaded,E.Emailed,E.Messaged,E.Executed from Events as E inner join Monit
ors as M on M.Id = E.MonitorId where not isnull(E.EndTime) and ( E.Archived = 0 and zmDisk
Percent >= 80 ) order by E.Id asc limit 0, 200]
15/01/2007 15:09:25.240890 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:09:25.249263 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:10:25.251064 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:10:25.275603 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:11:25.279137 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:11:25.287587 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:12:25.291154 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:12:25.299800 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:13:25.303207 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:13:25.311733 zmfilter[26296].DBG [Sleeping for 60 seconds]
--------------------------------
recently, I installed from scratch 1.22.3 on a new machine. I have two monitors in
"mocord" and disk gets full quickly.
I did enable (I suppose) PurgeWhenFull, but disk remains at 100%.
"run in background" and " delete all matches" are checked....
This is what I see in zmfilter.log: what is wrong ?
Thanks
Roberto
----------------------------------
15/01/2007 15:09:25.238941 zmfilter[26296].DBG [Reloading filters]
15/01/2007 15:09:25.239849 zmfilter[26296].DBG [Found filter 'PurgeWhenFull']
15/01/2007 15:09:25.240534 zmfilter[26296].DBG [SQL:select E.Id,E.MonitorId,M.Name as Moni
torName,M.DefaultRate,M.DefaultScale,E.Name,E.Cause,E.Notes,E.StartTime,unix_timestamp(E.S
tartTime) as Time,E.Length,E.Frames,E.AlarmFrames,E.TotScore,E.AvgScore,E.MaxScore,E.Archi
ved,E.Videoed,E.Uploaded,E.Emailed,E.Messaged,E.Executed from Events as E inner join Monit
ors as M on M.Id = E.MonitorId where not isnull(E.EndTime) and ( E.Archived = 0 and zmDisk
Percent >= 80 ) order by E.Id asc limit 0, 200]
15/01/2007 15:09:25.240890 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:09:25.249263 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:10:25.251064 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:10:25.275603 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:11:25.279137 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:11:25.287587 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:12:25.291154 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:12:25.299800 zmfilter[26296].DBG [Sleeping for 60 seconds]
15/01/2007 15:13:25.303207 zmfilter[26296].DBG [Checking filter 'PurgeWhenFull', delete]
15/01/2007 15:13:25.311733 zmfilter[26296].DBG [Sleeping for 60 seconds]
--------------------------------
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
im noticing this too. purge when ful seems not to work. If i load the filter then it doesnt have automatically delete selected
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
definetly a problem for me ill look at the logs a zm machine just missed a break in as its hd was full
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
zmfilter log
so it appears its not donig anything?16/01/07 03:48:55.854716 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:49:55.857283 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:50:55.859849 zmfilter[27452].DBG [Reloading filters]
16/01/07 03:50:55.860490 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:51:55.862379 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:52:55.864923 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:53:55.867468 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:54:55.870004 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:55:55.872640 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:56:55.875068 zmfilter[27452].DBG [Reloading filters]
16/01/07 03:56:55.890460 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:57:55.892614 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:58:55.895132 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 03:59:55.897667 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 04:00:55.900179 zmfilter[27452].DBG [Sleeping for 60 seconds]
16/01/07 04:01:55.902694 zmfilter[27452].DBG [Sleeping for 60 seconds]
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
any ideas lads?
Got 2 systems on 1.22.3 that im manually purging at the mo
Got 2 systems on 1.22.3 that im manually purging at the mo
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
Zoneminder said:
> How many partitions do you have? Is it possible that your 'events' dir is on a different one to
> where the actual events are.
Phil, sorry for the late answer, I was busy (and ill)...
My events dir is not the default, I set it to
/videosurvey/events
( and /videosurvey/images and /videosurvey/sounds )
and yes there are two disks and many partitions involved.
See below the listing of 'df -h'
But all shoud be consistent...
Any idea?
/dev/hda1 4807056 2971868 1591004 66% /
tmpfs 241268 0 241268 0% /lib/init/rw
tmpfs 241268 0 241268 0% /dev/shm
/dev/hda2 4806936 34168 4528580 1% /home
/dev/hda3 28849916 10177832 17206556 38% /var
/dev/hdb1 38741372 13786972 22986440 38% /backup
/dev/hdb2 38180172 36240728 0 100% /videosurvey
> How many partitions do you have? Is it possible that your 'events' dir is on a different one to
> where the actual events are.
Phil, sorry for the late answer, I was busy (and ill)...
My events dir is not the default, I set it to
/videosurvey/events
( and /videosurvey/images and /videosurvey/sounds )
and yes there are two disks and many partitions involved.
See below the listing of 'df -h'
But all shoud be consistent...
Any idea?
/dev/hda1 4807056 2971868 1591004 66% /
tmpfs 241268 0 241268 0% /lib/init/rw
tmpfs 241268 0 241268 0% /dev/shm
/dev/hda2 4806936 34168 4528580 1% /home
/dev/hda3 28849916 10177832 17206556 38% /var
/dev/hdb1 38741372 13786972 22986440 38% /backup
/dev/hdb2 38180172 36240728 0 100% /videosurvey
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
Cordel, thanks for helping me...
> Okay so I'm guessing that you installed the zm web pages some where in /var-/dev/hda and
> have a link from events to /dev/hdb2-/videosurvey?
> Did you hard link or soft link?
> Help clarify your setup with any information that you think might also be useful please
> so we can help.[/quote]
No, I did it differently.
I have the zm web pages in
/var/www/zm
/var/www being DocumentRoot for apache.
Then I made an alias in apache
<IfModule mod_alias.c>
Alias /videosurvey/ /videosurvey/
</IfModule>
This allow apache to get events as they were in the web space.
They really are in /videosurvey (different disk, different partition)
Is this not sufficient for some zm component to find events?
This way I can see events stills from zm (i cannot generate videos, that's
a different question).
You can try:
http://www.occhiostanco.com/videosurvey ... apture.jpg
and you should see an event still....
Since directory listing is enabled in /videosurvey you can see lists of stills:
www.occhiostanco.com/videosurvey/events/3/1001/
You can see also the zm logs (aliased in apache)
www.occhiostanco.com/zmlogs
Last hint:I tried to execute directly the sql statement found in zmfilter.log
and got a syntax error near (zmDiskPercent > 80). Is tha a problem ?
Thank very much
Roberto
> Okay so I'm guessing that you installed the zm web pages some where in /var-/dev/hda and
> have a link from events to /dev/hdb2-/videosurvey?
> Did you hard link or soft link?
> Help clarify your setup with any information that you think might also be useful please
> so we can help.[/quote]
No, I did it differently.
I have the zm web pages in
/var/www/zm
/var/www being DocumentRoot for apache.
Then I made an alias in apache
<IfModule mod_alias.c>
Alias /videosurvey/ /videosurvey/
</IfModule>
This allow apache to get events as they were in the web space.
They really are in /videosurvey (different disk, different partition)
Is this not sufficient for some zm component to find events?
This way I can see events stills from zm (i cannot generate videos, that's
a different question).
You can try:
http://www.occhiostanco.com/videosurvey ... apture.jpg
and you should see an event still....
Since directory listing is enabled in /videosurvey you can see lists of stills:
www.occhiostanco.com/videosurvey/events/3/1001/
You can see also the zm logs (aliased in apache)
www.occhiostanco.com/zmlogs
Last hint:I tried to execute directly the sql statement found in zmfilter.log
and got a syntax error near (zmDiskPercent > 80). Is tha a problem ?
Thank very much
Roberto
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
> Since directory listing is enabled in /videosurvey you can see lists
> of stills:
> www.occhiostanco.com/videosurvey/events/3/1001/
This is just a web shortcut to the event directory. I can see events
also the native way (clicking on them in zm), of course.
My site is
www.occhiostanco.com/zm
temporary user: roberto/roberto
If someone can help me to understand if:
- filter is not active
- filter is not selecting events
- filter cannot delete events
Thanks
Roberto
> of stills:
> www.occhiostanco.com/videosurvey/events/3/1001/
This is just a web shortcut to the event directory. I can see events
also the native way (clicking on them in zm), of course.
My site is
www.occhiostanco.com/zm
temporary user: roberto/roberto
If someone can help me to understand if:
- filter is not active
- filter is not selecting events
- filter cannot delete events
Thanks
Roberto
I'm not sure but you might try to change the path in options which is normaly set in regards to web root but should also accept a full path. I have not tried this yet but it should work.
If that don't work;
Return the paths back to folder in the web root.
You will need to symlink from your /var/www/zm all folders. While the change you made in apache is good for apache, it does nothing for the zm binairies.
If that don't work;
Return the paths back to folder in the web root.
You will need to symlink from your /var/www/zm all folders. While the change you made in apache is good for apache, it does nothing for the zm binairies.
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
SOLVED !
Cordel (tahnks) said:
> I'm not sure but you might try to change the path in options which is normaly set in regards
> to web root but should also accept a full path. I have not tried this yet but it should work.
> If that don't work;
It WORKS! Zm binaries work correctly with absolute paths, that was not the matter
(at least for filters, I have a different problem with events: I will post in a difefrent
thread)
I had 2 problems:
1) The event partition got 100% BEFORE PurgeWhenFull was set and running.
With the disk at 100% I highly suspect all is messed up.
If others will be interested I suggest to do not leave disk grows up to 100%:
-- get PurgeWhenFull running immediately with low
disk percent (3% 4%)
-- look at zmfilter.log
-- when events are getting deleted change disk percent to the desired value
2) I had ZM_OPT _FAST_DELETE enabled, and this tells zm to delete events
from db, but not from filesystem
Thanks again
> I'm not sure but you might try to change the path in options which is normaly set in regards
> to web root but should also accept a full path. I have not tried this yet but it should work.
> If that don't work;
It WORKS! Zm binaries work correctly with absolute paths, that was not the matter
(at least for filters, I have a different problem with events: I will post in a difefrent
thread)
I had 2 problems:
1) The event partition got 100% BEFORE PurgeWhenFull was set and running.
With the disk at 100% I highly suspect all is messed up.
If others will be interested I suggest to do not leave disk grows up to 100%:
-- get PurgeWhenFull running immediately with low
disk percent (3% 4%)
-- look at zmfilter.log
-- when events are getting deleted change disk percent to the desired value
2) I had ZM_OPT _FAST_DELETE enabled, and this tells zm to delete events
from db, but not from filesystem
Thanks again
-
- Posts: 48
- Joined: Tue Mar 21, 2006 1:37 pm
Re: SOLVED ! And Cordel was right...
> It WORKS! Zm binaries work correctly with absolute paths, that was not the matter
> (at least for filters, I have a different problem with events: I will post in a difefrent
> thread)
I should rectify myseIf: I had a third problem, the one pointed out by Cordel
I had to make a soft link in /var/www/zm and pointing to /videosurvey (may event root
directory). All ZM binaries set up the events dir like the following:
$event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS + etcetera
Now Filter, view events and video generation workz
Thanks again
Roberto
> (at least for filters, I have a different problem with events: I will post in a difefrent
> thread)
I should rectify myseIf: I had a third problem, the one pointed out by Cordel
I had to make a soft link in /var/www/zm and pointing to /videosurvey (may event root
directory). All ZM binaries set up the events dir like the following:
$event_path = ZM_PATH_WEB.'/'.ZM_DIR_EVENTS + etcetera
Now Filter, view events and video generation workz
Thanks again
Roberto