[project @ peter@palfrader.org-20080402232157-naqh06hj8lhpff9s]
[mirror/dsa-nagios.git] / build-nagios
index a614871..67f7e15 100755 (executable)
@@ -1,13 +1,12 @@
 #!/usr/bin/ruby
 
-# Copyright (c) 2004, 2005, 2006, 2007 Peter Palfrader <peter@palfrader.org>
+# Copyright (c) 2004, 2005, 2006, 2007, 2008 Peter Palfrader <peter@palfrader.org>
 
 require "yaml"
 
-ORG="relativity"
-SHORTORG="rela"
-CONTACTGROUP="weaselgroup"
-GENERATED_PREFIX="/etc/NOREPLY/generated/nagios/"
+ORG="dsa"
+SHORTORG="dsa"
+GENERATED_PREFIX="./generated/"
 
 nagios_filename = {};
 %w(hosts hostgroups services dependencies hostextinfo serviceextinfo).each{
@@ -317,7 +316,6 @@ config['hostgroups'].each_pair{ |name, hg|
 
        set_complain_if_set hg, 'hostgroup_name', name                       , 'Hostgroup', name
        set_complain_if_set hg, 'members'       , hg['_memberlist'].join(","), 'Hostgroup', name
-       set_if_unset        hg, 'contact_groups', CONTACTGROUP
 
        print_block files['hostgroups'], 'hostgroup', hg, %w()
 }