X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=config%2Fbuild-nagios;h=1eb3977d4adb88dec9300b3b5073538451b699c0;hb=801902244d516a112d2c4d357d73cb94dcceaefc;hp=acbf3398ab8dedc7ac9e37e2d7e220aae6cbebd4;hpb=829d64b47c297462e237f218f7c05d0401f0e25e;p=mirror%2Fdsa-nagios.git diff --git a/config/build-nagios b/config/build-nagios index acbf339..1eb3977 100755 --- a/config/build-nagios +++ b/config/build-nagios @@ -127,11 +127,13 @@ $nrpe = Nrpe.new() # host/service/etc definitions # # It skips over such keys as are listed in exclude_keys -# and also skips private keys (those starting with an underscre) +# and also skips private keys (those starting with an underscore) def print_block(fd, kind, hash, exclude_keys) fd.puts "define #{kind} {" hash.each_pair{ |key, value| - next if key[0,1] == '_' + next if key == '_extinfo' + next if key == '_hostgroups' + next if key == '_memberlist' next if exclude_keys.include? key fd.puts " #{key} #{value}" }