[Nagiosplug-devel] patch for check_tcp.t
Mathew Ericson
mathew_ericson at agilent.com
Thu May 15 19:16:05 CEST 2003
Dear nagiosdevel,
Here is a patch to fix some output parsing errors in check_tcp.t. How do
I get these verified and checked-in?
--- check_tcp.t.orig 2003-05-16 12:31:10.000000000 +1000
+++ check_tcp.t 2003-05-16 12:31:35.000000000 +1000
@@ -16,7 +16,7 @@
$str = `$cmd`;
$t += ok $?>>8,0;
print "$cmd\n" if ($?);
-$t += ok $str, '/^TCP OK - [0-9]+ second response time on port 80/';
+$t += ok $str, '/^TCP OK\s-\s+[0-9]?\.?[0-9]+ second response time on
port 80/';
$cmd = "./check_tcp $Cache::nullhost -p 81 -wt 0 -ct 0 -to 1";
$str = `$cmd`;
thanks
mathew
--
Mathew Ericson
CC/Unix System Administrator
Agilent Technologies, Inc.
613 9210 5956 Tel
More information about the Devel
mailing list