X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=config%2Fbuild-nagios;h=13c3d4ce59a3fee980e070dea3d83d24fa4c720c;hb=d694c4df7b6cb7af2a09b98430729deefb64c69a;hp=94a2b5316e47d98e6c55165f985a411ab1682080;hpb=457ba27cb6920b7033736da5f067d3e148ae23c9;p=mirror%2Fdsa-nagios.git diff --git a/config/build-nagios b/config/build-nagios index 94a2b53..13c3d4c 100755 --- a/config/build-nagios +++ b/config/build-nagios @@ -358,6 +358,7 @@ config['servers'].each_pair{ |name, server| ############## config['hostgroups'].each_pair{ |name, hg| next if hg['private'] + throw "Empty hostgroup #{name}" if hg['_memberlist'].length == 0 set_complain_if_set hg, 'hostgroup_name', name , 'Hostgroup', name set_complain_if_set hg, 'members' , hg['_memberlist'].join(","), 'Hostgroup', name