nagios2trac

Let Nagios Create or Comment on Trac Tickets


License
Apache-2.0
Install
pip install nagios2trac==0.5

Documentation

Build Status

nagios2trac

Let Nagios create or comment TRAC tickets for you

Privileges needed for Trac user

  • TICKET_MODIFY
  • TICKET_CREATE
  • TICKET_VIEW
  • XML_RPC

Installation

The easiest way to install nagios2trac and its dependencies:

$ pip install nagios2trac

Alternatively install it from source

$ git clone git@github.com:Jimdo/nagios2trac.git
$ cd nagios2trac/
$ python setup.py install

Usage

Define these notification commands in nagios

  • service check:

    nagios2trac.py --service-state "$SERVICESTATE$ $NOTIFICATIONTYPE$" --host-name "$HOSTNAME$" --description "$SERVICEDESC$" --longoutput "$SERVICEOUTPUT$"
    
  • host check:

    nagios2trac.py --service-state "$HOSTSTATE$ $NOTIFICATIONTYPE$" --host-name "$HOSTNAME$" --description "" --longoutput ""