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. [EMAIL PROTECTED]:~/arbeidskatalog/mon/mon.d$ cvs diff -u -r1.1 -r1.2 phttp.monitor Index: phttp.monitor =================================================================== RCS file: /home/erik/.cvs/mon/mon.d/phttp.monitor,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- phttp.monitor 2001/07/26 12:07:32 1.1 +++ phttp.monitor 2003/05/27 09:47:08 1.2 @@ -698,6 +698,8 @@ }; }else{ $client{$id}{"problem"} .= "- did not match the pattern expected\n"; + $client{$id}{"problem"} .= "couldn't match the regexp \"$regexp\"\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