From 84b79fb7ab439abbe9054a47c3d706adee83db19 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 4 Oct 2005 12:03:59 +0000 Subject: Catch missing hostgroup def git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@22 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- build-nagios | 1 + 1 file changed, 1 insertion(+) 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 }; } -- cgit v1.2.3