Skip to main content

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

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

Metadata

Release files for nagios2trac 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nagios2trac 0.5.1
File Size Uploaded Provenance Actions
nagios2trac-0.5.1.tar.gz 9.8 kB Without provenance Details for nagios2trac-0.5.1.tar.gz

Release files / nagios2trac-0.5.1.tar.gz

Download URL nagios2trac-0.5.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
44403d69f6e54fd7991d3423457b873d4fdaedd288a4798d49222cf3a429287e
BLAKE2b-256 checksum
How to use checksums
25265c81be9e872be684268b66839d7088486264324d5822c1ae79cdeb6bce1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nagios2trac 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page