|
← Revision 1 as of 2010-01-10 21:22:15
Size: 596
Comment:
|
← Revision 2 as of 2010-02-02 09:24:04
Size: 870
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| {{{ |
This bot 'ptp-nagios' sits in channel #ptp-nagios on irc://irc.personaltelco.net {{{#!highlight bash |
| Line 15: | Line 16: |
|
{{{#!highlight irc 02:55:18 <ptp-nagios> PROBLEM Host Alert: yukon NodeYukonTavern is DOWN 09:14:18 <ptp-nagios> RECOVERY Host Alert: yukon NodeYukonTavern is UP }}} |
PersonalTelco uses an eggdrop IrcBot to send notifications.
This bot 'ptp-nagios' sits in channel #ptp-nagios on irc://irc.personaltelco.net
1 define command{
2 command_name notify-host-by-eggdrop
3 command_line /usr/bin/printf "%b" "USER\nPASSWORD\n.say $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ - $HOSTALIAS$ is $HOSTSTATE$\n.quit\n" |nc 127.1 3343
4 }
5
6 define command {
7 command_name notify-service-by-eggdrop
8 command_line /usr/bin/printf "%b" "USER\nPASSWORD\n.say $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$ - $HOSTALIAS$ $SERVICEDESC$ is $SERVICESTATE$\n.quit\n" |nc 127.1 3343
9 }
10
1 02:55:18 <ptp-nagios> PROBLEM Host Alert: yukon NodeYukonTavern is DOWN
2 09:14:18 <ptp-nagios> RECOVERY Host Alert: yukon NodeYukonTavern is UP
3

