[smokeping-users] Email Alerts?

Mostro Mostro mostro713 at gmail.com
Tue Oct 23 20:25:19 CEST 2007


Hi Robert,

That did the trick... I did find the entry (below) in the
smokeping_config.txt file but the example is what I needed.

Thank you...


*alerts*

A comma separated list of alerts to check for this target. The alerts have
to be setup in the Alerts section. Alerts are inherited by child nodes. Use
an empty alerts definition to remove inherited alerts from the current
target and its children.

A


On 10/23/07, Mersberger, Robert <robert.mersberger at goldenven.com> wrote:
>
>  where in your config do you tell it to report these alerts.
>
> Here is an example of where I process alerts.
>
> + SNFs
> menu = SNF's
> title = Beverly Skilled Nursing Facilities
> alerts = bigloss,someloss,startloss,rttdetect
>
> This activates all 4 alerts for all sites under the SNF group.
>
> Hope this helps.  I am assuming you have mailhost defined in your config.
>
>
>
>  ------------------------------
> *From:* smokeping-users-bounces at lists.oetiker.ch [mailto:
> smokeping-users-bounces at lists.oetiker.ch] *On Behalf Of *Mostro Mostro
> *Sent:* Tuesday, October 23, 2007 10:51 AM
> *To:* smokeping-users at lists.oetiker.ch
> *Subject:* [smokeping-users] Email Alerts?
>
> Hi everyone,
>
> I have Smokeping setup and monitoring a few critical servers. I have two
> challenges left before I'm finished. One, getting email alerts to work and
> two, zoom graphs. I will address the zoom graphs in a later post.
>
> Anyway,
>
> Mail does leave the box using Net::Smtp. I used the perl script (below)
> from a previous poster and it works. So this tell me the Net::Smtp per
> module works, the firewall rules on the server work, and destination mail
> server accepts my HELO.
>
> #!/usr/bin/perl
> use Net::SMTP;
> $smtp = Net::SMTP->new('mail.domian.com');
> $smtp->mail("smokeping\@domian.com <smokeping%5C at domian.com> ");
> $smtp->to("myname\@domian.com <myname%5C at domian.com>");
> $smtp->data();
> $smtp->datasend("Smokeping Rules\n");
> $smtp->dataend();
> $smtp->quit;
>
> sendmail also works from the command line.
>
> I have added this (below) to the config for testing and place a bogus IP
> in the hosts file. I still do not recieve an email and the mailq is empty.
>
>
> +testloss
> type = loss
> # in percent
> pattern = ==0%,==0%,==0%,==0%,>0%
> comment = test packet loss
>
>
>
> Thanks in advance.
>
> Please consider the environment before printing this e-mail.
>
> CONFIDENTIAL NOTICE:
> This e-mail message and any attachment(s) (collectively, this 'Email') are
> intended
> only for the confidential use of the recipient(s) named above. If the
> reader of this
> message is not the intended recipient named above or an agent responsible
> for
> delivering it to the intended recipient named above, you have received
> this Email in error.
> Please notify the sender immediately and permanently delete this Email and
> any copies thereof.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20071023/28b2b6e0/attachment.html 


More information about the smokeping-users mailing list