skip to navigation
skip to content

Not Logged In

hipsaint 0.4.7

A command line tool for pushing Nagios host and service notifications to a HipChat room.

Latest Version: 0.5.2

Push your nagios notifications to HipChat using a simple command line tool.

Implements HipChat message API.

Inspired by https://gist.github.com/2418848.

Install

Through pip:

pip install hipsaint

Or clone and simply run:

python setup.py install

Usage

Assuming you use Nagios 3 add the following sections to commands.cfg with <TOKEN> and <ROOM_ID> specified and macros delimited by |:

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
}

To send less verbose messages to hipchat set the --type flag to either short-host or short-service.

Additional commands is available through:

hipsaint --help

Edit the Nagios contacts.cfg file by adding or editing an existing user and adding the notification commands created above:

define contact {
        ....
        .....
        service_notification_commands   notify-service-by-hipchat
        host_notification_commands      notify-host-by-hipchat
        email   /dev/null
}
 
File Type Py Version Uploaded on Size
hipsaint-0.4.7-py2.py3-none-any.whl (md5) Python Wheel 2.7 2014-08-05 7KB
hipsaint-0.4.7.tar.gz (md5) Source 2014-08-05 5KB
  • Downloads (All Versions):
  • 67 downloads in the last day
  • 577 downloads in the last week
  • 1852 downloads in the last month