Unknown Issue:NRPE handler check client side

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Unknown Issue:NRPE handler check client side

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

Re: Unknown Issue:NRPE handler check client side

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Unknown Issue:NRPE handler check client side

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

Re: Unknown Issue:NRPE handler check client side

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: Unknown Issue:NRPE handler check client side

Post by hoegh »

Hi @npolovenko,

Yes It is a windows Server.
The issue is resolved now, you may close this thread.

Regards,
Mayur.
Thanks
Höegh
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Unknown Issue:NRPE handler check client side

Post by npolovenko »

@hoegh, Closing the thread. Thanks for using the support forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked