aboutsummaryrefslogtreecommitdiff
path: root/NPTest.pm
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 12:01:21 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 12:01:21 +0000
commit61cd9f525aa236250b6768e6db2977c836c57d96 (patch)
tree107e0b4fcd7bb3c42fcc1b7c51c4e7d83c726f38 /NPTest.pm
parent3ebbe5c55bfbe0316652abc5e8466e78bc89eb7a (diff)
downloadmonitoring-plugins-61cd9f525aa236250b6768e6db2977c836c57d96.tar.gz
Incorrect output when checking non-existent disk (John Rouillard - 1326050)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 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 f1ff801e..106e8f12 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -596,6 +596,13 @@ sub output {
}
}
+sub perf_output {
+ my $self = shift;
+ $_ = $self->{output};
+ s/[^|]*\|//;
+ return $_;
+}
+
sub testCmd {
my $class = shift;
my $command = shift or die "No command passed to testCmd";