> -----Original Message-----
> From: Andrew Werbowy [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 17, 2004 8:28 AM
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
>  
>  
> "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:[EMAIL PROTECTED]
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

Reply via email to