$HOSTNAME$ macro not working?
Posted: Tue Apr 07, 2015 4:06 pm
Hello,
For some reason $HOSTNAME$ is passing IP as oppose to host_name parameter from host defintion
Here is is my config
define host{
use stage-app-hosts
host_name StageJQMQ1
alias Stage JQ RabbitMQ 1
address 10.xx.xx.xx
}
define service {
use stage-app-services
hostgroup_name Stage_JQMQ
service_description check_mq_server
check_command check_jqmq!check_rabbitmq_server!HOSTNAME$
}
define hostgroup {
hostgroup_name Stage_JQMQ
alias Stage_JQMQ
members StageJQMQ1
}
I am getting this error:
RABBITMQ_SERVER CRITICAL - Received 500 Can't connect to 10.xx.xx.xx.blah.com:15672 (Bad hostname) for path: nodes/rabbit@10
For some reason it's getting the IP address instead hostname
For some reason $HOSTNAME$ is passing IP as oppose to host_name parameter from host defintion
Here is is my config
define host{
use stage-app-hosts
host_name StageJQMQ1
alias Stage JQ RabbitMQ 1
address 10.xx.xx.xx
}
define service {
use stage-app-services
hostgroup_name Stage_JQMQ
service_description check_mq_server
check_command check_jqmq!check_rabbitmq_server!HOSTNAME$
}
define hostgroup {
hostgroup_name Stage_JQMQ
alias Stage_JQMQ
members StageJQMQ1
}
I am getting this error:
RABBITMQ_SERVER CRITICAL - Received 500 Can't connect to 10.xx.xx.xx.blah.com:15672 (Bad hostname) for path: nodes/rabbit@10
For some reason it's getting the IP address instead hostname