[afnog] Mrtg cfgmaker template

Sam Gathigi sgathigi at comtecisl.com
Mon Jun 28 13:11:10 EAT 2004


HI all !
does anyone know how to use a cfgmaker template (MRTG)
so that it can automatically label my graphs with the description
name of an interface instead of the serial y.x style ?


### Interface 10 >> Descr: 'Serial0/0.5' | Name: 'Se0/0.5' | Ip:
'192.168.1.13' | Eth: '' ###

Target[62.24.115.9_10]: 10:3600 at 62.24.115.9:
SetEnv[62.24.115.9_10]: MRTG_INT_IP="192.168.1.13"
MRTG_INT_DESCR="Serial0/0.5"
MaxBytes[62.24.115.9_10]: 2000
Title[62.24.115.9_10]: Traffic Analysis for 10 -- CMR-PRI
PageTop[62.24.115.9_10]: <H1>Traffic Analysis for 10 -- CMR-PRI</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>CMR-PRI in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Serial0/0.5 six-pence TRAVEL </TD></TR>
   <TR><TD>ifType:</TD>     <TD>frame-relay (32)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Se0/0.5</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>193.0 kBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.1.13 ()</TD></TR>
 </TABLE>

instead of the MRTG_INT_DESCR="FastEthernet0/0" reading fastethernet or
serial i reads
the descriptive name : eg shah-travel ?

Thanks in advance
Sam



More information about the afnog mailing list