Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
A library which allows you to interact with cmd.cgi.
Current Version
0.1
Last Release Date
2011-09-16
Owner
Brian Gallew
Website
http://code.google.com/p/python-nagios/
Download URL
http://code.google.com/p/python-nagios/downloads/detail?name=python-nagios-0.1.tgz&can=2&q=
License
GPL
Compatible With
The cmd.cgi which comes bundled with Nagios has many abilities beyond acknowledging alerts, but writing software callouts for doing them can be tedious since the only documentation is the source code. Enter python-nagios, a library for interacting with cmd.cgi. It support both HTTP and HTTPS, passwords, and non-standard installation paths. A short example might be instructive:
#! /usr/bin/env python import nagcgi cgi = nagcgi.Nagcgi("mon.example.com", "naguser", "nagpasswd", secure=True)
cgi.add_host_comment('sillyhost', 'This host is being silly') cgi.disable_notification() cgi.ack_svc_problem('brokenhost','CHECK LOAD', 'running a highly parallel gcc build')
You must be logged in to submit a review.
To:
From: