summaryrefslogtreecommitdiff
path: root/build-nagios
diff options
context:
space:
mode:
Diffstat (limited to 'build-nagios')
-rwxr-xr-xbuild-nagios1
1 files changed, 1 insertions, 0 deletions
diff --git a/build-nagios b/build-nagios
index 2d46742..d6f1548 100755
--- a/build-nagios
+++ b/build-nagios
@@ -75,6 +75,7 @@ config['hostgroups'].each_value{ |hg|
config['servers'].each_pair{ |name, server|
server['hostgroups'].split(/,/).each{ |hg|
hg.strip!
+ throw "Hostgroup #{hg} is not defined" unless config['hostgroups'].has_key?(hg)
config['hostgroups'][hg]['members'] << name
};
}