From 7848dc464b0cc3a4a38b83934a6ce665bec6a782 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 4 Oct 2005 12:25:23 +0000 Subject: Allow per hostgroup contacts git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@23 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- build-nagios | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build-nagios') diff --git a/build-nagios b/build-nagios index d6f1548..405f564 100755 --- a/build-nagios +++ b/build-nagios @@ -108,10 +108,11 @@ config['servers'].each_pair{ |name, server| f = File.new(GENERATED_PREFIX+"auto-hostgroups.cfg", "w") config['hostgroups'].each_pair{ |name, hg| next if hg['private'] + hg['contact_groups'] = CONTACTGROUP unless hg.has_key?('contact_groups') f.puts "define hostgroup{" f.puts " hostgroup_name #{ name }" f.puts " alias #{ hg['alias'] }" - f.puts " contact_groups #{ CONTACTGROUP }" + f.puts " contact_groups #{ hg['contact_groups'] }" f.puts " members "+hg['members'].join(",") f.puts "}" } -- cgit v1.2.3