[Nagiosplug-checkins] nagiosplug NPTest.pm,1.9,1.10

Ton Voon tonvoon at users.sourceforge.net
Thu Mar 23 09:17:06 CET 2006


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18117

Modified Files:
	NPTest.pm 
Log Message:
check_disk now errors if a specified directory does not exist (cf df /foo)


Index: NPTest.pm
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/NPTest.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- NPTest.pm	23 Mar 2006 12:01:18 -0000	1.9
+++ NPTest.pm	23 Mar 2006 17:16:38 -0000	1.10
@@ -599,8 +599,8 @@
 sub perf_output {
 	my $self = shift;
 	$_ = $self->{output};
-	s/[^|]*\|//;
-	return $_;
+	/\|(.*)$/;
+	return $1 || "";
 }
 
 sub testCmd {





More information about the Commits mailing list