From 7470eb52bfa0d9bb890c29558b91c445860a2969 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 26 Jul 2014 00:02:39 +0100 Subject: [PATCH 1/1] Don't include smart error logs in munin checks --- cookbooks/munin/recipes/default.rb | 2 ++ cookbooks/munin/templates/default/smart.erb | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 cookbooks/munin/templates/default/smart.erb diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 03bcee613..847425e53 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -325,6 +325,8 @@ node[:block_device].each do |name,attributes| if attributes[:vendor] == "ATA" munin_plugin "smart_#{name}" do target "smart_" + conf "smart.erb" + conf_variables :disk => name end else munin_plugin "smart_#{name}" do diff --git a/cookbooks/munin/templates/default/smart.erb b/cookbooks/munin/templates/default/smart.erb new file mode 100644 index 000000000..bcb813a21 --- /dev/null +++ b/cookbooks/munin/templates/default/smart.erb @@ -0,0 +1,4 @@ +# DO NOT EDIT - This file is being maintained by Chef + +[smart_<%= @disk %>] +env.smartargs -H -- 2.43.2