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 


[CategoryPersonalTelco]

NagiosEggdrop (last edited 2010-02-02 09:24:04 by JasonMcArthur)