From 0f070772483480ece384bf3f3127b6c562298f5a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Jul 2014 10:18:09 +0100 Subject: [PATCH] Manage ipmi_power munin plugin on 14.04 machines --- cookbooks/munin/recipes/default.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 0bcccbb93..316f738f5 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -205,6 +205,11 @@ if Dir.glob("/dev/ipmi*").empty? munin_plugin "ipmi_temp" do action :delete end + + munin_plugin "ipmi_power" do + action :delete + only_if { node[:lsb][:release].to_f >= 14.04 } + end else munin_plugin "ipmi_fans" do target "ipmi_" @@ -213,6 +218,11 @@ else munin_plugin "ipmi_temp" do target "ipmi_" end + + munin_plugin "ipmi_power" do + target "ipmi_" + only_if { node[:lsb][:release].to_f >= 14.04 } + end end munin_plugin "irqstats" -- 2.39.5