[smokeping-users] Re: Email alerts from Smokeping
Srinivas Makam
smakam60540 at yahoo.com
Tue Sep 19 18:11:09 MEST 2006
I have also put the alerts statement in the config file for the targets.
-------------------------config------------------------
+++ HighSchools2
menu = High Schools
title = WAN router at CPS Region 2 High school sites
alerts = bigloss,startloss,rttdetect
++++ 1840
menu = Clemente Community Academy H S
title = Clemente Community Academy H S (cps-2-high-1840-rtr-01)
host = w.x.y.z
++++ 106a
menu = Jones Alternate (F.K.A Near North Career Magnet HS)
title = Jones Alternate (F.K.A Near North Career Magnet HS) (cps-2-high-106a-rtr-01)
host = a.b.c.d
--------------------------------------------------------------------------
thanks
Srinivas
Srinivas Makam <smakam60540 at yahoo.com> wrote:
Hi all,
I have configured Smokeping 2.04 for sending email alerts if latency or packet loss exceeds a threshold. I have specified the smtp server name in the config file along with the TO and FROM addresses. I have put the IP address of the smtp server in the /etc/hosts file (Linux). I can ping the smtp server from the smokeping host.
I am not getting any emails. I see some alerts in the /var/log/messages file.
Please provide me some clues as to what I am missing or how I can test.
thanks
Srinivas
------------------------config snippet-------------------
contact = Srinivas.Makam at sun.com
mailhost = ilsmtp.soib.cps.k12.il.us
sendmail = /usr/lib/sendmail
imgcache = /home/smokeping/public_html/images
imgurl =
datadir = /etc/smokeping/rrd-data
pagedir = /etc/smokeping/pages
piddir = /etc/smokeping/piddir
cgiurl = http://localhost/cgi-bin/smokeping.cgi
smokemail = /home/smokeping/smokeping/etc/smokemail
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
*** Alerts ***
to = Srinivas.Makam at sun.com
from = Srinivas.Makam at sun.com
+bigloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>=5%,>=5%,>=5%
comment = suddenly there is packet loss
#+someloss
#type = loss
# in percent
#pattern = >0%,*12*,>0%,*12*,>0%
#comment = loss 3 times in a row
+startloss
type = loss
# in percent
pattern = ==S,>0%,>=5%,>=5%
comment = packet loss at startup
+rttdetect
type = rtt
# in milli seconds
pattern = <10,<10,<10,<10,<10,>=10,>=10,>=10,>=10
comment = link congestion or circuit issues?
---------------------------------------------------------------------------
---------------------/var/log/messages---------------------------
Sep 19 08:57:35 localhost smokeping[2892]: Alert rttdetect is active for CPSWAN.CPSRegion4.ElementarySchools4.6330
Sep 19 09:01:01 localhost crond(pam_unix)[24052]: session opened for user root by (uid=0)
Sep 19 09:01:01 localhost crond(pam_unix)[24052]: session closed for user root
Sep 19 09:04:35 localhost smokeping[2892]: Alert rttdetect is active for CPSWAN.CPSRegion4.ElementarySchools4.5390
Sep 19 09:32:36 localhost smokeping[2892]: Alert rttdetect is active for CPSWAN.CPSRegion4.ElementarySchools4.5090
Sep 19 09:39:35 localhost smokeping[2892]: Alert rttdetect is active for CPSWAN.CPSRegion4.ElementarySchools4.2590
----------------------------------------------------------------------------------------
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list