HELP on Perl:

Rafael Martinez Torres <[email protected]>
Newsgroups gmane.network.mrtg.devel
Message-ID <[email protected]>
Hi all:

One of my problems with mrtg, when litteral address are used, is this:


ERROR: Target[[2001:800:40:2a03:205:1cff:fe00:1df0]_3][_IN_] '3:public@[2001:800:40:2a03:205:1cff:fe00:1df0]:' (warn): (Missing operator before df0?)
ERROR: Target[[2001:800:40:2a03:205:1cff:fe00:1df0]_3][_OUT_] '3:public@[2001:800:40:2a03:205:1cff:fe00:1df0]:' (warn): (Missing operator before df0?)
WARNING: Skipping Update of [2001:800:40:2a03:205:1cff:fe00:1df0]_3, inlast is not defined
WARNING: Skipping Update of [2001:800:40:2a03:205:1cff:fe00:1df0]_3, outlast is not defined


I have spent more than a month on that, and I can not solve: Those implied
in mrtg-2.10pre1 should know about it:

This is caused at around mrtg +403 by the sentence:

	$data=eval("$$rcfg{$target}{$rou}");

It's value at runtime is:

	$data=eval("3:public@[2001:800:40:2a03:205:1cff:fe00:1df0]:")

It's trying to evaluate simbolically the given expression, so it crash...

I tried the hack proposed with

	use Math::BigInt;
	my $zero=new Math::BigInt(0);
	$data=eval("\$zero + $$rcfg{$target}{$rou}");


but , in my case ,it does not result. Why is this ?



Regards.

--
Unsubscribe mailto:[email protected]?subject=unsubscribe
Help        mailto:[email protected]?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.