Giter VIP home page Giter VIP logo

hipsaint's Introduction

HipSaint

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

https://travis-ci.org/hannseman/hipsaint.png?branch=master https://pypip.in/d/hipsaint/badge.png

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
}

hipsaint's People

Contributors

hannseman avatar joar avatar rtkjbillo avatar

Watchers

Mohsin Hijazee avatar Christopher Blum avatar Jan Brauer avatar Umair avatar Fabian avatar Julius Zeidler avatar Daniel Bonkowski avatar Klaus Trainer avatar Fridtjof Detzner avatar Joscha Meyer avatar Jan Prieser avatar Paul Mölders avatar Jan Schlie avatar James Cloos avatar Tina Umlandt avatar Deniz Adrian avatar Oliver avatar  avatar Simon Hartmann avatar Daniel Heidecke avatar Eva Spies avatar David LaMothe avatar Kevin avatar  avatar Mark Frawley avatar Fabian Orthen avatar J. Christiansen avatar Lian Li avatar Yannick Kollega avatar Mario Trucco avatar Dirk Planeth avatar  avatar  avatar  avatar Kai Birkenfeld avatar  avatar  avatar Peter Rudek avatar Valentin Palkovic avatar Jill avatar  avatar Jérémie avatar Stefan Schadwinkel avatar  avatar Micha avatar 5ascha avatar  avatar Arne Roock avatar Eike-Marie avatar Ingo Ellerbusch avatar  avatar  avatar Sven Kruse avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Johanna Aust avatar  avatar Katja Runge avatar  avatar Ardi avatar Jimdo Support avatar  avatar  avatar Christian Konrad avatar  avatar Talal Mahmood Chaudhry avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.