require "yaml"
-ORG="debianorg"
-SHORTORG="do"
-CONTACTGROUP="debianadmin"
-GENERATED_PREFIX="/etc/NOREPLY/generated/nagios/"
+ORG="dsa"
+SHORTORG="dsa"
+GENERATED_PREFIX="./generated/"
nagios_filename = {};
%w(hosts hostgroups services dependencies hostextinfo serviceextinfo).each{
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()
}