From c4beab1dff54ab194c2435ed73b1020fbfcd9077 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 12 Jan 2009 14:13:18 +0000 Subject: Ingore second port of dual port disks git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@377 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-hpacucli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nagios-check-hpacucli b/nagios-check-hpacucli index ce0910e..a347388 100755 --- a/nagios-check-hpacucli +++ b/nagios-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; -- cgit v1.2.3