diff options
Diffstat (limited to 'net-mgmt/nagios-geom/files/patch-add-perfdata')
-rw-r--r-- | net-mgmt/nagios-geom/files/patch-add-perfdata | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-mgmt/nagios-geom/files/patch-add-perfdata b/net-mgmt/nagios-geom/files/patch-add-perfdata new file mode 100644 index 000000000000..26897a9016a2 --- /dev/null +++ b/net-mgmt/nagios-geom/files/patch-add-perfdata @@ -0,0 +1,14 @@ +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}); |