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
mesobranlaspalabras
Posts: 6
Joined: Fri Aug 11, 2017 2:42 am

CHECK_NRPE: Error receiving data from daemon

Post by mesobranlaspalabras »

Hi guys,

I installed Nagios Core 4.3.2 server and client. In client when i try to execute this : /usr/local/nagios/libexec/check_nrpe -H localhot -n, the answer is this CHECK_NRPE: Error receiving data from daemon.

I have revised:

-firewall/iptables: it's desactivated

- nrpe.cfg:

#server_address=127.0.0.1
]nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1

- user and group

nagios:x:500:500::/home/nagios:/bin/bash
nagios:x:500:

drwxrwxr-x. 2 nagios nagios 4096 ago 10 13:41 libexec
drwxrwxr-x. 2 nagios nagios 4096 ago 10 13:52 etc
-rw-r--r--. 1 nagios nagios 7,9K ago 10 13:49 nrpe.cfg

-xinetd
[root@SrvNagiosCore-cliente xinetd.d]# cat nrpe.xinetd
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 192.168.100.67
}

I can't find the cause of problem.

Best regards!

Someone can help me?
bolson

Re: CHECK_NRPE: Error receiving data from daemon

Post by bolson »

Are you running nrpe as a daemon (service) or as a xinetd service?

try

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
This may be a dns resolution issue for localhost
mesobranlaspalabras
Posts: 6
Joined: Fri Aug 11, 2017 2:42 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by mesobranlaspalabras »

Ok,

I will try it
bolson

Re: CHECK_NRPE: Error receiving data from daemon

Post by bolson »

Let me know if this resolves your issue. Thank you!
mesobranlaspalabras
Posts: 6
Joined: Fri Aug 11, 2017 2:42 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by mesobranlaspalabras »

resolved.

Thanks for help!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by tmcdonald »

Glad to hear it! I'll be closing this up now, but feel free to open another thread if you need anything in the future!
Former Nagios employee
Locked