Only skip RAID volumes checks when in HBA mode, not physical disks checks

tags/zabbix-agent-addons-0.2.108-1
Daniel Berteaud 5 years ago
parent a38b7ab4b2
commit eb817e2f7b
  1. 7
      zabbix_scripts/check_raid_megaraid_sudo

@ -139,11 +139,9 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) {
}
}
close CFGDSPLY;
if ( $hba && $failgrouplist ) {
# Controler is in HBA mode, skip it
next ADAPTER;
}
# When controller is in HBA/JBOD mode, skip RAID volume checks
unless ($hba && $failgrouplist) {
LDISK: for ( my $ld = 0; $ld < $ldnum; $ld++ ) {
# Get info on this particular logical drive
open (LDINFO, "$megacli -LdInfo -L$ld -a$adp -NoLog |")
@ -179,6 +177,7 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) {
} #LDISK
close LDINFO;
}
# Get info on physical disks for this adapter
open (PDLIST, "$megacli -PdList -a$adp -NoLog |")

Loading…
Cancel
Save