From ada5f2fe02f4171e82ff7adc39d5f46dda40e4b1 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 23 Mar 2006 17:16:38 +0000 Subject: check_disk now errors if a specified directory does not exist (cf df /foo) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1351 f882894a-f735-0410-b71e-b25c423dba1c --- NPTest.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NPTest.pm') diff --git a/NPTest.pm b/NPTest.pm index 106e8f12..f3fb896a 100644 --- a/NPTest.pm +++ b/NPTest.pm @@ -599,8 +599,8 @@ sub output { sub perf_output { my $self = shift; $_ = $self->{output}; - s/[^|]*\|//; - return $_; + /\|(.*)$/; + return $1 || ""; } sub testCmd { -- cgit v1.2.3