Upgrade to 5.5 broke check_nrpe
-
cbroschard
- Posts: 15
- Joined: Wed Apr 17, 2013 10:54 am
Upgrade to 5.5 broke check_nrpe
After running the upgrade today from 5.4.13 to 5.5 of NAGIOS XI, we started receiving the following error for all Windows checks which do use nsclient++: Could not construct return packet in NRPE handler check client side (nsclient.log) logs....
I googled the error and the suggested fix was to allow_arguments 1 and set the port to 5666 which were already set. Since this system is necessary for our monitoring we reverted back to 5.4.13 and the checks are working again. So I don't want to try the upgrade again until I know what could cause that error.
I googled the error and the suggested fix was to allow_arguments 1 and set the port to 5666 which were already set. Since this system is necessary for our monitoring we reverted back to 5.4.13 and the checks are working again. So I don't want to try the upgrade again until I know what could cause that error.
Re: Upgrade to 5.5 broke check_nrpe
We will try to recreate the issue in-house, but we need some additional information. What is the NSClient++ version that you are currently using? Show us an example config of the service that failed after the upgrade, the nsclient.ini file, and the entire nsclient.log. Obfuscate sensitive data. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cbroschard
- Posts: 15
- Joined: Wed Apr 17, 2013 10:54 am
Re: Upgrade to 5.5 broke check_nrpe
Awesome - thanks! We are using nsclient++ 0.3.9.328
I have attached both the nsclient.log and ini file.
Here is an example service that failed:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
CheckDriveSize -a MaxWarn=95% MaxCrit=97% CheckAllOthers Drive=M:
I have attached both the nsclient.log and ini file.
Here is an example service that failed:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
CheckDriveSize -a MaxWarn=95% MaxCrit=97% CheckAllOthers Drive=M:
You do not have the required permissions to view the files attached to this post.
Re: Upgrade to 5.5 broke check_nrpe
Your check broke, because of incompatibility between NRPE (v. 3) and your NSClient++ agent (v. 0.3.9).
Note: The NRPE has been upgraded during the Nagios XI upgrade from 2.15 to 3.2.1.
So, you can upgrade your NSClient++ agent to the latest or you can try changing the check_nrpe command from this:
to this:
Save and apply configuration.
FYI, if you are having issues with ONLY this check, and you don't want to change the check_nrpe command (which will affect all services, that are using it), you could create a new, custom command, for example, "check_nrpe_2". Then, you can modify your service to use "check_nrpe_2", instead of "check_nrpe".
Examples:
Note: The NRPE has been upgraded during the Nagios XI upgrade from 2.15 to 3.2.1.
So, you can upgrade your NSClient++ agent to the latest or you can try changing the check_nrpe command from this:
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -2 -c $ARG1$ $ARG2$You can see all of the check_nrpe options (help menu) by running from the command line:-2, --v2-packets-only Only use version 2 packets, not version 3
Code: Select all
/usr/local/nagios/libexec/check_nrpe -hFYI, if you are having issues with ONLY this check, and you don't want to change the check_nrpe command (which will affect all services, that are using it), you could create a new, custom command, for example, "check_nrpe_2". Then, you can modify your service to use "check_nrpe_2", instead of "check_nrpe".
Examples:
Code: Select all
define command {
command_name check_nrpe_2
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -2 -c $ARG1$ $ARG2$
}Code: Select all
define service {
host_name myhost
service_description myservice
use mytemplate
check_command check_nrpe_2! CheckDriveSize -a MaxWarn=95% MaxCrit=97% CheckAllOthers Drive=M:
...
}Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cbroschard
- Posts: 15
- Joined: Wed Apr 17, 2013 10:54 am
Re: Upgrade to 5.5 broke check_nrpe
Ok makes sense so I have a question - we have a ton of services that I didn't list - can we make the changes one-by-one now before the upgrade to add the -2 option or do we need to upgrade first and then make changes?
Re: Upgrade to 5.5 broke check_nrpe
If you upgraded to the latest stable version of NSClient++, you wouldn't be needing to add "-2" to the check_nrpe command. However, keep in mind that the syntax of the NSClient++ config file is quite different in newer versions. Even the name is different - NSC.ini vs nsclient.ini. Make a backup of your NSC.ini file just in case you need to look up some of the commands or you decide to revert back to the older version of NSClient++.
Another option would be to switch to NCPA, which is better supported agent as it is our own. NSClient++ is not developed or maintained by us (Nagios).
Another option would be to switch to NCPA, which is better supported agent as it is our own. NSClient++ is not developed or maintained by us (Nagios).
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cbroschard
- Posts: 15
- Joined: Wed Apr 17, 2013 10:54 am
Re: Upgrade to 5.5 broke check_nrpe
Ok makes sense then - our Linux systems were working correctly just not the Windows. It makes sense I'll see about getting the client switched.
Thanks!
Thanks!
Re: Upgrade to 5.5 broke check_nrpe
Sounds good! Let us know if it is OK to close this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
cbroschard
- Posts: 15
- Joined: Wed Apr 17, 2013 10:54 am
Re: Upgrade to 5.5 broke check_nrpe
You can close it - it's going to be a bit before we update so no point in keeping this open when we know the solution. Thanks again!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Upgrade to 5.5 broke check_nrpe
Lockingcbroschard wrote:You can close it - it's going to be a bit before we update so no point in keeping this open when we know the solution. Thanks again!