Fix mdadm when we have spares

Spares should be counted as active devices
tags/zabbix-agent-addons-0.2.120-1
Daniel Berteaud 5 years ago
parent 8a22c0bccc
commit b8f7e1ae6d
  1. 1
      zabbix_scripts/check_raid_mdadm

@ -67,6 +67,7 @@ while (<FILE>) {
}
elsif ($2 eq "(S)") {
$spare_devs{$dev} .= "$1,";
$devs_up++;
}
else {
$active_devs{$dev} .= "$1,";

Loading…
Cancel
Save