https://github.com/bmhatfield/nagioscgi
Nagios CGI Client (From: http://code.google.com/p/python-nagios/)
https://github.com/bmhatfield/nagioscgi
cgi fork mirror nagios python
Last synced: 3 months ago
JSON representation
Nagios CGI Client (From: http://code.google.com/p/python-nagios/)
- Host: GitHub
- URL: https://github.com/bmhatfield/nagioscgi
- Owner: bmhatfield
- Archived: true
- Created: 2012-07-23T16:46:05.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T12:37:25.000Z (over 8 years ago)
- Last Synced: 2025-02-10T19:25:14.632Z (4 months ago)
- Topics: cgi, fork, mirror, nagios, python
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NagiosCGI
=========Nagios CGI Client (From: http://code.google.com/p/python-nagios/)
Why this fork?
--------------The code.google.com version of python-nagios hasn't been touched since Sept, 2011.
The aim of this fork is to add some needed features, touch up some existing methods, and add methods that are missing as needed.
How to use?
-----------From http://exchange.nagios.org/directory/Addons/APIs/Python/python-2Dnagios/details
**A library which allows you to interact with cmd.cgi.**
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')