Page 1 of 1

Nagios Check TCP

Posted: Wed Feb 08, 2012 6:36 am
by htel
Hello,

It appears whenever I apply a Nagios XI update the check_xi_service_tcp command changes to:

"$USER1$/check_tcp -H $HOSTADDRESS$ $ARG1$"

This causes all of my check tcp port services to report Critical.

Adding the -p (For the port number) back the command resolves the issue. "$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$"

This happened when I installed the 2011R1.9 and 2011R2.0 updates. Just thought I would make you aware.

Regards

Re: Nagios Check TCP

Posted: Wed Feb 08, 2012 1:01 pm
by scottwilkerson
Thanks, we will will look into the upgrade process.

Re: Nagios Check TCP

Posted: Wed Feb 08, 2012 2:36 pm
by scottwilkerson
After looking at the wizard, the check_xi_service_tcp command is supposed to be
"$USER1$/check_tcp -H $HOSTADDRESS$ $ARG1$"

and the wizard places the -p flag in $ARG1$ before the port.

This would be expected behavior, if you modified the command, you really should create a new command and use that, all of the XI commands are reset on upgrade so the wizards work.