[mrtg] Re: Generating Broadcast graphs for all interfaces

Tim Sheets TSheets at illinois.net
Mon May 17 15:48:39 MEST 2004


> -----Original Message-----
> From: Andrew Werbowy [mailto:Andrew_Werbowy at cbc.ca]
> Sent: Monday, May 17, 2004 8:28 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Generating Broadcast graphs for all interfaces
> 
> 
> Hi All,
>  
> I want to generate broadcast stats on my catalysts switches and I was 
> wondering if anybody did something already like this.
>  
> Well here is what I am using and gettingthe error in executing the
> script:
>  /usr/local/mrtg-2/bin/cfgmaker --host-template=broadcast.template
> public at 10.10.10.10
>  
>  
> "Global symbol "$if_ok" requires explicit package name at
> (eval 4) line 27, <IF_TEMPLATE> line 68. Global symbol 
> "$target_name" requires explicit package name at (eval 4) 
> line 29, <IF_TEMPLATE> line 68. " And here is the script,  
> ohh and I do not know Perl:

Andrew,

Since $if_ok is an interface related variable, I think it should be used
in an interface template, not a host template.

Using templates to define what to build the config file to monitor, and
determining which interfaces to include in that config file are two
separate functions.  Try simply removing the 'if' statement from the
code and see if that works for you.


Tim

--
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