projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a4c34
)
Monitor all interfaces that are up and aren't the loopback interface
author
Tom Hughes
<tom@compton.nu>
Sat, 16 Feb 2019 12:45:46 +0000
(12:45 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 16 Feb 2019 12:45:46 +0000
(12:45 +0000)
cookbooks/munin/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/munin/recipes/default.rb
b/cookbooks/munin/recipes/default.rb
index 677a62b323f7e914c46817013bca0d98d0ced190..df7bfbe08df52e67aacd622f97f791c4e3f43616 100644
(file)
--- a/
cookbooks/munin/recipes/default.rb
+++ b/
cookbooks/munin/recipes/default.rb
@@
-160,7
+160,7
@@
munin_plugin "http_loadtime" do
end
node[:network][:interfaces].each do |ifname, ifattr|
- if ifattr[:
encapsulation] == "Ethernet" && ifattr[:state] == "up"
+ if ifattr[:
flags].include?("UP") && !ifattr[:flags].include?("LOOPBACK")
if node[:hardware] &&
node[:hardware][:network] &&
node[:hardware][:network][ifname][:device] =~ /^virtio/