Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
NRDP - Nagios Remote Data Processor Featured
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!
Documentation on NRDP (installation, overview, etc.) can be found here.
If you are interested in monitoring Windows with NRDP more information can be found at:
http://exchange.nagios.org/directory/Addons/Passive-Checks/NRDS_win/details
If you are interested in monitoring Windows with NRDP more information can be found at:
http://exchange.nagios.org/directory/Addons/Passive-Checks/NRDS_win/details
Reviews (10)
bymaticue, October 30, 2014
macling66, check directory permissions. checkresults should have write access for www-data user.
# ls -ld /var/lib/nagios3/spool/
drwxr-x--- 3 nagios nagios 4096 Jun 28 2013 /var/lib/nagios3/spool/
# ls -ld /var/lib/nagios3/spool/checkresults/
drwxr-x--- 2 nagios nagios 12288 Oct 30 12:34 /var/lib/nagios3/spool/checkresults/
# chown nagios.www-data /var/lib/nagios3/spool/checkresults/
# chmod g+w /var/lib/nagios3/spool/checkresults/
# ls -ld /var/lib/nagios3/spool/checkresults/
drwxrwx--- 2 nagios www-data 12288 Oct 30 12:34 /var/lib/nagios3/spool/checkresults/
# ls -ld /var/lib/nagios3/spool/
drwxr-x--- 3 nagios nagios 4096 Jun 28 2013 /var/lib/nagios3/spool/
# ls -ld /var/lib/nagios3/spool/checkresults/
drwxr-x--- 2 nagios nagios 12288 Oct 30 12:34 /var/lib/nagios3/spool/checkresults/
# chown nagios.www-data /var/lib/nagios3/spool/checkresults/
# chmod g+w /var/lib/nagios3/spool/checkresults/
# ls -ld /var/lib/nagios3/spool/checkresults/
drwxrwx--- 2 nagios www-data 12288 Oct 30 12:34 /var/lib/nagios3/spool/checkresults/
bynick-tz, October 5, 2014
There is a bug in send_nrdp.php.
It doesn't work if there is not default port in url.
See source code under comment "Curl"/
It doesn't work if there is not default port in url.
See source code under comment "Curl"/
byschymanski, June 15, 2014
we use this script for multiple lines of output:
define command {
command_name notify-service-by-nrdp
command_line /path/send_nrdp.sh "$HOSTNAME$" "$SERVICEDESC$" $SERVICESTATEID$ "$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$" "$SERVICEPERFDATA$"
}
/path/send_nrdp.sh:
#!/bin/bash
TEST=$(echo "$4 | $5" | sed 's/$/\n/' | tr -d "\r\n" )
/usr/local/nrdp/clients/send_nrdp.php --url=http://1.1.1.1/nrdp --token=xyzterw --host="$1" --service="$2" --state="$3" --output="$TEST"
define command {
command_name notify-service-by-nrdp
command_line /path/send_nrdp.sh "$HOSTNAME$" "$SERVICEDESC$" $SERVICESTATEID$ "$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$" "$SERVICEPERFDATA$"
}
/path/send_nrdp.sh:
#!/bin/bash
TEST=$(echo "$4 | $5" | sed 's/$/\n/' | tr -d "\r\n" )
/usr/local/nrdp/clients/send_nrdp.php --url=http://1.1.1.1/nrdp --token=xyzterw --host="$1" --service="$2" --state="$3" --output="$TEST"
byxoroz, February 6, 2014
Thanks for this simple passive check solution.
I will be implementing it here.
I will be implementing it here.
bysymaedr, December 4, 2013
The tool works well, better than NSCA or other passive methodes.
The URL (assets.nagios...) isn't working any longer though.
The URL (assets.nagios...) isn't working any longer though.
byluhlig, September 24, 2013
NRDP is compatible with nagios core 4 ?
I am trying to use NRDP.
Please give me the hint how to make it work with http_post.
The first TEST is OK : DISABLE_HOST_NOTIFICATIONS
The second TEST on a service is NOT OK.
Please give me the hint how to make it work with http_post.
The first TEST is OK : DISABLE_HOST_NOTIFICATIONS
The second TEST on a service is NOT OK.
Try as I might, I can not get newlines in the output either via the web page submission or via send_nrdp.pl. I've tried \n, \\n, actual newlines and all I ever get is the first line and that's it.
I was glad to see this get developed. We've been migrating away from NSCA to NRDP for multiple reasons:
- Long output support.
- More consistent results interfacing with a web server rather than the NSCA daemon.
- Easier to develop interfaces against URL encoded XML submissions (easy multi-language / multi-platform support).
- It may be my imagination but check results seem to get picked up faster by nagios through NRPD.
I wished it came with a client in another language but PHP. We don't have php binaries in our environment.
I've written a perl based client that uses the NRDP protocol but functions as a dropin replacement for send_nsca. I may post if there's interest.
- Long output support.
- More consistent results interfacing with a web server rather than the NSCA daemon.
- Easier to develop interfaces against URL encoded XML submissions (easy multi-language / multi-platform support).
- It may be my imagination but check results seem to get picked up faster by nagios through NRPD.
I wished it came with a client in another language but PHP. We don't have php binaries in our environment.
I've written a perl based client that uses the NRDP protocol but functions as a dropin replacement for send_nsca. I may post if there's interest.
Owner's reply
It would be great it you'd be willing to post the Perl client. I can include it with future NRDP releases if you're okay with that.
FYI, I have plans to develop a bash client for NRDP in the future unless your Perl client is so easy that it negates that need. :)
This is a huge step forward from NSCA, thanks for the contribution. No more external config is a huge plus, as is the firewall hassle being eliminated.