]> git.openstreetmap.org Git - chef.git/commitdiff
Ignore the "command failed" bit in the smartctl exit code
authorTom Hughes <tom@compton.nu>
Sun, 24 Jun 2018 10:43:47 +0000 (11:43 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 24 Jun 2018 10:43:47 +0000 (11:43 +0100)
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

index e1a98501a2b49c3a4f2393fceffc8c97f8889fdb..1908f8e937d182357f05ce9427147a6f0e9356d1 100644 (file)
@@ -6,3 +6,4 @@ env.smartargs -H -d <%= @disk[:smart] %>
 <% else -%>
 env.smartargs -H
 <% end -%>
+env.ignoreexit 4