From d076489fed1320fb5387a652aee31fc9f220ae33 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 17 Feb 2009 22:36:08 +0100 Subject: [PATCH] [project @ peter@palfrader.org-20090217213608-agsetu09xvu89a2v] Support dual port disks, to some extend --- dsa-nagios-nrpe-config/dsa-check-hpacucli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-nrpe-config/dsa-check-hpacucli b/dsa-nagios-nrpe-config/dsa-check-hpacucli index ce0910e..a347388 100755 --- a/dsa-nagios-nrpe-config/dsa-check-hpacucli +++ b/dsa-nagios-nrpe-config/dsa-check-hpacucli @@ -163,7 +163,11 @@ for my $slot (sort @controllers) { }; } elsif ($type eq 'SAS') { $key = 'PHY Transfer Rate'; - $expected = '3.0GBPS'; + if ($value{'PHY Count'} eq '2') { + $expected = '3.0GBPS, Unknown'; + } else { + $expected = '3.0GBPS'; + } } else { warn "Should not be here. Do not know what to do with type '$type'\n"; next; -- 2.20.1