ZM Back Ground Processes ...

Support and queries relating to all previous versions of ZoneMinder
Locked
vypre
Posts: 18
Joined: Sat Feb 12, 2005 10:12 pm

ZM Back Ground Processes ...

Post by vypre »

Hi All,

I am just having a little problem with my server filling up with footage.

I have 3 filters in place, one archives footage after 7 days, the next deletes footage that is 14 days old and then when the server gets to 90% full it should delete all archived footage.

When I saved each of these rules I ticked the background tick box. Does this mean that they are running regulary? or is there something else I have to do to schedule these in?

Any help would be appreciated.

Thanks in advance.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

Have you checked /tmp/zmfilter.log to see if the filters are being run? Check that log out...it should provide you with a lot of info.
vypre
Posts: 18
Joined: Sat Feb 12, 2005 10:12 pm

Post by vypre »

Thanks for that, I have now checked the log and have found that an external command that I am putting in is stopping it from working (the other 2 filters are working fine.

If I wanted to do something like this:

echo body | /usr/bin/mailx -r zm@blah.com -s "Purge notification" support@blah.com

How would I do that, I don't seem to be able to use quotes in the command line. I have tried something this but still no go:

echo body | /usr/bin/mailx -r zm@blah.com -s Purge_Notification support@blah.com


Any ideas?
vypre
Posts: 18
Joined: Sat Feb 12, 2005 10:12 pm

Post by vypre »

Ok, I think it is running as I am now getting getting emails, I think it is processing it for each item being deleted, would that be correct?

The other thing is that I am getting errors in zmfilters.log, they look something like:

12/04/07 13:45:56.800097 zmfilter[3442].ERR [Unable to delete event 14289 as previous operations failed]
12/04/07 13:45:56.800509 zmfilter[3442].DBG [Checking event 14290]
12/04/07 13:45:56.800652 zmfilter[3442].INF [Executing '/bin/echo body | /usr/bin/mailx -r zoneminder@rfdsse.org.au -s RFDS_Zoneminder_Disk_Purge jhennessy@comunet.com.au 3/14290']
12/04/07 13:45:56.938054 zmfilter[3442].DBG [Output: ]
12/04/07 13:45:56.938216 zmfilter[3442].ERR [Command '/bin/echo body | /usr/bin/mailx -r zoneminder@rfdsse.org.au -s RFDS_Zoneminder_Disk_Purge jhennessy@comunet.com.au 3/14290' exited with status: 1]
12/04/07 13:45:56.938624 zmfilter[3442].ERR [Unable to delete event 14290 as previous operations failed]
12/04/07 13:45:56.939091 zmfilter[3442].DBG [Checking event 14294]
12/04/07 13:45:56.939237 zmfilter[3442].INF [Executing '/bin/echo body | /usr/bin/mailx -r zoneminder@rfdsse.org.au -s RFDS_Zoneminder_Disk_Purge jhennessy@comunet.com.au 3/14294']
12/04/07 13:45:57.096974 zmfilter[3442].DBG [Output: ]
12/04/07 13:45:57.097148 zmfilter[3442].ERR [Command '/bin/echo body | /usr/bin/mailx -r zoneminder@rfdsse.org.au -s RFDS_Zoneminder_Disk_Purge jhennessy@comunet.com.au 3/14294' exited with status: 1]
12/04/07 13:45:57.097548 zmfilter[3442].ERR [Unable to delete event 14294 as previous operations failed]
12/04/07 13:45:57.097946 zmfilter[3442].DBG [Checking event 14295]
12/04/07 13:45:57.098090 zmfilter[3442].INF [Executing '/bin/echo body | /usr/bin/mailx -r zoneminder@rfdsse.org.au -s RFDS_Zoneminder_Disk_Purge jhennessy@comunet.com.au 3/14295']
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

What error do you get?

Try putting your command in a bash script and have the filter launch that instead.

edit: NM...looks like you got your email issue handled.
vypre
Posts: 18
Joined: Sat Feb 12, 2005 10:12 pm

Post by vypre »

I think the email command is now working as I took the quotes out.

The problem is now I am getting heaps of emails, so my question is, does it send one for each entry?

And as I said before I am seeing errors in the zmfilter.log file (which I attached to my last post).
Locked