Re: NRPE: Unable to read output
Posted: Wed Nov 16, 2016 7:46 am
Hi,
[root@client_nrpe ~]# su nrpe
bash-4.1$ /usr/bin/sudo /usr/local/nagios/libexec/check_swap -w 20% -c 10%
SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
bash-4.1$ /usr/local/nagios/libexec/check_swap -w 20% -c 10%
SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
I delete sudo fo rcheck_swap and now working, but don't working check_jmeter, I delete sudo for check_jmeter too.
I think nrep user is right because I see into /var/log/messages this output :
Nov 16 13:34:52 client_nrpe nrpe[1154]: Running command: /usr/local/nagios/libexec/check_swap -w 20% -c 10%
Nov 16 13:34:52 client_nrpe nrpe[1154]: Command completed with return code 0 and output: SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
Nov 16 13:34:52 client_nrpe nrpe[1154]: Return Code: 0, Output: SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
Nov 16 13:34:52 client_nrpe nrpe[1154]: Connection from pn▒▒▒#177 closed.
Nov 16 13:35:01 client_nrpe nrpe[1181]: Connection from 10.10.10.10 port 19111
Nov 16 13:35:01 client_nrpe nrpe[1181]: Host address is in allowed_hosts
Nov 16 13:35:01 client_nrpe nrpe[1181]: Handling the connection...
Nov 16 13:35:01 client_nrpe nrpe[1181]: Host is asking for command 'check_jmeter' to be run...
Nov 16 13:35:01 client_nrpe nrpe[1181]: Running command: /usr/local/nagios/libexec/check_site.sh
Nov 16 13:35:01 client_nrpe nrpe[1181]: Command completed with return code 1 and output:
Nov 16 13:35:01 client_nrpe nrpe[1181]: Return Code: 1, Output: NRPE: Unable to read output
Nov 16 13:35:01 client_nrpe nrpe[1181]: Connection from pn▒▒▒#177 closed.
Thanks.
Natalia
[root@client_nrpe ~]# su nrpe
bash-4.1$ /usr/bin/sudo /usr/local/nagios/libexec/check_swap -w 20% -c 10%
SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
bash-4.1$ /usr/local/nagios/libexec/check_swap -w 20% -c 10%
SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
I delete sudo fo rcheck_swap and now working, but don't working check_jmeter, I delete sudo for check_jmeter too.
I think nrep user is right because I see into /var/log/messages this output :
Nov 16 13:34:52 client_nrpe nrpe[1154]: Running command: /usr/local/nagios/libexec/check_swap -w 20% -c 10%
Nov 16 13:34:52 client_nrpe nrpe[1154]: Command completed with return code 0 and output: SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
Nov 16 13:34:52 client_nrpe nrpe[1154]: Return Code: 0, Output: SWAP OK - 100% free (4076 MB out of 4094 MB) |swap=4076MB;818;409;0;4094
Nov 16 13:34:52 client_nrpe nrpe[1154]: Connection from pn▒▒▒#177 closed.
Nov 16 13:35:01 client_nrpe nrpe[1181]: Connection from 10.10.10.10 port 19111
Nov 16 13:35:01 client_nrpe nrpe[1181]: Host address is in allowed_hosts
Nov 16 13:35:01 client_nrpe nrpe[1181]: Handling the connection...
Nov 16 13:35:01 client_nrpe nrpe[1181]: Host is asking for command 'check_jmeter' to be run...
Nov 16 13:35:01 client_nrpe nrpe[1181]: Running command: /usr/local/nagios/libexec/check_site.sh
Nov 16 13:35:01 client_nrpe nrpe[1181]: Command completed with return code 1 and output:
Nov 16 13:35:01 client_nrpe nrpe[1181]: Return Code: 1, Output: NRPE: Unable to read output
Nov 16 13:35:01 client_nrpe nrpe[1181]: Connection from pn▒▒▒#177 closed.
Thanks.
Natalia