[csw-devel] SF.net SVN: opencsw:[654] mirror/check-zpool
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Mon Feb 18 11:11:33 CET 2013
Revision: 654
http://opencsw.svn.sourceforge.net/opencsw/?rev=654&view=rev
Author: dmichelsen
Date: 2013-02-18 10:11:33 +0000 (Mon, 18 Feb 2013)
Log Message:
-----------
check-zpool: Warn if scrub was requested but never run
Modified Paths:
--------------
mirror/check-zpool
Modified: mirror/check-zpool
===================================================================
--- mirror/check-zpool 2013-02-18 10:01:23 UTC (rev 653)
+++ mirror/check-zpool 2013-02-18 10:11:33 UTC (rev 654)
@@ -191,6 +191,12 @@
} else {
push @status, "pool '$poolname' was scrubbed $no_scrub_since ago";
}
+ } else {
+ if( $sa ) {
+ $np->nagios_exit( WARNING, "Scrub for the pool '$poolname' was never run"
+ . ' but must not be older than ' . $sat
+ );
+ }
}
# 3. warn if there were correctable errors in the pool
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list