summaryrefslogtreecommitdiffstats
path: root/NPTest.pm
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-03-23 12:01:21 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-03-23 12:01:21 (GMT)
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 f1ff801..106e8f1 100644
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -596,6 +596,13 @@ sub output {
596 } 596 }
597} 597}
598 598
599sub perf_output {
600 my $self = shift;
601 $_ = $self->{output};
602 s/[^|]*\|//;
603 return $_;
604}
605
599sub testCmd { 606sub testCmd {
600 my $class = shift; 607 my $class = shift;
601 my $command = shift or die "No command passed to testCmd"; 608 my $command = shift or die "No command passed to testCmd";