Page 1 of 1
NRPE 3.x Issue
Posted: Wed Feb 14, 2018 2:16 pm
by socgenindia
we have upgraded our nrpe 2.15 to nrpe 3.2.1 and also upgraded nagios plugin. We are monitoring windows server using the NSClient version 4.4.23 . However i am getting below error even after making payload length in ini file. followed the instruction from below link.
https://support.nagios.com/kb/article.php?id=518
/usr/local/nagios/libexec/check_nrpe -2 -P 8192 -H hostname -p 12489
CHECK_NRPE: Receive underflow - only 1026 bytes received (4 expected).
Re: NRPE 3.x Issue
Posted: Wed Feb 14, 2018 5:18 pm
by npolovenko
Hello,
@socgenindia. If you're using check_nrpe then the port number is 5666, 12489 is the nsclient port, so you'd need to use check_nt command instead. You don't really need to specify these ports. Also, what's the command that you're running? Is it just:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -2 -P 8192 -H hostname -p 12489
Try this instead:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H hostname
If that doesn't work please upload the nsclient.ini file and nsclient.log file from the windows server.
Re: NRPE 3.x Issue
Posted: Thu Feb 15, 2018 12:51 am
by socgenindia
sorry that was a typo, command that i executed is below.
/usr/local/nagios/libexec/check_nrpe -2 -P 8192 -H hostname -p 5666
CHECK_NRPE: Receive underflow - only 1026 bytes received (4 expected).
Re: NRPE 3.x Issue
Posted: Thu Feb 15, 2018 2:49 pm
by npolovenko
@socgenindia, Can you send in nsclient.ini file and nsclient.log files from the Windows server?
Also, try this command without any arguments:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H hostname