From 1b90c9d297dab99720ece0a311e602cb816d236f Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 28 Jul 2011 09:23:52 +0100 Subject: [PATCH] Make it possible to use custom variables, a prerequisite to doing v6 checks Signed-off-by: Stephen Gran --- config/build-nagios | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}" } -- 2.20.1