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/

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
NRDP - Overview
Viewed 8065 times since Thu, Jan 28, 2016
Nagios XI - Distributed Monitoring With NRDP
Viewed 5752 times since Thu, Aug 17, 2017
NRDP - send_nrdp Client
Viewed 16474 times since Mon, Jun 19, 2017
Nagios XI - Configuring Outbound Checks
Viewed 4755 times since Wed, Jan 27, 2016
Nagios XI - Configuring Passive Services With Nagios XI
Viewed 5574 times since Wed, Jan 27, 2016
Nagios Log Server - Alerting On Log Events
Viewed 9488 times since Thu, Jan 28, 2016
NRDP - Configuring SSL/TLS
Viewed 8389 times since Mon, Jul 3, 2017
NRDP - Passive Host And Service Definitions
Viewed 14980 times since Wed, Oct 18, 2017
Nagios XI - Monitoring Unconfigured Objects
Viewed 6274 times since Thu, Jan 28, 2016
Nagios XI - Configuring Inbound Checks
Viewed 5469 times since Wed, Jan 27, 2016