[Nagiosplug-devel] patch for check_http.t

Mathew Ericson mathew_ericson at agilent.com
Thu May 15 17:36:02 CEST 2003


Dear nagiosdevel,

Here is a patch to all check_http.t to succeed againt iPlanet Web Server 
output. How can I get this reviewed/checked-in?

--- check_http.t.orig   2003-05-16 10:47:05.000000000 +1000
+++ check_http.t        2003-05-16 10:52:03.000000000 +1000
@@ -13,7 +13,7 @@

  $str = `./check_http $Cache::hostname -wt 300 -ct 600`;
  $t += ok $?>>8,0;
-$t += ok $str, '/HTTP\/1.1 [0-9]{3} (OK|Found) - [0-9]+ second response 
time/';
+$t += ok $str, 
'/(HTTP\s[o|O][k|K]\s)?\s?HTTP\/1.1\s[0-9]{3}\s(OK|Found)\s-\s+([0-9]+|[0-9]+\.[0-9]+)\ssecond 
response time/';

  $str = `./check_http $Cache::nullhost -wt 1 -ct 2`;
  $t += ok $?>>8,2;


thanks
mathew
-- 
Mathew Ericson
CC/Unix System Administrator
Agilent Technologies, Inc.
613 9210 5956 Tel








More information about the Devel mailing list