Home Directory Addons Passive Checks sendexec_bycurl_nrdp

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

sendexec_bycurl_nrdp

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2016-09-07
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Owner
Hits
3081
Files:
FileDescription
sendexec_bycurl_nrdp.plsendexec_bycurl_nrdp.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Send result plugin or check of nagios to nrpd.
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/


0
OK

1 checks processed.



* Example OK DATA - Report service 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 check_pasivo -o 2 -pt /usr/local/nagios/lib/check_users -pr "-w 10 -c 20" -u http://192.168.0.60/nrdp/


0
OK

1 checks processed.



* 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/


0
OK

1 checks processed.



* 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/


0
OK

1 checks processed.



* Example CRITICAL DATA - Report service only with user/password web

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 "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/


0
OK

1 checks processed.