Page 1 of 1

CHECK_NRPE: Error receiving data from daemon

Posted: Thu Feb 20, 2014 3:44 pm
by uinthas
I get this response from Nagios, but when I take the -n out it works just fine. I can run which openssl on my remote client and I get a return of /usr/bin/openssl, so it's enabled but still does not work with the -n switch.

command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ --doesn't work

command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ --works

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Feb 21, 2014 1:14 pm
by slansing
Did you compile NRPE with SSL support on the remote host? That is likely your issue.

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Feb 21, 2014 1:18 pm
by uinthas
I ran the following command: apt-get install nagios-plugins nagios-nrpe-plugin nagios-nrpe-server

How might I correct this?

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Feb 21, 2014 1:26 pm
by abrist
'-n' ignores (as in it does not use) ssl. I would presume it is working fine and you just need to remove '-n' as your nrpe installs support ssl.

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Feb 21, 2014 1:31 pm
by uinthas
abrist wrote:'-n' ignores (as in it does not use) ssl. I would presume it is working fine and you just need to remove '-n' as your nrpe installs support ssl.
Correct, it does run without the -n, but I do want to use ssl

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Feb 21, 2014 1:37 pm
by abrist
Then you will most likely need to compile from source, as the packages provided by your distro are ssl enabled bins.