Passive Checks

send_nrdp Python NRDP Client

Description:

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

Current Version

0.1

Last Release Date

2012-02-16

Compatible With

  • Nagios 3.x
  • Nagios XI

Project Notes
Reviews (1) Add a Review
handy, but one little problem
by jsellens, February 28, 2013

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!



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
1
Views
176,017