Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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
Owner
Scott Wilkerson
Download URL
https://assets.nagios.com/downloads/nrdp/send_nrdp.py
Compatible With
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!
You must be logged in to submit a review.
To:
From: