email option

Support and queries relating to all previous versions of ZoneMinder
Locked
rsadanan
Posts: 46
Joined: Fri Mar 31, 2006 2:05 pm

email option

Post by rsadanan »

can sent email to the user when motion detection

if so please help me to do

thanks
RedFlyer
Posts: 76
Joined: Sat Aug 20, 2005 2:57 pm
Location: Belgium

Post by RedFlyer »

Hi !

The answer is in the manual ... http://www.zoneminder.com/fileadmin/dow ... EADME.html
________
Uhwh warehouse
Last edited by RedFlyer on Mon Feb 14, 2011 5:21 am, edited 1 time in total.
rsadanan
Posts: 46
Joined: Fri Mar 31, 2006 2:05 pm

Post by rsadanan »

can you tell me how the filter should be set to set an email
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

as he said there is a step by step guide in the docs. If you have a problem with a part of the doc or a particular error then we can help. If you dont read the doc we cant help you, if yu want i can copy and paste the relevant bit!
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
rsadanan
Posts: 46
Joined: Fri Mar 31, 2006 2:05 pm

Post by rsadanan »

hai,


i tried making a filter like this

purgewhenfull

archive status = non archived

% of disk >= 40

saved with

checking the email option

and to delete

the delete works

and in options

i typed the email adress

i tried with both (checked & unchecked) latest perl method

and saved


and also i made another filter


id=8
image alarm >0


( maximum fps is 5

Alarm maximum fps is 10)


saved with checking email option

this also does not work


please help
RedFlyer
Posts: 76
Joined: Sat Aug 20, 2005 2:57 pm
Location: Belgium

Post by RedFlyer »

Hi !

Do you see something in the log ?
You can type "tail -f /var/log/messages" in a root terminal and check if you see error message regarding the mail sending.
________
Buy herbalaire vaporizer
Last edited by RedFlyer on Mon Feb 14, 2011 5:21 am, edited 1 time in total.
RedFlyer
Posts: 76
Joined: Sat Aug 20, 2005 2:57 pm
Location: Belgium

Post by RedFlyer »

Hi

An other question, what did you set as smtp server ?
You should set your ISP smtp server address except if you have your own smtp server.
________
Honda Elite E
Last edited by RedFlyer on Mon Feb 14, 2011 5:21 am, edited 1 time in total.
RedFlyer
Posts: 76
Joined: Sat Aug 20, 2005 2:57 pm
Location: Belgium

Post by RedFlyer »

Hi,

Here is capture of what you should see in your log file (/var/log/messages).
To do the test, instead of deleting, i've selected archiving not to loose my events.

Code: Select all

Jul 26 11:19:43 zm zmfilter[2328]: INF [Archiving event 1988]
Jul 26 11:19:43 zm zmfilter[2328]: INF [Creating notification email]
Jul 26 11:19:44 zm zmvideo[7686]: INF [Creating video file Event-1988-r1-s1.mpg for event 1988]
Jul 26 11:19:44 zm zmvideo[7686]: INF [/usr/bin/ffmpeg -y -r 4.25  -i %03d-capture.jpg -s  352x288 -r 25 'Event-1988-r1-s1.mpg' >& ffmpeg.log]
Jul 26 11:19:46 zm zmvideo[7686]: INF [Finished Event-1988-r1-s1.mpg]
Jul 26 11:19:46 zm zmfilter[2328]: INF [Sending notification email 'ZoneMinder: Alarm - INT_CAM-1988 (255 - 255 36)']
Jul 26 11:19:46 zm zmfilter[2328]: INF [Attaching '2/1988/009-capture.jpg]
Jul 26 11:19:46 zm zmfilter[2328]: INF [Attaching '2/1988/Event-1988-r1-s1.mpg]
Jul 26 11:20:05 zm zmfilter[2328]: INF [Notification email sent]
Tell us if you see something similar to this or if you have error messages.
________
TOYOTA MOTOR MANUFACTURING MISSISSIPPI HISTORY
Last edited by RedFlyer on Mon Feb 14, 2011 5:21 am, edited 1 time in total.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

also check your filter by running it and checking you see some results. People remove lots from the email config and this will stop it working. Also it doesnt support smtp auth so if your not using an isp that wll accept un auth smtp your gonna struggle.
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
rsadanan
Posts: 46
Joined: Fri Mar 31, 2006 2:05 pm

Post by rsadanan »

hai ,

i got the following output for the messages



Jul 27 10:04:12 localhost zmdc[4967]: INF ['zmfilter.pl' started at 06/07/27 10:04:12]
Jul 27 10:04:12 localhost zmdc[4772]: INF ['zmfilter.pl' starting at 06/07/27 10:04:12, pid = 4967]
Jul 27 10:04:13 localhost zmdc[4772]: ERR ['zmfilter.pl ' exited abnormally, exit status 2]
Jul 27 10:04:16 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]
Jul 27 10:04:33 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]
Jul 27 10:04:45 localhost zmc_m8[4807]: INF [lert: 1000 - Capturing at 2.72 fps]Jul 27 10:04:49 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]
Jul 27 10:05:05 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]
Jul 27 10:05:11 localhost zmaudit[4848]: INF [Found open event '1723']
Jul 27 10:05:11 localhost zmaudit[4848]: INF [closing]
Jul 27 10:05:18 localhost zmc_m10[4795]: INF [dors: 1000 - Capturing at 2.49 fps]
Jul 27 10:05:21 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]
Jul 27 10:05:21 localhost zmc_m11[4819]: INF [gert: 1000 - Capturing at 2.49 fps]
Jul 27 10:05:22 localhost zmc_m5[4831]: INF [cert: 1000 - Capturing at 2.49 fps]Jul 27 10:05:37 localhost zmc_m5[4831]: WAR [Buffer overrun at index 35, slow down capture, speed up analysis or increase ring buffer size]


and i did not have anything in the smtp server


and idont know the isp smtp server

my isp is wanadoo


thanks waiting for the reply
RedFlyer
Posts: 76
Joined: Sat Aug 20, 2005 2:57 pm
Location: Belgium

Post by RedFlyer »

Hi,

First, you have a problem with capturing.
In the monitor definition, you must increase the Image Buffer Size (frames) from 40 to 80 for the monitor where you do motion detection and restart ZM, this should fix the 'Buffer overrun' message.
Check also in the file /var/log/zm/zmfilter.log if you have errors messages.
About your isp SMTP server, you must use the same as in your email client (outlook, outlook express, thunderbird, ...)
As i know Wanadoo is a french ISP, but it seems to be orange now, then in the email parameter (option menu) you must set the variable ZM_EMAIL_HOST to 'smtp-msa.orange.fr'.
To be sure, check informations you have received when you have made your internet access subscription.

Let us know if this fix your problems
________
Ford Motor Company Lamp Factory Picture
Last edited by RedFlyer on Mon Feb 14, 2011 5:22 am, edited 1 time in total.
rsadanan
Posts: 46
Joined: Fri Mar 31, 2006 2:05 pm

Post by rsadanan »

thanks for your reply

i deselected the new perl module and the filters started working

now i can sent this through email

and the isp i have given as smtp.wanadoo.fr


thanks for all
Locked