[mrtg] Re: Change HTML

Waltman, Adam AWaltman at anacomp.com
Wed Feb 12 17:57:13 MET 2003


just find your mrtg.cfg file and manually edit the title and pagetop lines.
then restart mrtg process so it rereads the .cfg file.

no sweat.

-----Original Message-----
From: Kelly, John [mailto:jkelly at Empirix.com]
Sent: Wednesday, February 12, 2003 11:49 AM
To: MRTG - mail list
Subject: [mrtg] Change HTML 



I've been reading the MRTG docs and haven't been able to figure out how to
change the way HTML is generated. I would like to change the title and
pagetop values of the interfaces from what they are now: 

Title[10.8.1.254_10.9.2.254]: 10.9.2.254 -- waltham-core-internal
PageTop[10.8.1.254_10.9.2.254]: <H1>10.9.2.254 -- waltham-core-internal</H1>
(ip + hostname) 

to 

Title[10.8.1.254_10.9.2.254]: 10.9.2.254 -- FastEthernet0/0 connects to
phone network
PageTop[10.8.1.254_10.9.2.254]: <H1>10.9.2.254 -- FastEthernet0/0 connects
to phone network </H1>  (ip + interface description)

I believe cfgmaker is where I would make the change but I can't figure out
where and how to make this change.

### Interface 3 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip:
'10.9.2.254' | Eth: '00-30-80-aa-7b-40' ###

Target[10.8.1.254_10.9.2.254]: /10.9.2.254:public at 10.8.1.254:
SetEnv[10.8.1.254_10.9.2.254]: MRTG_INT_IP="10.9.2.254"
MRTG_INT_DESCR="FastEthernet0/0"
Directory[10.8.1.254_10.9.2.254]: 10.8.1.254
MaxBytes[10.8.1.254_10.9.2.254]: 12500000
Title[10.8.1.254_10.9.2.254]: 10.9.2.254 -- waltham-core-internal
PageTop[10.8.1.254_10.9.2.254]: <H1>10.9.2.254 -- waltham-core-internal</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>waltham-core-internal in 1340 Main Street,
Waltham MA</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>John Kelly</TD></TR>
   <TR><TD>Description:</TD><TD>FastEthernet0/0 connects to phone network
</TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Fa0/0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5 MBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>10.9.2.254 ()</TD></TR>
 </TABLE>

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

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