From bd9a612f6c18fcc9b17e5abf58def18b19521d82 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 12 Oct 2006 13:58:43 +0000 Subject: 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 --- NPTest.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NPTest.pm') 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"; -- cgit v1.2.3