From: Tom Hughes Date: Sun, 24 Jun 2018 10:43:47 +0000 (+0100) Subject: Ignore the "command failed" bit in the smartctl exit code X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/6757136e52459277f2a57c38d6fbe9bd40916429?hp=dd35c593b7471ccbe5298f8e720d7b9b4ee6a967 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. --- 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