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).
NRPE 3.x Issue
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: NRPE 3.x Issue
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:
Try this instead:
If that doesn't work please upload the nsclient.ini file and nsclient.log file from the windows server.
Code: Select all
/usr/local/nagios/libexec/check_nrpe -2 -P 8192 -H hostname -p 12489
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H hostname
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 21
- Joined: Fri Jun 10, 2016 5:10 am
Re: NRPE 3.x Issue
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).
/usr/local/nagios/libexec/check_nrpe -2 -P 8192 -H hostname -p 5666
CHECK_NRPE: Receive underflow - only 1026 bytes received (4 expected).
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: NRPE 3.x Issue
@socgenindia, Can you send in nsclient.ini file and nsclient.log files from the Windows server?
Also, try this command without any arguments:
Also, try this command without any arguments:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H hostname
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.