diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-23 12:01:21 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-23 12:01:21 +0000 |
commit | 61cd9f525aa236250b6768e6db2977c836c57d96 (patch) | |
tree | 107e0b4fcd7bb3c42fcc1b7c51c4e7d83c726f38 /NPTest.pm | |
parent | 3ebbe5c55bfbe0316652abc5e8466e78bc89eb7a (diff) | |
download | monitoring-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.pm | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -596,6 +596,13 @@ sub output { | |||
596 | } | 596 | } |
597 | } | 597 | } |
598 | 598 | ||
599 | sub perf_output { | ||
600 | my $self = shift; | ||
601 | $_ = $self->{output}; | ||
602 | s/[^|]*\|//; | ||
603 | return $_; | ||
604 | } | ||
605 | |||
599 | sub testCmd { | 606 | sub 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"; |