summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2014-04-22 16:45:57 +0530
committerBala.FA <barumuga@redhat.com>2014-04-29 10:21:37 +0530
commitbee9f1ffe9e1586beda00e96d9e3da6171b3ab89 (patch)
treeb1bd463d9018edbeb9449e31d2fbef771965948a /config
parent938e318bbfec1900aceea25c2702f234961c0493 (diff)
autoconf: use host name for host config
Discover the host name configured for the gluster node and use the same as host_name in nagios host configuration. Change-Id: Ib9eb8b3f3a1a03d1be28fa2faba44c2fc81fa0cf Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
Diffstat (limited to 'config')
-rw-r--r--config/gluster-host.cfg.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/gluster-host.cfg.template b/config/gluster-host.cfg.template
index bd1b2af..0b5173d 100644
--- a/config/gluster-host.cfg.template
+++ b/config/gluster-host.cfg.template
@@ -17,10 +17,10 @@ use {{host['use']}}
host_name {{host['host_name']}}
alias {{host['alias']}}
address {{host['address']}}
-{% if host['check_command'] != "" -%}
+{% if host['check_command'] is defined -%}
check_command {{host['check_command']}}
{% endif -%}
-{% if host['hostgroups'] != "" -%}
+{% if host['hostgroups'] is defined -%}
hostgroups {{host['hostgroups']}}
{% endif -%}
}