From f7fbb241bda54acc8179bef7d05e93a58b81093c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 16 Feb 2019 12:45:46 +0000 Subject: [PATCH] Monitor all interfaces that are up and aren't the loopback interface --- cookbooks/munin/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 677a62b32..df7bfbe08 100644 --- 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/ -- 2.43.2