Page 1 of 1

Recording Event Stats...

Posted: Thu Nov 10, 2005 8:44 pm
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.

Posted: Thu Nov 10, 2005 8:57 pm
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

Posted: Thu Nov 10, 2005 11:45 pm
by jameswilson
when you say checked off alarm stats?
you do mean the you checked it on??

Posted: Fri Nov 11, 2005 11:10 am
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.

Posted: Fri Nov 11, 2005 11:23 am
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.

Posted: Fri Nov 11, 2005 11:58 am
by zoneminder
Did you restart ZM after making the changes? Also stats are only recorded for alarmed frames.

Phil

Posted: Fri Nov 11, 2005 4:42 pm
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)

Posted: Fri Nov 11, 2005 5:26 pm
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.

Posted: Mon Nov 14, 2005 2:15 pm
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.

Posted: Mon Nov 14, 2005 5:17 pm
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

Posted: Mon Nov 14, 2005 5:24 pm
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

Posted: Mon Nov 14, 2005 7:59 pm
by p_thrill
Checking on CREATE_ANALYSIS_IMAGES worked. I got my stats!

Thanks Phil!!