freebsd-ports/net-mgmt/nagios-geom/files/patch-add-perfdata
Wesley Shields 178eb5bf76 - Update to 1.3
- 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)
2008-12-23 20:14:48 +00:00

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});