[smokeping-users] Email Alerts?
mostro713 at gmail.com
Tue Oct 23 20:25:19 CEST 2007
That did the trick... I did find the entry (below) in the
smokeping_config.txt file but the example is what I needed.
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.
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.
> 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.
> 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->datasend("Smokeping Rules\n");
> 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.
> 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
> 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
> 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...
More information about the smokeping-users