Page 1 of 1

Email Test

Posted: Fri Jul 13, 2007 3:03 pm
by slacker_900
Once you have configured all of the email settings and a filter, would it be possible to have a test email function to check that all of the smtp settings etc are working ok?

Posted: Sun Jul 15, 2007 10:50 am
by cordel
You can do this now with what you have somewhat.
Create your filter (make sure you put a time constraint on it, If you don't you'll soon see why) the way you want it.
Select email.
Save the filter but don't select run in background just yet.
Now select your filter and click submit, you should get a list of any events that would get emailed to you (If you didn't put a time constrant this list may be long, and all of them would be emailed to you.... one at a time). Now hopefully you have the results you want, you may have to create an event so you have results.
Now you can click on the execute button. You should get your email if everything is properly setup. If not check your logs and make sure you have patched ZM so that the execute button really functions.

Posted: Tue Nov 13, 2007 9:07 pm
by Sir Veillance
It seems like ZM only executes the filter if the corresponding flag has not been set yet, like Events.Emailed. If this flag is =1, then ZM won't send this event.

Is there a built-in procedure to reset these flags? At the moment, I have to edit the mysql table and set the flag=0 manually. Quite annoying, when you have to do it 50 times :?

Posted: Tue Nov 13, 2007 9:48 pm
by cordel
There is nothing built into the web UI.
We do it just as you have by updating the flag through a sql statement.

Posted: Wed Nov 14, 2007 3:15 am
by Sir Veillance
cordel wrote:There is nothing built into the web UI.
We do it just as you have by updating the flag through a sql statement.
but wouldn't it be nice to have a "Force" checkbox on the Event Filter page? :wink:

Posted: Wed Nov 14, 2007 6:09 am
by cordel
Seeing how it's not part of daily operations, probably not, at least not enough to use realestate in the GUI. A SQL statement is simple and quick enough. Once you put the statement together it only takes a few seconds to rerun it.

Posted: Wed Nov 14, 2007 11:58 am
by Sir Veillance
cordel wrote:A SQL statement is simple and quick enough. Once you put the statement together it only takes a few seconds to rerun it.
..provided you are familiar with SQL.. and mysql.. and scripting.. and Linux-- :wink:

Posted: Wed Nov 14, 2007 10:11 pm
by zoneminder
I recommend Navicat, http://www.navicat.com/. It's not free (though I think there may be a free version) but you can just select a table, click on what you want to change and bingo your done. Likewise you can save queries to rerun later. I only started using it a few months ago but it's extremely handy.

Phpmyadmin is good also, just not quite so slick and takes a bit more setting up.