check_xi_host_http
Posted: Mon Mar 04, 2019 4:39 pm
Hello,
I use the check_xi_host_http to check HTTP Side. The associated command is $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
The configures host have:
Hostname = www.example.com
address = 23.12.12.11
With this command, the http check uses the IP adresse instead of the hostname. the problem is that the Web server only access request qith the correct hostname.
I change the command to $USER1$/check_http -H $HOSTNAME$ $ARG1$.
But for any reason it does not work. In the services you can run the check command, but you get.:
[[email protected] ~]$ /usr/local/nagios/libexec/check_http -H $HOSTNAME$ -S check_http: Invalid hostname/address - nagios.asecus.ch$
It looks like that the Nagios is not able to get the correct value for $HOSTNAME$$.
Is someone aware about this issue?
I found a workaround, but i am not satisfied.
REgards
pascal
I use the check_xi_host_http to check HTTP Side. The associated command is $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
The configures host have:
Hostname = www.example.com
address = 23.12.12.11
With this command, the http check uses the IP adresse instead of the hostname. the problem is that the Web server only access request qith the correct hostname.
I change the command to $USER1$/check_http -H $HOSTNAME$ $ARG1$.
But for any reason it does not work. In the services you can run the check command, but you get.:
[[email protected] ~]$ /usr/local/nagios/libexec/check_http -H $HOSTNAME$ -S check_http: Invalid hostname/address - nagios.asecus.ch$
It looks like that the Nagios is not able to get the correct value for $HOSTNAME$$.
Is someone aware about this issue?
I found a workaround, but i am not satisfied.
REgards
pascal