Page 1 of 1
Unknown Issue:NRPE handler check client side
Posted: Sun Oct 28, 2018 10:19 am
by hoegh
Hi All,
Recently we have upgraded Nagios XI from 5.4.13 - 5.5.5.
Post Upgrade few services of a server went to unknown state with
Error message as " Could not construct return packet in NRPE handler check client side (nsclient.log) logs"
Suggest what can be done?
Thanks and Regards,
Mayur
Re: Unknown Issue:NRPE handler check client side
Posted: Mon Oct 29, 2018 10:44 am
by npolovenko
Hello,
@hoegh. In XI web interface go to the Configure menu/Core Configurations Manager, click on the commands in the left column, search for the check_nrpe command and change it to look like this:
$USER1$/check_nrpe -2 -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
If this doesn't work please upload the nslcient log file from the windows server.
Re: Unknown Issue:NRPE handler check client side
Posted: Wed Oct 31, 2018 12:23 am
by hoegh
Hi @npolovenko,
Thanks for your quick reply, Issue has been resolved after making changes suggested by you.
When we upgraded Nagios to 5.5.5 then we encountered this problem with more than 10 servers. After searching on forum we found this solution to add -2 in command, and it worked with all servers except one.
below is the way we changed command:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$ -2
& we got below error in Log File on server:
2018-10-31 05:30:18: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
2018-10-31 05:31:36: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
2018-10-31 05:31:37: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
2018-10-31 05:32:45: error:modules\NRPEListener\NRPEListener.cpp:317: Exception handling NRPE packet: Invalid packet version.
Please tell me , when i added
-2 in check_nrpe command it worked with all other servers except one server?
Now when i added
-2 in start of command then it's working fine.
Thanks & Regards
Hoegh
Re: Unknown Issue:NRPE handler check client side
Posted: Wed Oct 31, 2018 10:01 am
by npolovenko
@hoegh, Looks like -2 at the end did not work for that particular nrpe client, and it defaulted to v3 packets which were not supported. Was this on a windows server? Perhaps there was a special character in one of the arguments that made Nagios think -2 was the extension of the command.
Re: Unknown Issue:NRPE handler check client side
Posted: Thu Nov 01, 2018 5:36 am
by hoegh
Hi @npolovenko,
Yes It is a windows Server.
The issue is resolved now, you may close this thread.
Regards,
Mayur.
Re: Unknown Issue:NRPE handler check client side
Posted: Thu Nov 01, 2018 10:10 am
by npolovenko
@hoegh, Closing the thread. Thanks for using the support forum.