projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
alwyn, ancina on wheezy
[mirror/dsa-nagios.git]
/
config
/
build-nagios
diff --git
a/config/build-nagios
b/config/build-nagios
index
2729e75
..
7a80f0a
100755
(executable)
--- 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|
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]}"
}
next if exclude_keys.include? key
fd.puts " #{key} #{hash[key]}"
}