Modetect Question

Support and queries relating to all previous versions of ZoneMinder
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Modetect Question

Post by kvincench »

I have a question about zoneminder modetect mode. I know that modetect records motion and still events and you can auto generate section lengths to populate events. However, i want to only record motion, but when i do, the events generates, and a 2nd event will only generate if i toggle the source back to monitor.

Is there a way to have it record on modetect..and when motion ends for that event, it will then terminate. Following that, if motion occurs again..a 2ND EVENT will populate automatically.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

What you want Modect to do is exactly what it will do on a working system. I believe section length is ignored when monitor is set to Modect also. Use your buffers tab settings to determine how many pre/post motion frames you want to record. Using Modect I will Have many thousand of individual events automatically populate over months until purge when full kicks in so I'd start looking for a problem. Start by increasing debug level and watch your log files for clues.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Could be buffers, could be the zone... not being well configurated...

I myself, configured the zone with a 1/3 of what "best, high sensitivity" give you that will generate an event with the slight movement, but I increase the "Alarm Frame Count" to 8 so that way, false alarms are discarded... and increase the buffers too, so lots of short events are avoided...
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Event Clearing

Post by kvincench »

I have a question on clearing the events out to clear space on my hard drive. I know the events are stored in the zoneminder directory. However, when i clear that folder out, the disk usage still shows 25%. Where are all the events stored and how can i clear the disk usage and also have the event prefixes start all over from the beginning. Right now im at event 171 and i want to clear everything and start recording from event 1
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

you should not delete any files... instead You should run PurgeWhenFull filter... if it doesn't show an "*" is not running in the background...
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

Yes to what What boy said and if you need to delete individual or multiple events just bring up the monitor and use the tick boxes for individual deletions or use the tick box at the top to select all events, then single click the delete button at the bottom of the page. This will allow Mysql to be updated as to what files actually exist and keep that database up to date. Right now Mysql is tracking files that it doesn't know were deleted. Also, if you're using the fast delete option the database is updated immediately but the files have only been scheduled to be deleted when the system can afford the resources. You can also single click the numbers on the Zoneminder console any number of events for a single monitor or for all the monitors you have defined (the number of events that is loaded to a single page is controllable in the options tabs).
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Purgewhen full

Post by kvincench »

When you execute Purge when full...where do those files go on the zm box. Are those files compressed when archived. Because in other words, i would be archiving these because I am running out of space on the drive. I am guessing if i want to get them totally off the machine i would have to set up samba to route to a server.

However, the question i was asking before was...how do i get rid of these events totally so the Disk Use shows 0..or just includes the space used from the OS. I want to start fresh and clear it all
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you delete them from the web ui they will be deletd by zm when it does its disk housekeeping.
Renumbering events to start at 0 is harder as you need to modify the underlying db. Unless you have a real need i wouldnt bother
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
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Disk Housekeeping

Post by kvincench »

Can i run diskhousekeeping or is that something that is done on a scheduled basis
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

its done a sheduled basic.
Alternativly turn off fast delete and then as you delete events from the ui it will reomve the images as well from disk.
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
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Fast delete

Post by kvincench »

How do you turn fast delete on and off
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

OPT_FAST_DELETE
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
kvincench
Posts: 21
Joined: Tue Feb 09, 2010 6:23 pm

Archives

Post by kvincench »

I got most of the space off down to 25%, most of my allocated space was from events which are now clear. However, i am wondering if theres another directory to delete from or if this space is being used by a database. Where are the archives stored, possibly the space is being used there..i know that the OS doesnt take up alot of space at all
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Code: Select all

sudo du -hs /*
Or if you're using Ubuntu, there should be a Disk Usage Analyzer under accessories.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you have removed all the db entries then zm will clear up the image files.
What size drive is it?
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
Locked