Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Send result plugin or check of nagios to nrpd.
Current Version
0.1
Last Release Date
2016-09-07
Owner
Andres
Compatible With
After setting up nagios nrpd: NRDP - Nagios Remote Data Processor https://exchange.nagios.org/directory/Addons/Passive-Checks/NRDP--2D-Nagios-Remote-Data-Processor/details
This script allows to report in nagios through NRPD data. This script is based on the code senddata_bycurl_nrdp.pl The goal is to run a nagios plugin or check and verify that it works. A ready time, transfer the result by this script is executed. Advantages of this script: - Supports HTTP and HTTPS - Supports basic web user name and password, if configured for example in APACHE - Report individual host and service information
Examples:
* Example OK DATA - Report host only
Command line plugin nagios: /usr/local/nagios/lib/check_users -w 10 -c 20 USERS OK - 1 users currently logged in |users=1;10;20;0
Command line this script: ./sendexec_bycurl_nrdp.pl -wu "" -t token_otro -h host-pasive -s misc_check_pasivo -o 1 -pt /usr/local/nagios/lib/check_users -pr "-w 10 -c 20" -u http://192.168.0.60/nrdp/ <?xml version="1.0" encoding="utf-8"?> <result> <status>0</status> <message>OK</message> <meta> <output>1 checks processed.</output> </meta> </result>
* Example OK DATA - Report service only
Command line this script: ./sendexec_bycurl_nrdp.pl -wu "" -t token_otro -h host-pasive -s check_pasivo -o 2 -pt /usr/local/nagios/lib/check_users -pr "-w 10 -c 20" -u http://192.168.0.60/nrdp/ <?xml version="1.0" encoding="utf-8"?> <result> <status>0</status> <message>OK</message> <meta> <output>1 checks processed.</output> </meta> </result>
* Example WARNING DATA - Report service only
Command line plugin nagios: /usr/local/nagios/lib/check_users -w 0 -c 1 USERS WARNING - 1 users currently logged in |users=1;0;1;0 ./sendexec_bycurl_nrdp.pl -wu "" -t token_otro -h host-pasive -s check_pasivo -o 2 -pt /usr/local/nagios/lib/check_users -pr "-w 0 -c 1" -u http://192.168.0.60/nrdp/ <?xml version="1.0" encoding="utf-8"?> <result> <status>0</status> <message>OK</message> <meta> <output>1 checks processed.</output> </meta> </result>
* Example CRITICAL DATA - Report service only
Command line plugin nagios: /usr/local/nagios/lib/check_users -w 0 -c 0 USERS CRITICAL - 1 users currently logged in |users=1;0;0;0
Command line this script: ./sendexec_bycurl_nrdp.pl -wu "" -t token_otro -h host-pasive -s check_pasivo -o 2 -pt /usr/local/nagios/lib/check_users -pr "-w 0 -c 0" -u http://192.168.0.60/nrdp/ <?xml version="1.0" encoding="utf-8"?> <result> <status>0</status> <message>OK</message> <meta> <output>1 checks processed.</output> </meta> </result>
* Example CRITICAL DATA - Report service only with user/password web
Command line this script: ./sendexec_bycurl_nrdp.pl -wu "user:pass" -t token_otro -h host-pasive -s check_pasivo -o 2 -pt /usr/local/nagios/lib/check_users -pr "-w 0 -c 0" -u http://192.168.0.60/nrdp/ <?xml version="1.0" encoding="utf-8"?> <result> <status>0</status> <message>OK</message> <meta> <output>1 checks processed.</output> </meta> </result>
You must be logged in to submit a review.
To:
From: