Filter Frustration

Support and queries relating to all previous versions of ZoneMinder
Locked
blaxer
Posts: 26
Joined: Mon Jun 27, 2005 4:49 pm

Filter Frustration

Post by blaxer »

I have created a very simple filter to try and test the emailing capability of ZM. The filter has 1 expression which is cause - equal to - motion. Then sort by date/time desc limit to 1. When I hit submit, I come up with the last "motion" event which is what I want. When I save the filter I selected email and message me. The settings seem fine in the options but it never seems to run. I looked in the zmfilter.log and there is nothing, only the purge events. I looked in the database and emailed = 0 for every event. I must be missing something simple here, no? I have restarted ZM countless times.

Thanks in advance for any help.
Blax...
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i assume zm can email everything else and it is a filter issue not an email issue?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you looked in the logs for any errors?
Regards,
Cordel
blaxer
Posts: 26
Joined: Mon Jun 27, 2005 4:49 pm

Post by blaxer »

Haven't gotten any emails to be sent at all, what else would generate them ?? I checked zmfilter and it doesn't even look like my filter is running. What other logs should I check / what should I be looking for??
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

it sounds like you have an email config error i just got home and i have never used zm for email but i will have a look and set it up and let you know. What details have you entered as you probaly need authentication for smtp?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I think the errors should get loged to messages. My installation emails out fine so maybe a little later tonight I'll try to make it error and see where the errors are logged.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Just to be sure, I assume you have filled in the relevant fields in Options->Email?

You can also try setting the VERBOSE flag in zmfilter.pl which will give you a little more in the way of debug.

Phil
blaxer
Posts: 26
Joined: Mon Jun 27, 2005 4:49 pm

Post by blaxer »

I actually had to re-install ZM last night because I got a new machine. The filter is now working, however, it never seems to send the email. I will check out the verbose logging. Is there a log for the smtp "sender" ?
blaxer
Posts: 26
Joined: Mon Jun 27, 2005 4:49 pm

Post by blaxer »

I just read through the forums and found that I "should" add mailhost to hosts, did that and everything seems to work fine.

Thank you all for the outstanding support, these forums are by far the friendliest of any open source software I have ever seen. My hat is off to everyone.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

no worries although i think i was a litle wide of the mark with authentication lol glad you got it sorted
You right this is a great forum good mix of guru's (who know loads) and er others (me)
Good luck with your box mate
Locked