Hi,
we are able to telnet 5666 port but NRPE not responding.
Please help to resolve the issue.
Thanks
nrpe communication issue
-
progressive.nagiosXI
- Posts: 277
- Joined: Mon Jul 31, 2017 5:54 am
nrpe communication issue
You do not have the required permissions to view the files attached to this post.
Re: nrpe communication issue
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?
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
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
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
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:
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
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).
# /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
Do you have the following line in the nrpe.cfg file on the remote machine?
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:
Save, exit, and restart NRPE. Next, try the following commands from the Nagios XI server:
Did any of these work?
Code: Select all
dont_blame_nrpe=1Test 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 5Code: 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_noargsBe sure to check out our Knowledgebase for helpful articles and solutions!