aboutsummaryrefslogtreecommitdiff
path: root/NPTest.pm
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-10-12 13:58:43 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-10-12 13:58:43 +0000
commitbd9a612f6c18fcc9b17e5abf58def18b19521d82 (patch)
treec4bb4e93ccbca424b2bd7aeb2a6ad799bc3e3791 /NPTest.pm
parentcff53455ffc4d4df7214f8d671b3dca7ca26f51d (diff)
downloadmonitoring-plugins-bd9a612f6c18fcc9b17e5abf58def18b19521d82.tar.gz
Fixed output from -e in check_disk (Andreas Behal)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1490 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/NPTest.pm b/NPTest.pm
index 1372d142..432f3968 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -603,6 +603,13 @@ sub perf_output {
return $1 || "";
}
+sub only_output {
+ my $self = shift;
+ $_ = $self->{output};
+ /(.*?)\|/;
+ return $1 || "";
+}
+
sub testCmd {
my $class = shift;
my $command = shift or die "No command passed to testCmd";