X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-hpacucli-enclosure;h=9e8a8bc1ed6805107a48897a3297c1a015993340;hb=8de7935ae25817cce322d2e45e3fcafa78f3a1f4;hp=0be0b89076d1fe8a746ed4f2f5ec77d763d6d9ac;hpb=fa7d10d6ee9b5011a2f43feb099564922580323c;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli-enclosure b/dsa-nagios-checks/checks/dsa-check-hpacucli-enclosure index 0be0b89..9e8a8bc 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli-enclosure +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli-enclosure @@ -109,6 +109,16 @@ for (@$status) { if ($status ne 'OK') { record('WARNING'); }; + } elsif (m/^(Error): (The specified device does not have a Storage Enclosure identified by.*)/) { + my $status = $1; + my $detail = "$enc: Unidentified Storage Enclosure"; + push @{$status{$status}}, $detail; + record('CRITICAL'); + } elsif (m/^(Error): (.*)/) { + my $status = $1; + my $detail = $2; + push @{$status{$status}}, $detail; + record('CRITICAL'); } };