[mrtg] how to change colors of the image

Petr Janda prcek at netbox.cz
Fri May 16 10:53:22 CEST 2008


Hello,

On Wed, May 14, 2008 at 01:42:58AM -0700, Nelson Serafica wrote:
> I have a cisco catalyst and it has an mrtg on one of my Linux server. I want to change of the
> graph such as the IN  must be GREEN and OUT must be BLUE. I cannot find
> the doc for mrtg since I already delete a installation file.
> 
> Anyone can provide a link or a way to do this?

http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
keyword for search is "Colours"

> 
> Here is the snippet of some of the config:
> 
> 
> Target[x.x.x.x:]: 2:Community at x.x.x.x:
> SetEnv[x.x.x.x:]: MRTG_INT_IP="x.x.x.x:" MRTG_INT_DESCR="Ethernet1"
> Options[x.x.x.x:: growright, bits
> MaxBytes[x.x.x.x:]: 1250000
> Title[x.x.x.x:]: Solvware

Colours[x.x.x.x]: Brown#ff972b,Gray#AAAAAA,Blue#1000ff,Violet#ff00ff
(you have to change values, this is part of my configuration)

> PageTop[x.x.x.x:]: <h1>Solvware</h1>
>                 <div id="sysdetails">
>                         <table>
>                                 <tr>
>                                         <td>System:</td>
>                                         <td>Ether in </td>
>                                 </tr>
>                                 <tr>
>                                         <td>Description:</td>
>                                         <td>Solvware Leased Line</td>
>                                 </tr>
>                                 <tr>
>                                         <td>ifType:</td>
>                                         <td>ethernetCsmacd (6)</td>
>                                 </tr>
>                                 <tr>
>                                         <td>ifName:</td>
>                                         <td></td>
>                                 </tr>
>                                 <tr>
>                                         <td>Max Speed:</td>
>                                         <td>1.25 MBytes/s</td>
>                                 </tr>
>                             </table>
>                 </div>
> 
> 
> 
>       Support Victims of the Cyclone in Myanmar (Burma). Donate Now.
> http://advision.webevents.yahoo.com/aid_myanmar/

Regards	
Petr Janda
--
email: /bin/sh -c 'A=netbox; B=janda; printf "%s@%s.cz\n" ${B} ${A}'



More information about the mrtg mailing list