From bee9f1ffe9e1586beda00e96d9e3da6171b3ab89 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Tue, 22 Apr 2014 16:45:57 +0530 Subject: 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 --- config/gluster-host.cfg.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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 -%} } -- cgit