X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=build-nagios;h=6c80392377aade7c8af68b3ebd0d0426d9395e4c;hb=dd0dce9c8301550d6d0f6e93f24fb3d0625dee4d;hp=a6148714d9fa7607f5e03fd5d7d29ad90854b818;hpb=e3a4b38b12c107058df78ff0b2c55543cd4a3820;p=mirror%2Fdsa-nagios.git diff --git a/build-nagios b/build-nagios index a614871..6c80392 100755 --- a/build-nagios +++ b/build-nagios @@ -1,13 +1,13 @@ #!/usr/bin/ruby -# Copyright (c) 2004, 2005, 2006, 2007 Peter Palfrader +# Copyright (c) 2004, 2005, 2006, 2007, 2008 Peter Palfrader require "yaml" -ORG="relativity" -SHORTORG="rela" -CONTACTGROUP="weaselgroup" -GENERATED_PREFIX="/etc/NOREPLY/generated/nagios/" +ORG="dsa" +SHORTORG="do" +CONTACTGROUP="debianadmin" +GENERATED_PREFIX="./generated/" nagios_filename = {}; %w(hosts hostgroups services dependencies hostextinfo serviceextinfo).each{ @@ -317,7 +317,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() }