X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..300a3f040c1994f90675005aebc2fcb1b719ac74:/cookbooks/munin/recipes/plugins.rb?ds=sidebyside
diff --git a/cookbooks/munin/recipes/plugins.rb b/cookbooks/munin/recipes/plugins.rb
index 7a2ebd60d..dde0a55dd 100644
--- a/cookbooks/munin/recipes/plugins.rb
+++ b/cookbooks/munin/recipes/plugins.rb
@@ -26,7 +26,7 @@ remote_directory "/usr/local/share/munin/plugins" do
mode "755"
files_owner "root"
files_group "root"
- files_mode 0o755
+ files_mode "755"
purge true
end
@@ -37,7 +37,7 @@ remote_directory "/etc/munin/plugin-conf.d" do
mode "750"
files_owner "root"
files_group "root"
- files_mode 0o644
+ files_mode "644"
purge false
notifies :restart, "service[munin-node]"
end
@@ -117,18 +117,6 @@ else
end
end
-munin_plugin "hpasmcli_temp" do
- action :delete
-end
-
-munin_plugin "hpasmcli_fans" do
- action :delete
-end
-
-munin_plugin "http_loadtime" do
- action :delete
-end
-
node[:network][:interfaces].each do |ifname, ifattr|
if ifattr[:flags]&.include?("UP") && !ifattr[:flags].include?("LOOPBACK")
if node[:hardware] &&
@@ -205,33 +193,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"