How to receive the alerts email (step by step)
Posted: Sat Aug 20, 2005 10:56 am
Hi all,
this is a little step by step requested in private about hot to setup ZM in order to receive emails of alert in any account email.
I put here that hoping is useful for the new-bye (like me)
Assumption:
* ZM already installed and working
* ZM can detect movements and appear the alarm in red in the monitor window.
* The linux-box can send email from localhost (but i'm not sure that's is needed)
with the command like: echo test | mail -s test user@host (where user@host is something like max@yahoo.com)
1) set to Modect the webcam that change the her color in green
2) open the monitor window and check that the alarm are generated moving your hand in front of the webcam
3) press in All link
4) press ShowFilterWindow link
5) create a new filter with 2 filter expression
6) in the top press "Save" an enter the name "Alarm"
7) check the option "Automatically email details of all matches"
8 ) press Save again. Close the Filter window and Event Window
9) from the main windows press the link Options/Email
10) check the option ZM_OPT_EMAIL
11) insert any email address in ZM_EMAIL_ADDRESS
12) insert in ZM_EMAIL_HOST "localhost"
13) insert in ZM_FROM_EMAIL something like "zm@bk.fw.conectat.org"
14) insert in ZM_URL something like http://bk.fw.conectat.org/zm
15) press Save in the bottom a restart ZM with: /etc/init.d/zm restart
16) open another terminal and check the log filter with:
$ tail -f /var/log/zm/zmfilter.log
17) Now try to provoke an alert moving your hand in front of webcam, you will see in the log that the email with 2 jpg frames will be sent in some seconds.
Note: after the test, you need to modify as needed the text contained in ZM_EMAIL_TEXT
If that's don't work check the zmfilter.log.
The filter is very basic and need to be improved.
that's all boys!
ciao
MaX
this is a little step by step requested in private about hot to setup ZM in order to receive emails of alert in any account email.
I put here that hoping is useful for the new-bye (like me)
Assumption:
* ZM already installed and working
* ZM can detect movements and appear the alarm in red in the monitor window.
* The linux-box can send email from localhost (but i'm not sure that's is needed)
with the command like: echo test | mail -s test user@host (where user@host is something like max@yahoo.com)
1) set to Modect the webcam that change the her color in green
2) open the monitor window and check that the alarm are generated moving your hand in front of the webcam
3) press in All link
4) press ShowFilterWindow link
5) create a new filter with 2 filter expression
Code: Select all
[ Monitor ID ] [ equal to ] [ 1 ]
[ and ] [ Alarm Frames ] [greater than ] [ 5 ]
7) check the option "Automatically email details of all matches"
8 ) press Save again. Close the Filter window and Event Window
9) from the main windows press the link Options/Email
10) check the option ZM_OPT_EMAIL
11) insert any email address in ZM_EMAIL_ADDRESS
12) insert in ZM_EMAIL_HOST "localhost"
13) insert in ZM_FROM_EMAIL something like "zm@bk.fw.conectat.org"
14) insert in ZM_URL something like http://bk.fw.conectat.org/zm
15) press Save in the bottom a restart ZM with: /etc/init.d/zm restart
16) open another terminal and check the log filter with:
$ tail -f /var/log/zm/zmfilter.log
17) Now try to provoke an alert moving your hand in front of webcam, you will see in the log that the email with 2 jpg frames will be sent in some seconds.
Note: after the test, you need to modify as needed the text contained in ZM_EMAIL_TEXT
If that's don't work check the zmfilter.log.
The filter is very basic and need to be improved.
that's all boys!
ciao
MaX