Problem Description
When you manually run the nrds.pl command on your NRDP client, for example:
sudo -u nagios /usr/local/nrdp/clients/nrds/nrds.pl -H 'centos13'
You get an error similar to the following:
Sent 6 checks to http://xi-c6x-x64/nrdp/
Updated config to version 0.2
ERROR: plugin check_xxx could not be retrieved from the NRDP server. Check NRDS plugin directory.
Updated 5 plugins
Resolving The Problem
This problem can occur when the permissions are not correct on the plugins directory on the NRDS client (/usr/local/nagios/libexec/).
For example, this command will show the permissions:
ls -la /usr/local/nagios/
Output similar to the following is produced:
total 12
drwxr-xr-x. 3 root root 4096 Aug 3 14:08 .
drwxr-xr-x. 14 root root 4096 Aug 3 14:08 ..
drwxr-xr-x. 2 root root 4096 Aug 3 14:08 libexec
You can see in the output above that the user and group owner is the root user when it should be the nagios user/group. The permissions can be resolved with the following command:
chown -R nagios:nagios /usr/local/nagios/libexec
The next time the nrds.pl command is run the plugins will be updated. Manually running the the nrds.pl command:
sudo -u nagios /usr/local/nrdp/clients/nrds/nrds.pl -H 'centos13'
The error will stop occurring and correctly download the plugins:
Sent 7 checks to http://xi-c6x-x64/nrdp/
Updated config to version 0.3
Updated 6 plugins
You may need to update the NRDS config version on the Nagios xi server to force the clients to re-attempt the download. This is as simple as editing the config and clicking the Save button.
Final Thoughts
For any support related questions please visit the Nagios Support Forums at: