[mrtg] Re: Newbie - setting up templates
jim.mozley at exponential-e.com
Fri Apr 15 17:09:39 MEST 2005
Eric Brander wrote:
> Cristine Warring wrote:
>>"Global symbol "$targetname" requires explicit package name at (eval 4)
>>line 3, <IF_TEMPLATE> line 20.
> I think it should be $target_name.
Yep it should be. I believe $target_name has been declared already and
the perl is running with "use strict". So you can use $target_name as it
already exists but if you need your own variables within a template use
my $threshold = "40%";
and later in the template
$target_lines .= "ThreshMaxI[$target_name]: $thresh\n";
> Target[$target_name]: ifInErrors.$if_ref&ifOutErrors.$if_ref:$router_connect
Incidentally, I just started graphing errors and I had to remove the "."
between ifInErrors.$if_ref for the template to work.
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg