[mrtg] Re: ATM interface for 7204

von dan dvong3 at yahoo.com
Wed Nov 27 20:23:58 MET 2002


Hi all,
Thanks for the reply. I will change ifref=name to ifref=descr...i'll let you know the result. 
Dan
-----------------------------------
# create the cfg file for this Ip address (assumes community string is "public") 

        perl /usr/local/src/mrtg-2.9.17/bin/cfgmaker                    \
        --global "workdir: /var/www/html/$location/$name"               \
        --global "Options[_]: growright, bits"                          \
        --ifref=name                                                    \
        --no-down                                                       \
        public@$ipaddr                                                  \
        --output /etc/mrtg/$name.cfg


# Create an index.html file for this folder  

        perl /usr/local/src/mrtg-2.9.17/bin/indexmaker                  \
        /etc/mrtg/$name.cfg > /var/www/html/$location/$name/$name.cfg 

# create an entry in script "all-ip" to run mrtg for each device. 
 
        echo "/usr/local/src/mrtg-2.9.17/bin/mrtg /etc/mrtg/$name.cfg;" \
         >> /etc/mrtg/all-ip
  

# Uncommenting the line below will create a "master" index.html inside the 
# /var/www/html directory for all devices. 
# Note that this line will create a text file called index.html. This 
# should be edited for correct html syntax. 

#echo "<br><a href=$name/$name.cfg > Traffic on ports of Device $name </a>" >> /var/www/html/$location/index.html Alex Nguyen <anguyen at videotron.net> wrote:

With CfgMaker, use ifDescr (--ifref=descr) instead of ifName
(--ifref=name).

A.

On Wed, 27 Nov 2002, Mitchel Weinberger wrote:

MW> Date: Wed, 27 Nov 2002 10:54:55 -0800
MW> From: Mitchel Weinberger 
MW> To: Alex Nguyen , von dan 
MW> Cc: mrtg at list.ee.ethz.ch
MW> Subject: Re: [mrtg] Re: ATM interface for 7204
MW> 
MW> I have the same issue. How do you solve it?
MW> 
MW> thanks,
MW> 
MW> Mitchel
MW> 
MW> At 01:42 PM 11/27/2002 -0500, Alex Nguyen wrote:
MW> 
MW> >Hi,
MW> >
MW> >The 7204 will return several index with the same ifName for ATM interface
MW> >and CfgMaker don't know which one to choose :
MW> >
MW> 
MW> Mitchel Weinberger, Senior Systems Administrator
MW> Northwest Network Services
MW> 206-842-1435 voice
MW> 206-780-1996 fax
MW> mitchel at nwnetwork.net
MW> 

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



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

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