Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
python-nagios
0.1
2011-09-16
- Nagios 3.x
GPL
88862
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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')
#! /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')
Reviews (0)
Be the first to review this listing!