Integrating with hipchat
Nagios can also send alerts to a group chat known as HipChat.
Nagios has collaborated with the tool - www.hipchat.com
The alerts can be send to chat room via Nagios using - https://github.com/hannseman/hipsaint
The respective commands need to be enabled under commands. cfg file -
Code -
define command {
command_name notify-host-by-hipchat
command_line hipsaint --token= --room= --type=host --inputs="$HOSTNAME$|$LONGDATETIME$|$NOTIFICATIONTYPE$|$HOSTADDRESS$|$HOSTSTATE$|$HOSTOUTPUT$" -n
}
define command {
command_name notify-service-by-hipchat
command_line hipsaint --token= --room= --type=service --inputs="$SERVICEDESC$|$HOSTALIAS$|$LONGDATETIME$|$NOTIFICATIONTYPE$|$HOSTADDRESS$|$SERVICESTATE$|$SERVICEOUTPUT$" -n
}