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

Directory Tree

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
5661
Files:
FileDescription
sendexec_bycurl_nrdp.plsendexec_bycurl_nrdp.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.