From e3cfeb337e78da4392097b8334cb3bd7f49a4aa0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 18 Apr 2009 01:42:00 +0200 Subject: [PATCH] dsa-check-hpacucli: And SAS can be E too --- dsa-nagios-checks/checks/dsa-check-hpacucli | 2 +- dsa-nagios-checks/debian/changelog | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli b/dsa-nagios-checks/checks/dsa-check-hpacucli index db5f013..06c6fad 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli @@ -124,7 +124,7 @@ for my $slot (sort @controllers) { my $type; if ($drive =~ /^[0-9]+:[0-9]+$/) { # scsi drives $type = 'SCSI'; - } elsif ($drive =~ /^[0-9]+I:[0-9]+:[0-9]+$/) { # SAS + } elsif ($drive =~ /^[0-9]+[EI]:[0-9]+:[0-9]+$/) { # SAS $type = 'SAS'; } else { # I'm not going to run pass arguments of unknown form to the shell.. diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 72be4cb..39e71c3 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -4,8 +4,9 @@ dsa-nagios-checks (70) XXstable; urgency=low * Only run weak keys check if there is no prior weak key status. * dsa-check-hpacucli: Slots need not be all numeric. * dsa-check-hpacucli: Spares can be active. + * dsa-check-hpacucli: And SAS can be E too. - -- Peter Palfrader Sat, 18 Apr 2009 01:31:05 +0200 + -- Peter Palfrader Sat, 18 Apr 2009 01:41:32 +0200 dsa-nagios-checks (69) unstable; urgency=low -- 2.20.1