Recording Event Stats...

Support and queries relating to all previous versions of ZoneMinder
Locked
p_thrill
Posts: 13
Joined: Tue Jul 06, 2004 3:39 pm

Recording Event Stats...

Post by p_thrill »

ZM v1.21.3
RedHat 2.4.18-3
mysql-3.23.49-3
Apache-1.3.27-4
I'm trying to tweak the zoning parameters and what better way than with stats! I checked off the RECORD_EVENT_STATS in the Options->Systems tab; restarted ZM. When I select the alarmed frame and click on the (Stats) link, the stats window opens with "There are no stats recorded for this event/frame". Nothing in the logs. What am I missing?
Thanks.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Was the event created after you turned event stat logging on?
If so check your logs to see if there are any errors from zm trying to update the DB.

Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

when you say checked off alarm stats?
you do mean the you checked it on??
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
p_thrill
Posts: 13
Joined: Tue Jul 06, 2004 3:39 pm

Post by p_thrill »

I enabled (checked on) both RECORD_EVENT_STATS and RECORD_DIAG_IMAGES; restarted ZM. Reviewing the alarmed events, I see the diag images - so I know that worked but no stats. ZM logfiles are all clean, MySQL logfile is clean and apart from the WAR [Buffer overrun] messages and ERR [Incomplete read of frame image data, 1904 bytes only]
ERR [Incomplete frame write: 1920 of 75344 bytes written] (which I assume is due to 256MB of memory and is related to the DIAG_IMAGES option) nothing else out of the ordinary.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

check off your diag images it will nail your system and wont be a great help with what your tring to do here.

Also ensure are using blobs in the zone detection method That should sort you out. I would assume the reason your not getting stats at the mo is because the 2 things you have turned on are very resourse hungry and your box just aint up to it. You could also try reducing your framerate or just enabling 1 monitor at a time while setting up.
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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Did you restart ZM after making the changes? Also stats are only recorded for alarmed frames.

Phil
p_thrill
Posts: 13
Joined: Tue Jul 06, 2004 3:39 pm

Post by p_thrill »

I've since removed the DIAG_IMAGES and restarted ZM, so the diag images don't get created anymore. My single zone is based on Units:Pixel and Alarm_check_method:AlarmPixel. I changed the alarm_check_method to Blobs as James mentioned. Does this take effect immediately?
I also checked the database itself. Shouldn't the Stats table contain entries?
mysql> use zm;
mysql> select * from Stats;
Empty set (0.00 sec)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think it may need a restart but i always restart zm after any config changes. If i turn it on on mine i get stats.
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
p_thrill
Posts: 13
Joined: Tue Jul 06, 2004 3:39 pm

Post by p_thrill »

I tried restarting many times, all to no avail. I also asked a buddy of mine to enable the stats on his system (zm v1.20 & v1.21) both with no success. Is there something in the build process that needed to be specified?
Thanks.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That's very strange. If you have 'RECORD_EVENT_STATS' checked and are getting motion based events then you should have stats. There's not much complicated logic there, it's just if a zone is in alarm state and you have the config checked then it records the stats.

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

Post by zoneminder »

Actually that's not true. The whole bit is enclosed in a big test for CREATE_ANALYSIS_IMAGES. It's a long time since I looked at any of this so I think it's due a bit of a rework. However for now, if you switch on analysis images (not diagnostic ones) then you should get your stats.

I'll add this to the bug list.

Phil
p_thrill
Posts: 13
Joined: Tue Jul 06, 2004 3:39 pm

Post by p_thrill »

Checking on CREATE_ANALYSIS_IMAGES worked. I got my stats!

Thanks Phil!!
Locked