check_nrpe!check_cpu and others not working, weird issue
Posted: Mon Jun 23, 2014 3:00 pm
Hi
I am really struggling with an issue I have...
Running this on the remote machine works fine:
Running it on the nagios server produced an error:
I have been messing with permissions/sudoers/shell and things people report online for this what looks like a very common error, BUT here's the thing, if I replace the check_cpu content with a simple echo "hi!" message, then it works fine from the server.
Does anyone know why this is? Maybe python can't be executed remotely, but bash can?
I get similar issues with other scripts, like check_load, it works on the remote machine locally, but not on the nagios server:
I am really struggling with an issue I have...
Running this on the remote machine works fine:
Code: Select all
[root@mail ~]# /usr/lib64/nagios/plugins/check_cpu
OK: CPU is 98% idle | cpu=2%;101;102;0;100Code: Select all
root@monitor:~# /usr/lib/nagios/plugins/check_nrpe -H myhost.com -c check_cpu
NRPE: Unable to read outputCode: Select all
root@monitor:~# /usr/lib/nagios/plugins/check_nrpe -H myhost.com -c check_cpu
HiI get similar issues with other scripts, like check_load, it works on the remote machine locally, but not on the nagios server:
Code: Select all
root@monitor:~# /usr/lib/nagios/plugins/check_nrpe -H myhost.com -c check_load -a '-w 15,10,5 -c 30,25,20'
Warning threshold must be float or float triplet!
Usage:
check_load [-r] -w WLOAD1,WLOAD5,WLOAD15 -c CLOAD1,CLOAD5,CLOAD15