[mrtg] Re: RRD TOOL help required

Tobias Oetiker oetiker at ee.ethz.ch
Thu Oct 12 17:26:44 MEST 2000


Today you sent me mail regarding [mrtg] Re: RRD TOOL help required:

RB> 
RB> In article <902CE15A2579D311876D00805FC17C5202DD4867 at hht.satyam.com>,
RB> 	Janardhan at Satyam.com (Janardhan_Madabattula) writes:
RB> > 
RB> > D:\INETPUB\wwwroot\cgi-bin>PERL 14ALL.CGI
RB> > (offline mode: enter name=value pairs on standard input)
RB> > Wed Oct 11 10:11:24 2000] 14ALL.CGI: Use of uninitialized value in
RB> > tring eq at d:\jan\mrtg-2.9.1\lib\mrtg2/MRTG_lib.pm line 839.
RB> 
RB> This is from the line
RB> 
RB>       if ($error eq "yes") {
RB> 
RB> $error gets initialized to "no" and I cannot find a place where it is
RB> set to something other than "yes". Strange.
RB> 
RB> I suppose you use ActiveStace perl 5.6.0? It might behave different than
RB> stock perl under unix. I really don't know why you get this error.
RB> 

just looked through the code ... if line 839 is realy 

$error eq "yes"

then I can not see how this can be undefined ... windows con not be
the reason ....

cheers
tobi


RB> > If any body have the configured 14all.CGI script please send me.
RB> 
RB> The problem is in the file MRTG_lib.pm from mrtg so no fix for 14all.
RB> Probably the actual version of 14all fixes your problem but that's more
RB> a workaround for strange behaviour of AS perl.
RB> 
RB> Another way: You can change the line 839 of MRTG_lib.pm to look like
RB> 
RB>      if (!$error || $error ne "no") {
RB> 
RB> (if it looks like the line above). This should remove the error message.
RB> 
RB> 
RB> Tobi: What about using the '-f' switch of perl for mrtg?
RB> 
RB> 
RB> Rainer
RB> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list