Strange behavior running remotely
ClassWarrior opened this issue · 1 comments
Hi,
I've been using this to great success for some time, via nrpe. However, I recently deployed this check to a newly built server, and am getting strange results irrespective as to how it's configured/run.
Basically, if I run the check locally on the server I get:
[root@hostname123 ~]# su - nrpe -s /bin/bash -bash-4.1$ /usr/lib64/nagios/plugins/check_mountpoints.sh -m /etc/mtab -f /etc/fstab -N 3 -M 2 -T 3 -i -w /data/mysql/backups OK: all mounts were found ( /data/mysql/backups) -bash-4.1$ /usr/lib64/nagios/plugins/check_mountpoints.sh -m /etc/mtab -A -wOK: all mounts were found (/data/mysql/backups ) -bash-4.1$ /usr/lib64/nagios/plugins/check_mountpoints.sh -m /etc/mtab -a -w OK: all mounts were found (/data/mysql/backups )However, whenever I run this from my nagios server (just for this one host: It works just fine on every other box I'm checking) I get the following:
[nagios@nagios_server ~]$ /usr/local/nagios/libexec/check_nrpe -H hostname123 -c check_nfs_mounts CRITICAL: /data/mysql/backups don't exists in filesystem ;That path most certainly exists, and all other nrpe checks are working just fine.
Any help is greatly appreciated.
Thanks.
nevermind <facepalm!>
I hadn't deployed the selinux exception for this check to this server yet.
It actually, struck me to check this, right after I had submitted it, as the only thing left that I hadn't checked, but I thought it might be useful to have this tracked, in case someone runs into the same issue.
feel free to close this. Thanks for making such a great and useful tool.