Page 1 of 1

nrpe communication issue

Posted: Fri May 10, 2019 8:44 am
by progressive.nagiosXI
Hi,

we are able to telnet 5666 port but NRPE not responding.

Please help to resolve the issue.

Thanks

Re: nrpe communication issue

Posted: Fri May 10, 2019 9:07 am
by lmiltchev
Most probably, there is a mismatch between the NRPE version that is used on the remote machine, and the the one used on the Nagios XI server.

Can you run the following commands from the command line on the Nagios XI server, and show the output?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip>
/usr/local/nagios/libexec/check_nrpe -2 -H <client ip>

Re: nrpe communication issue

Posted: Sat May 11, 2019 9:55 am
by progressive.nagiosXI
Hi,


Client IP
[root@monitoring-nagiosxi ~]# /usr/local/nagios/libexec/check_nrpe -H 13.71.*.*
NRPE v2.15
[root@monitoring-nagiosxi ~]# /usr/local/nagios/libexec/check_nrpe -2 -H 13.71.*.*
NRPE v2.15

Nagiosxi
[root@monitoring-nagiosxi libexec]# ./check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1


Thanks

Re: nrpe communication issue

Posted: Mon May 13, 2019 9:05 am
by lmiltchev
I would recommend upgrading NRPE version on the client machine by following the steps, outlined in the KB article below:

https://support.nagios.com/kb/article/n ... e-520.html

If you don't want to upgrade your agent at this time, you could try modifying your commands by including "-2". This should fix the issue with the different versions of NRPE used on the server and the client.

Example:
/usr/local/nagios/libexec/check_nrpe -2 -H x.x.x.x -c check_users -a '-w 2 -c 5'
USERS OK - 1 users currently logged in |users=1;2;5;0

Re: nrpe communication issue

Posted: Tue May 14, 2019 7:58 am
by progressive.nagiosXI
still issue not resolved

# /usr/local/nagios/libexec/check_nrpe -2 -H 13.71.*.* -c check_users -a '-w 2 -c 5'
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).

Re: nrpe communication issue

Posted: Tue May 14, 2019 10:26 am
by lmiltchev
Do you have the following line in the nrpe.cfg file on the remote machine?

Code: Select all

dont_blame_nrpe=1
If the value is "0", change it to "1", save, exit, and restart the NRPE daemon on the remote box.

Test your check from the CLI again. If it is still failing, set up a new one on the remote machine, with "hard-coded" arguments (for testing purposes), for example:

Code: Select all

command[check_users_noargs]=/usr/local/nagios/libexec/check_users -w 2 -c 5
Save, exit, and restart NRPE. Next, try the following commands from the Nagios XI server:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip> -c check_users_noargs
/usr/local/nagios/libexec/check_nrpe -H <client ip> -2 -c check_users_noargs
Did any of these work?