diff options
Diffstat (limited to 'build-nagios')
-rwxr-xr-x | build-nagios | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build-nagios b/build-nagios index 27e542c..2de7513 100755 --- a/build-nagios +++ b/build-nagios @@ -124,9 +124,11 @@ config['hostgroups'].each_pair{ |name, hg| 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 #{ hg['contact_groups'] }" f.puts " members "+hg['members'].join(",") + hg.each_pair{ |key, value| + next if %w(members).include? key + f.puts " #{key} #{value}" + } f.puts "}" } |