Passive Checks

sendexec_bycurl_nrdp

Description:

Send result plugin or check of nagios to nrpd.

Current Version

0.1

Last Release Date

2016-09-07

Compatible With

  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

Owner


Project Files
Project Photos
Project Notes
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.
Reviews (0) Add a Review
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
0 (0)
Favorites
0
Views
5,593