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


Remember Me

Directory Tree

send_nrdp Python NRDP Client

1 vote
Current Version
Last Release Date
Compatible With
  • Nagios 3.x
  • Nagios XI
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
usage: send_nrdp.py [options]

-u URL, --url=URL ** REQUIRED ** The URL used to access the remote NRDP Server Usually: http://<IP_ADDRESS>/nrdp/
-t TOKEN, --token=TOKEN
** REQUIRED ** The authentication token used to access
the remote NRDP agent.
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
-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.
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.