nrpe communication issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

nrpe communication issue

Post by progressive.nagiosXI »

Hi,

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

Please help to resolve the issue.

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe communication issue

Post 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>
Be sure to check out our Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: nrpe communication issue

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe communication issue

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277
Joined: Mon Jul 31, 2017 5:54 am

Re: nrpe communication issue

Post 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).
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe communication issue

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked