This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

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 ""
    

Changelog

0.5.1

  • use setup from setuptools so the tarball contains all files needed by fpm-cookery

0.5

  • fix rst formatting
  • raising to 0.5 because the prior version introduced a new param and therefore should have increased minor version

0.4.1

  • default description_template is more generic now
  • Bugfix: flapping state notifications don’t create a new ticket anymore
  • New param: ticket-owner. (optional) specify the trac ticket owner via commandline

0.4

  • exclude service state when matching full summary
  • outsource the description template into an own file in order to make the code better readable
  • new config option: description_template
  • dont create a new ticket when a host or service was acknowledged

0.3

  • refactored script in order to make it testable
  • added unit tests

0.2.2

  • BUGFIX: order descending when querying for open trac tickets in order to always match the latest ticket for comparison

0.2.1

  • BUGFIX: do not create a new ticket if a service or host recovers
  • make it possible to provide newlines in parameters with (this is useful for multiline longoutput)

0.2

  • new param: new_ticket_threshold (minutes)

if an open ticket with a different description for one host is found only post to it if last edit is time is < new_ticket_threshold minutes. otherwise create a new ticket

0.1.1

  • initial release
Release History

Release History

0.5.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nagios2trac-0.5.1.tar.gz (9.8 kB) Copy SHA256 Checksum SHA256 Source Jun 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting