X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=dsa-nagios-checks%2Fchecks%2Fdsa-check-hpacucli;h=ea8b01261af960f84bea9e19afb2c09cf6daf388;hb=fdfc153b6e7cd87a2d3815d0a06c53d7dbec9f49;hp=fcb4a342977a99e4b3580e85bb01d41e6b9dc24c;hpb=a2aee0bd22a3c33300eea10d73c810102a9ebac6;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli b/dsa-nagios-checks/checks/dsa-check-hpacucli index fcb4a34..ea8b012 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli @@ -5,7 +5,7 @@ # # does _not_ check raid status. use arrayprobe for that. -# Copyright (c) 2008,2009 Peter Palfrader +# Copyright (c) 2008,2009,2010,2011 Peter Palfrader # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -197,11 +197,11 @@ for my $slot (sort @controllers) { next; } - if (exists $params->{'ignore-transfer-speed'}) { + if ($params->{'ignore-transfer-speed'}) { if (grep { $drive eq $_ } @{$params->{'ignore-transfer-speed'}}) { push @{$status{'ignored transfer speed'}}, $drive."(".$value{$key}.")"; + next; }; - next; }; if (!defined $value{$key}) { record('WARNING');