From 6757136e52459277f2a57c38d6fbe9bd40916429 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 24 Jun 2018 11:43:47 +0100 Subject: [PATCH 1/1] Ignore the "command failed" bit in the smartctl exit code This normally means that the drive or bridge does not support returing a health check status but smartctl will still do an attribute check and report that in other bits. --- cookbooks/hardware/templates/default/munin.smart.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/hardware/templates/default/munin.smart.erb b/cookbooks/hardware/templates/default/munin.smart.erb index e1a98501a..1908f8e93 100644 --- a/cookbooks/hardware/templates/default/munin.smart.erb +++ b/cookbooks/hardware/templates/default/munin.smart.erb @@ -6,3 +6,4 @@ env.smartargs -H -d <%= @disk[:smart] %> <% else -%> env.smartargs -H <% end -%> +env.ignoreexit 4 -- 2.43.2