From 3ce5d7d46e9154e2854588d48d558cc61098fdcf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 6 Mar 2022 12:27:27 +0000 Subject: [PATCH] Drop munin NFS plugins --- cookbooks/munin/recipes/plugins.rb | 31 +++++++++--------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/cookbooks/munin/recipes/plugins.rb b/cookbooks/munin/recipes/plugins.rb index 7b8eb1a47..f9d22c9eb 100644 --- a/cookbooks/munin/recipes/plugins.rb +++ b/cookbooks/munin/recipes/plugins.rb @@ -205,33 +205,20 @@ munin_plugin "load" munin_plugin "memory" munin_plugin "netstat" -if node[:kernel][:modules].include?("nfsv3") - munin_plugin "nfs_client" -else - munin_plugin "nfs_client" do - action :delete - end +munin_plugin "nfs_client" do + action :delete end -if node[:kernel][:modules].include?("nfsv4") - munin_plugin "nfs4_client" -else - munin_plugin "nfs4_client" do - action :delete - end +munin_plugin "nfs4_client" do + action :delete end -if node[:kernel][:modules].include?("nfsd") - munin_plugin "nfsd" - munin_plugin "nfsd4" -else - munin_plugin "nfsd" do - action :delete - end +munin_plugin "nfsd" do + action :delete +end - munin_plugin "nfsd4" do - action :delete - end +munin_plugin "nfsd4" do + action :delete end munin_plugin "open_files" -- 2.39.5