THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Products » NRDP » Documentation

NRDP - Client Scheduling And Configuration - Linux

Overview

This KB article explains how the NRDP client schedules the checks and the configuration files involved on Linux operating systems.

 

Scheduling

The scheduling and executing of the NRDP checks is performed by the cron daemon.

You can view the jobs using the crontab command, example:

crontab -u nagios -l

Which will output something like:

*/1 * * * * /usr/local/nrdp/clients/nrds/nrds.pl -H 'my_client_name' 2>&1

The crontab file is

/var/spool/cron/nagios

 

If you want to edit the crontab, use following command:

crontab -u nagios -e

 

If you wanted to run the command manually, you would need to become the nagios user and execute the command except for the 2>&1 at the end:

su nagios
/usr/local/nrdp/clients/nrds/nrds.pl -H 'my_client_name'

 

This can be handy for troubleshooting issues. The 2>&1 at the end discards any output, this is why we remove it when troubleshooting.

Here is an example of a successful execution:

Sent 2 checks to https://xitest.domain.local/nrdp/

 

Here is an example of a failed execution:

Can't exec "/usr/lib/nagios/plugins/check_ping": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 18.
Sent 2 checks to https://xitest.domain.local/nrdp/

 

You can see that manually executing the command can help diagnose issues that go unseen.

 

When you have finished testing as the nagios user:

exit

 

 

Configuration File

When the /usr/local/nrdp/clients/nrds/nrds.pl script runs, it uses the /usr/local/nrdp/clients/nrds/nrds.cfg  file.

nrds.cfg contains all the plugin commands that need to be execute and other preferences required for sending the check results back to the Nagios server.

 
Note

Changes to this file may be overwritten the next time the nrds.pl script runs, as there is a configuration option to update the configs.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Distributed Monitoring With NRDP
Viewed 8137 times since Thu, Aug 17, 2017
Nagios XI - Monitoring Unconfigured Objects
Viewed 8558 times since Thu, Jan 28, 2016
Nagios XI - Configuring Passive Services With Nagios XI
Viewed 7860 times since Wed, Jan 27, 2016
Nagios Log Server - Alerting On Log Events
Viewed 13216 times since Thu, Jan 28, 2016
NRDP - send_nrdp Client
Viewed 22041 times since Mon, Jun 19, 2017
NRDP - Configuring SSL/TLS
Viewed 12637 times since Mon, Jul 3, 2017
NRDP - Overview
Viewed 10874 times since Thu, Jan 28, 2016
Nagios XI - Configuring Inbound Checks
Viewed 7351 times since Wed, Jan 27, 2016
Nagios XI - Configuring Outbound Checks
Viewed 6386 times since Wed, Jan 27, 2016
NRDP - Passive Host And Service Definitions
Viewed 19067 times since Wed, Oct 18, 2017