Home Directory Addons Passive Checks send_nrdp Python NRDP Client

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

send_nrdp Python NRDP Client

Rating
1 vote
Favoured:
1
Current Version
0.1
Last Release Date
2012-02-16
Compatible With
  • Nagios 3.x
  • Nagios XI
Hits
176132
Nagios CSP

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!
usage: send_nrdp.py [options]

options:
-u URL, --url=URL ** REQUIRED ** The URL used to access the remote NRDP Server Usually: http://<IP_ADDRESS>/nrdp/
agent.
-t TOKEN, --token=TOKEN
** REQUIRED ** The authentication token used to access
the remote NRDP agent.
-H HOSTNAME, --hostname=HOSTNAME
The name of the host associated with the passive
host/service check result.
-s SERVICE, --service=SERVICE
For service checks, the name of the service associated
with the passive check result.
-S STATE, --state=STATE
An integer indicating the current state of the host or
service.
-o OUTPUT, --output=OUTPUT
Text output to be sent as the passive check result.
Newlines should be encoded with encoded newlines (n).
-d DELIM, --delim=DELIM
With only the required parameters send_nrdp.py is
capable of processing data piped to it either from a
file or other process. By default, we use t as the
delimiter however this may be specified with the -d
option data should be in the following formats one
entry per line.
-c CHECKTYPE, --checktype=CHECKTYPE
1 for passive 0 for active
-h, --help show this help message and exit
Reviews (1)
Nice client, provides error messages if url or token is incorrect. I noticed that if providing results on stdin, nothing seems to happen. I believe the 3rd and 4th last lines are indented too far. The two lines

xml += ""
self.post_data(options.url, options.token, xml)

should be indented two levels, to match the else: about 15 lines earlier.

Thanks!