From 2b6da3491ffec126e70b180cdaeb9a28a82dd30f Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Wed, 1 May 2013 07:56:25 -0400 Subject: [PATCH] Fix hostgroups all servers duplicate bug --- GenaSYS.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index d3f4735..84a60cf 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -2170,11 +2170,11 @@ ALL_MACHINES_LIST="$BRICKDRONELIST $MACHINES_LIST ${REPORTS_NFS_HOSTNAME}" echo $OSRF_MACHINES_LIST ### Generate hostgroups file TMPNAGHOSTGROUPS="$TMPFOLDER/hostgroups.cfg" -printf 'define hostgroup {\n' >>$TMPNAGHOSTGROUPS -printf "\thostgroup_name all\n" >>$TMPNAGHOSTGROUPS -printf "\talias All Servers\n" >>$TMPNAGHOSTGROUPS -printf "\tmembers *\n" >>$TMPNAGHOSTGROUPS -printf '}\n' >>$TMPNAGHOSTGROUPS +#printf 'define hostgroup {\n' >>$TMPNAGHOSTGROUPS +#printf "\thostgroup_name all\n" >>$TMPNAGHOSTGROUPS +#printf "\talias All Servers\n" >>$TMPNAGHOSTGROUPS +#printf "\tmembers *\n" >>$TMPNAGHOSTGROUPS +#printf '}\n' >>$TMPNAGHOSTGROUPS ### Generate block for hostgroups.cfg for Icinga/Nagios monitoring GenHostGroup () { ### Usage: $0 "hostgroup_name" "alias" "members" -- 2.11.0