178eb5bf76
- Add MASTER_SITE_LOCAL as a mirror - Add patches to correct GEOM status check PR: ports/129733 Submitted by: andriy.tovstik@gmail.com Reviewed by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (maintainer)
14 lines
438 B
Text
14 lines
438 B
Text
diff --git a/check_geom b/check_geom
|
|
index e7c776c..d8c1402 100755
|
|
--- a/check_geom
|
|
+++ b/check_geom
|
|
@@ -127,6 +127,8 @@ if ($state ne "OK") {
|
|
}
|
|
|
|
#goats away!
|
|
-$msg = sprintf "%s/%s %s { %s }\n", $class, $volume, $status, $compo;
|
|
+my $perfdata = sprintf "%s=%d;;;0;", "geom_" . $class, $found;
|
|
+$msg = sprintf "%s/%s %s { %s }|%s\n", $class, $volume, $status, $compo,
|
|
+ $perfdata;
|
|
print $state, " ", $msg;
|
|
exit ($ERRORS{$state});
|