Skip to main content

Let Nagios Create or Comment on Trac Tickets

Project description

Build Status


Let Nagios create or comment TRAC tickets for you

Privileges needed for Trac user



The easiest way to install nagios2trac and its dependencies: $ pip install nagios2trac

Alternatively install it from source $ git clone $ cd nagios2trac/ $ python install


Define these notification commands in nagios

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



  • 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


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


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


  • 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)


  • 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


  • initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nagios2trac, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size nagios2trac-0.4.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page