nscp icon indicating copy to clipboard operation
nscp copied to clipboard

NRPE 4.0.0 = CHECK_NRPE: Invalid packet version received from server on Windows

Open riahc3 opened this issue 5 years ago • 4 comments

I had to reinstall Nagios and the latest version of NRPE was 4.0.0

All my checks are now failing. A simple ./check_nrpe -H WINDOWSHOST returns

CHECK_NRPE: Invalid packet version received from server.

However a ./check_nrpe -H LINUXHOST is still returning correctly.

How do I fix this?

riahc3 avatar Feb 08 '20 17:02 riahc3

Not sure but, I would assume it's probably using v3 of the nrpe protocol or something. There's some docs that allude to it here: https://support.nagios.com/kb/article/nrpe-v3-compatibility-with-previous-versions-516.html

Try using -2 as an argument? Maybe that'll fix it. Otherwise, check the nsclient log for anything, try adding debugging flags to the client (-v I would assume) to see if you can shed some light on it

mintsoft avatar Feb 09 '20 09:02 mintsoft

wow thanks, the -2 fixed it..good thing i visited the issues.. weird it didn't show as a result in startpage. but must not there be a check_nrpe.exe version 4 ?

majed17 avatar Mar 18 '20 07:03 majed17

Im having this exact issue with: Windows 2019 with NSClient 0.5.2.35 Ubuntu 20.04 LTS with check_nrpe 4.0.2

and -2 worked as a workaround.... when will newer versions of check_nrpe be supported ?

Although after reading through the git hub for NRPE, looks like its going to be replaced with NCPA... so -2 is fine as a solution for me till i can migrate away from NRPE

oraclesod avatar May 01 '20 21:05 oraclesod

Yeah I don't believe mickem has any plans to support nrpev3 and is moving basically everything to the HTTP API anyway in the longer term. I believe the official stance is that if you wanted to PR NRPEv3 he'd work with you but he's not planning to do it himself

mintsoft avatar May 03 '20 16:05 mintsoft