[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 03/13: check_raid: Updating to 3.2.2
Jan Wagner
waja at moszumanska.debian.org
Fri Mar 6 09:57:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.
commit a2c74a4a95627ff1251c7341af6cad8e3f3ccab9
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Mar 4 16:22:09 2015 +0100
check_raid: Updating to 3.2.2
---
check_raid/check_raid | 20 +++++++++++++-------
check_raid/control | 2 +-
debian/control | 2 +-
3 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/check_raid/check_raid b/check_raid/check_raid
index 5989ff5..dd3d9b4 100644
--- a/check_raid/check_raid
+++ b/check_raid/check_raid
@@ -1179,7 +1179,7 @@ sub check {
my %dstatus;
foreach my $dev (@{$c->{physical}}) {
- if ($dev->{state} eq 'Online' || $dev->{state} eq 'Hotspare' || $dev->{state} eq 'Unconfigured(good)') {
+ if ($dev->{state} eq 'Online' || $dev->{state} eq 'Hotspare' || $dev->{state} eq 'Unconfigured(good)' || $dev->{state} eq 'JBOD' ) {
push(@{$dstatus{$dev->{state}}}, sprintf "%02d", $dev->{dev});
} else {
@@ -2269,10 +2269,12 @@ sub check {
}
# process each controller
- while (my($cid, $c) = each %$c) {
+ for my $cid (sort keys %$c) {
+ my $c = $c->{$cid};
my @cstatus;
- while (my($uid, $u) = each %{$c->{unitstatus}}) {
+ for my $uid (sort keys %{$c->{unitstatus}}) {
+ my $u = $c->{unitstatus}->{$uid};
my $s = $u->{status};
if ($s =~ /INITIALIZING|MIGRATING/) {
@@ -2280,11 +2282,11 @@ sub check {
$s .= " $u->{vim_percent}";
} elsif ($s eq 'VERIFYING') {
- $this->resync;
+ $this->check_status;
$s .= " $u->{vim_percent}";
} elsif ($s eq 'REBUILDING') {
- $this->warning;
+ $this->resync;
$s .= " $u->{rebuild_percent}";
} elsif ($s eq 'DEGRADED') {
@@ -2310,7 +2312,11 @@ sub check {
foreach my $p (sort { $a cmp $b } keys %{$c->{drivestatus}}) {
my $d = $c->{drivestatus}->{$p};
my $ds = $d->{status};
- $this->critical unless $ds eq 'OK';
+ if ($ds eq 'VERIFYING') {
+ $this->check_status;
+ } elsif ($ds ne 'OK') {
+ $this->critical;
+ }
if ($d->{unit} eq '-') {
$ds = 'SPARE';
@@ -4402,7 +4408,7 @@ use Getopt::Long;
my ($opt_V, $opt_d, $opt_h, $opt_W, $opt_S, $opt_p, $opt_l);
my (%ERRORS) = (OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3);
-my ($VERSION) = "3.2.1";
+my ($VERSION) = "3.2.2";
my ($message, $status, $perfdata, $longoutput);
my ($noraid_state) = $ERRORS{UNKNOWN};
diff --git a/check_raid/control b/check_raid/control
index 4ab9baa..fe6f5e7 100644
--- a/check_raid/control
+++ b/check_raid/control
@@ -1,7 +1,7 @@
Homepage: https://github.com/glensc/nagios-plugin-check_raid
Watch: https://github.com/glensc/nagios-plugin-check_raid "/glensc/nagios-plugin-check_raid/tree/([0-9.]+)"
Suggests: cciss-vol-status (>= 1.10), mpt-status
-Version: 3.2.1+47b33d53db
+Version: 3.2.2
Uploaders: Bernd Zeimetz <bzed at debian.org>
Description: plugin to check sw/hw RAID status
The plugin looks for any known types of RAID configurations,
diff --git a/debian/control b/debian/control
index 1232479..4feeb70 100644
--- a/debian/control
+++ b/debian/control
@@ -107,7 +107,7 @@ Description: Plugins for nagios compatible monitoring systems
* check_printer: plugin to check printer supply levels using SNMP
It outputs performance data for all supplies
found, for example toner and drum.
- * check_raid (3.2.1+47b33d53db): plugin to check sw/hw RAID status
+ * check_raid (3.2.2): plugin to check sw/hw RAID status
The plugin looks for any known types of RAID configurations,
and checks them all.
.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git
More information about the Pkg-nagios-changes
mailing list