Page 1 of 1

CHECK_NRPE: Error receiving data from daemon

Posted: Fri Aug 11, 2017 3:08 am
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?

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Fri Aug 11, 2017 11:58 am
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

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Mon Aug 14, 2017 3:01 am
by mesobranlaspalabras
Ok,

I will try it

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Mon Aug 14, 2017 12:13 pm
by bolson
Let me know if this resolves your issue. Thank you!

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Thu Mar 15, 2018 8:49 am
by mesobranlaspalabras
resolved.

Thanks for help!

Re: CHECK_NRPE: Error receiving data from daemon

Posted: Thu Mar 15, 2018 9:16 am
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!