NRPE 3.x Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
socgenindia
Posts: 21
Joined: Fri Jun 10, 2016 5:10 am

NRPE 3.x Issue

Post 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).
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE 3.x Issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
socgenindia
Posts: 21
Joined: Fri Jun 10, 2016 5:10 am

Re: NRPE 3.x Issue

Post 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).
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE 3.x Issue

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked