[Nagiosplug-devel] patch for check_ftp.t
Mathew Ericson
mathew_ericson at agilent.com
Thu May 15 17:28:02 CEST 2003
Dear nagiosplug-devel,
Here is a patch for check_ftp.t to allow it to work with alternate
output of FTP servers (namely the HP-UX default). How do I get this
reviewed and checked-in?
--- check_ftp.t.orig 2003-05-16 10:32:05.000000000 +1000
+++ check_ftp.t 2003-05-16 10:43:47.000000000 +1000
@@ -16,7 +16,7 @@
$str = `$cmd`;
$t += ok $?>>8,0;
print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/FTP ok - [0-9]+ second response time/';
+$t += ok $str, '/FTP\s[o|O][K|k]\s-\s+([0-9]+|[0-9]+\.[0-9]+) second
response time/';
#$cmd = "./check_ftp $Cache::noserver -wt 0 -ct 0";
#$str = `$cmd`;
thanks
mathew
--
Mathew Ericson
CC/Unix System Administrator
Agilent Technologies, Inc.
613 9210 5956 Tel
More information about the Devel
mailing list