CHECK_NRPE: Error receiving data from daemon

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
uinthas
Posts: 14
Joined: Thu Feb 20, 2014 3:35 pm

CHECK_NRPE: Error receiving data from daemon

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Error receiving data from daemon

Post by slansing »

Did you compile NRPE with SSL support on the remote host? That is likely your issue.
uinthas
Posts: 14
Joined: Thu Feb 20, 2014 3:35 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by uinthas »

I ran the following command: apt-get install nagios-plugins nagios-nrpe-plugin nagios-nrpe-server

How might I correct this?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
uinthas
Posts: 14
Joined: Thu Feb 20, 2014 3:35 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by abrist »

Then you will most likely need to compile from source, as the packages provided by your distro are ssl enabled bins.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked