Nagios and HipChat
Posted: Fri Feb 22, 2013 9:04 am
Hi everyone,
We've started using a product called HipChat as a collaboration tool www.hipchat.com
This has the ability to send Nagios alerts to a chat room using this https://github.com/hannseman/hipsaint
I've got this installed on our monitoring machine. I've added the following to command.cfg
If I run the information in command_line on the server itself (as root and nagios users), it generates an alert in the chat room. However when Nagios triggers a genuine alert, nothing appears.
I've tried various things like adding the full path of the hipsaint application to the command_line in commands.cfg and making sure the $PATH variable is set correctly, but nothing seems to work.
Is there anything obvious I'm overlooking here?
Thanks!
We've started using a product called HipChat as a collaboration tool www.hipchat.com
This has the ability to send Nagios alerts to a chat room using this https://github.com/hannseman/hipsaint
I've got this installed on our monitoring machine. I've added the following to command.cfg
Code: Select all
define command {
command_name notify-host-by-hipchat
command_line hipsaint --token=<TOKEN> --room=<ROOM_ID> --type=host --inputs="$HOSTNAME$|$LONGDATETIME$|$NOTIFICATIONTYPE$|$HOSTADDRESS$|$HOSTSTATE$|$HOSTOUTPUT$" -n
}
define command {
command_name notify-service-by-hipchat
command_line hipsaint --token=<TOKEN> --room=<ROOM_ID> --type=service --inputs="$SERVICEDESC$|$HOSTALIAS$|$LONGDATETIME$|$NOTIFICATIONTYPE$|$HOSTADDRESS$|$SERVICESTATE$|$SERVICEOUTPUT$" -n
}
I've tried various things like adding the full path of the hipsaint application to the command_line in commands.cfg and making sure the $PATH variable is set correctly, but nothing seems to work.
Is there anything obvious I'm overlooking here?
Thanks!