X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=config%2Fbuild-nagios;h=7a80f0a017ccb8a5a0616e110e6685288d44c29a;hb=05ddda1722373b0757eea7618f2ff4afd12e5cd5;hp=2729e7543dc5faf09633e5bb2bbd32581b74e04c;hpb=a094e6053e02ebcfc70ff580fc6b1c769f7e9fff;p=mirror%2Fdsa-nagios.git diff --git a/config/build-nagios b/config/build-nagios index 2729e75..7a80f0a 100755 --- a/config/build-nagios +++ b/config/build-nagios @@ -131,9 +131,7 @@ $nrpe = Nrpe.new() def print_block(fd, kind, hash, exclude_keys) fd.puts "define #{kind} {" hash.keys.sort.each{ |key| - next if key == '_extinfo' - next if key == '_hostgroups' - next if key == '_memberlist' + next if key[0,1] == '_' next if exclude_keys.include? key fd.puts " #{key} #{hash[key]}" }