Integrating with hipchat

936    Asked by StacyReed in Devops , Asked on Dec 11, 2019
Answered by Stacy Reed

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
}

Your Answer

Interviews

Parent Categories