[mrtg] interfaces reference
José Maria Costa Pereira
ze.maria at telecelvodafone.pt
Mon Jul 2 10:59:09 MEST 2001
Hi, everybody!
I was wondwering if someone could give me a hand...
So here goes. I'm building a perl script that reads from a file the
interfaces that mrtg should monitor.
(...)
as-porto ; FastEthernet0 ; 10.1.1.10 ; 100 ;
Mbps
avbro01 ; FastEthernet0 ; 10.2.1.10 ; 100 ;
Mbps
avbro01 ; Serial1/0 ; 10.100.1.1 ; 512 ;
kbps
bvbro01 ; ATM6/0.1-aal5_layer ; 10.150.1.1 ; 5 ; Mbps
(...)
the perl script then reads each line of that file and builds
something like:
(for the first line: as-porto ; FastEthernet0 ; 10.1.1.10 ; 100 ;
Mbps)
Target[as-porto_FastEthernet0]:
\FastEthernet0:data-public at as-porto:
Directory[as-porto_FastEthernet0]: as-porto
Maxbytes[as-porto_FastEthernet0]: 12500000
Title[as-porto_FastEthernet0]: FastEthernet0 -- as-porto
PageTop[as-porto_FastEthernet0]: FastEthernet0 -- as-porto
<TABLE>
<TR><TD>System:</TD> <TD>as-porto</TD></TR>
<TR><TD>ifName:</TD> <TD>FastEthernet0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>100 Mbps</TD></TR>
<TR><TD>IP:</TD> <TD>10.1.1.10</TD></TR>
</TABLE>
Is this sufficient to run as .cfg file in mrtg ??? ... Don't I need
some kind of reference from the name of the interface to its number???
Thanks!
Jose Maria.
----------
This message may contain confidential information or privileged material,
and is intended only for the individual(s) named. If you are not in the
named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission. If verification is required please
request a hard-copy version.
--
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