aboutsummaryrefslogtreecommitdiff
path: root/NPTest.pm
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 17:16:38 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 17:16:38 +0000
commitada5f2fe02f4171e82ff7adc39d5f46dda40e4b1 (patch)
tree9fcc284629332af23c36449cd430c16bbacfb260 /NPTest.pm
parentf82e0dfa81f134c5e064730fac7690a7aa435f59 (diff)
downloadmonitoring-plugins-ada5f2fe02f4171e82ff7adc39d5f46dda40e4b1.tar.gz
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
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm4
1 files changed, 2 insertions, 2 deletions
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 {