Dez,
You must make sure that your email is set correctly in Alerts first.

*** Alerts ***
to = [EMAIL PROTECTED] 
from = [EMAIL PROTECTED]

Otherwise they go off into thin air.

You might also check on a couple of other things.

1) By defining a mailhost, you are telling Smokeping to use the perl
based SMTP functionality in NET::SMTP. If you do not have this loaded,
it will not work.

2) Test your sendmail/SMTP functionality outside of Smokeping first.
Using sendmail (if that's what you so) try this:
 # sendmail [EMAIL PROTECTED]
Subject: Testing
This is a test
.

#

That should let you know if Sendmail is working. Using the SMTP
function, you can write a simple perl script to do this.
use Net::SMTP;
my $smtp = NET::SMTP->new('smtp hostname');
$smtp->mail($fromaddress);
$smtp->to($toaddress);
$smtp->data();
$smtp->datasend("this is a test\n");
$smtp->dataend();
$smtp->quit;

See if you get those messages first.

Good luck!
Dan

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dez Cadena
Sent: Wednesday, June 16, 2004 9:50 AM
To: [EMAIL PROTECTED]
Subject: [smokeping-users] smokeping email alerts

I've been trying to set up simple email alerts for smokeping targets
just to 
get the hang of it. I do not receive any email alerts and I cant seem to
find
something wrong in my conf. Could anybody help?

Here's the relevant part of my config:

*** General ***

mailhost = smokehost.domain.com
sendmail = /usr/lib/sendmail
# specify this to get syslog logging
syslogfacility = local0

*** Alerts ***
to = [EMAIL PROTECTED]
from = [EMAIL PROTECTED]

+testloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>0%
comment = test packet loss

+hostdown
type = loss
# in percent
pattern = ==0%,==0%,==0%, ==U
comment = no reply

*** Probes ***

+ FPing

binary = /usr/local/bin/sfping

*** Targets ***

probe = FPing

++++++ loco

menu = aaa
title = aaa
host = a.b.c.d
alerts = hostdown,testloss

### end of config ###


Now, what I do to test my alerts is create a firewall rule to reject all
ICMP traffic
towards a.b.c.d and wait for the email alert, which never comes :(

Any syggestions?

--
Unsubscribe
mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to