Ed Ravin wrote:

>I just upgraded my mon installation to the Latest and Greatest, and I saw
>this error a few times in the downtime log:
>
>  Use of uninitialized value at /usr/local/mon/mon.d/phttp.monitor line 685.
>
>The source code in question in phttp.monitor:
>
>    679         foreach my $id (sort { $a <=> $b } keys(%goodrace)) {
>    680                 my $rbuf = $client{$id}{'rbuf'};
>    681                 my $host = $client{$id}{'host'};
>    682                 my $timeresponse = $client{$id}{'end'} - $client{$id}{'b
>egin'};
>    683                 $debugAnalyse and print "$host response in $timeresponse
> s :\n$rbuf";
>    684
>    685                 if ($rbuf =~ m~$regex~) {
>    686
>
>I think this at least fixes the symptom of the problem:
>
>    680                 my $rbuf= $client{$id}{'rbuf'} || undef;
>
>But I'm not sure why it happens in the first place - perhaps the script
>sometimes thinks it is getting a zero-length response from the web server?
>
I would think the problem is $regex rather than $rbuf.  WHere is $regex 
set?  (Sorry I don't have the code here.)

Andreas

-- 
Prof. Dr. Andreas J. Guelzow                    
Assoc. Prof of Mathematics
Concordia University College of Alberta
http://www.math.concordia.ab.ca/aguelzow



Reply via email to