packages: nagios-plugin-check_raid/check_raid - unify gdth message
glen
glen at pld-linux.org
Thu Sep 10 11:34:58 CEST 2009
Author: glen Date: Thu Sep 10 09:34:58 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- unify gdth message
---- Files affected:
packages/nagios-plugin-check_raid:
check_raid (1.28 -> 1.29)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.28 packages/nagios-plugin-check_raid/check_raid:1.29
--- packages/nagios-plugin-check_raid/check_raid:1.28 Thu Sep 10 11:32:07 2009
+++ packages/nagios-plugin-check_raid/check_raid Thu Sep 10 11:34:53 2009
@@ -351,12 +351,10 @@
chomp;
last if (/Array Drives:/); # Stop after the Logical Drive block
if (my ($num, $status) = m/^\s+Number:\s+(\d+)\s+Status:\s+(\S+)$/) {
- if ("ok" ne $status) {
+ if ($status ne "ok") {
$status = $ERRORS{CRITICAL} unless $status;
- $message .= "gdth:$controller:$num($status) ";
- } else {
- $message .= "gdth:$controller:$num($status) ";
}
+ $message .= "gdth:$controller,$num:$status ";
}
}
close($fh);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/check_raid?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list