On Mon, 2 Jun 2003, Erik Inge Bolsų wrote: > A small patch to show more detail in regexp failures, so that you can tell > at a glance whether it is a bad error (a sudden 403 forbidden) or a > usually benign error (a developer updated a site without telling you, so > the content no longer matches completely) > > Applies to 0.99.1 and probably to .2.
Damn, sent the wrong patch - with a typo that causes a compile error. I see it's been included in the 0.99.3-31 snapshot. Jim, please apply this one on top of the previous patch. <mon.d/mon-0.99.3-31/mon.d$ diff -u phttp.monitor phttp.monitor.patched --- phttp.monitor Mon Jun 2 17:54:20 2003 +++ phttp.monitor.patched Wed Jun 4 15:57:31 2003 @@ -697,7 +697,7 @@ $pacerace{$id}++; }; }else{ - $client{$id}{"problem"} .= "couldn't match the regexp \"$regexp\"\n"; + $client{$id}{"problem"} .= "couldn't match the regexp \"$regex\"\n"; $client{$id}{"problem"} .= "in the response below:\n\n$rbuf\n"; $badrace{$id}++; } -- Erik I. Bolsų, Triangel Software AS | Skybert AS Tlf: 712 41 694 Mobil: 915 79 512 _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon