unable to define the command in check HTTP in service
Posted: Fri Nov 03, 2017 1:17 pm
In using Nagios XI, using the configuration manager to create a service to use the "check_http" or "check_xi_service_http" I'm unable to configure this command that works from the command console.
The command that works and I want to configured this using CCM:
But I'm unable to do this bacause when I select "check_http" command, the command view populates with $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ whcih is not what I want because I don't want to use the -I switch.
When I select to use the "check_xi_service_http", then the command view populates with $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ which is what I want because I want to use the -H switch, however, when I do the Run Check Command, the -H parameter value is automatically translated to IP address from the Host that was assigned rather than for me to be able to provide the -H parameter with abc.xyz.com.
How can I get around this? Isn't there a way for me to tell CCM to create the service that executes the exact command that I know it works?
thanks,
ik
The command that works and I want to configured this using CCM:
Code: Select all
/usr/local/nagios/libexec/check_http -H abc.xyz.com -u '/LinkWeb/LinkEntry' -S -p 443When I select to use the "check_xi_service_http", then the command view populates with $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ which is what I want because I want to use the -H switch, however, when I do the Run Check Command, the -H parameter value is automatically translated to IP address from the Host that was assigned rather than for me to be able to provide the -H parameter with abc.xyz.com.
How can I get around this? Isn't there a way for me to tell CCM to create the service that executes the exact command that I know it works?
thanks,
ik