diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-01-12 14:13:18 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-01-12 14:13:18 +0000 |
commit | c4beab1dff54ab194c2435ed73b1020fbfcd9077 (patch) | |
tree | ebaecb96277c98f647c9039e818daf5c53a96319 | |
parent | 88f70aeda0ca97eec9c3bf8c6b0716614abc1535 (diff) |
Ingore second port of dual port disks
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@377 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | nagios-check-hpacucli | 6 |
1 files changed, 5 insertions, 1 deletions
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; |