nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Graph COLOR

This is a discussion on Graph COLOR within the Linux software forums, part of the Linux Getting Started category; If I want to change the color of my graphs What command can I use in my cfg file I ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 03-18-2005, 04:20 PM
MRTG MAN
Guest
 
Posts: n/a
Default Graph COLOR

If I want to change the color of my graphs
What command can I use in my cfg file
I think green and blue graph lines are ugly so i'd like to change the color
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-20-2005, 10:02 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

LOL try something as follows in your hostname.cfg file (the one created with cfgmaker)

Code:
Colours[HOSTNAME_OR_ROUTER]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff
Here are some colours and hex values
#FFFF00 Yellow
#3399FF
#990099

In short these are hexadecimal color codes used on the Web. Colors are specified as hexadecimal numbers (base 16, in the same way that decimal numbers are base 10). Same colors are used by mrtg cfg files.


Quoted from man page of mrtg
Quote:
Colours
The Colours tag allows you to override the default colour scheme. Note: All 4 of the required colours must be specified here. The colour name ('Colourx' below) is the legend name displayed, while the RGB value is the real colour used for the display, both on the graph and in the html doc.

Format is: Colour1#RRGGBB,Colour2#RRGGBB,Colour3#RRGGBB,Colou r4#RRGGBB

Important: If you use the dorelpercent options tag a fifth colour name colour value pair is required: Colour1#RRGGBB,Colour2#RRGGBB,Colour3#RRGGBB,Colou r4#RRGGBB,Colour5#RRGGBB

Colour1

First variable (normally Input) on default graph

Colour2

Second variable (normally Output) on default graph

Colour3

Max first variable (input)

Colour4

Max second variable (output)

RRGGBB

2 digit hex values for Red, Green and Blue

Example:

Colours[ezwf]: GREEN#00eb0c,BLUE#1000ff,DARK GREEN#006600,VIOLET#ff00ff

Background
With the Background tag you can configure the background colour of the generated HTML page

Example:

Background[ezwf]: #a0a0a0a
Hope this helps
Reply With Quote
  #3 (permalink)  
Old 03-21-2005, 12:57 PM
MRTG MAN
Guest
 
Posts: n/a
Default

thanks
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to see Graph in Cacti puppen Linux software 1 05-24-2006 11:42 PM
Different Level of graph rafiq380 Linux software 1 12-23-2005 06:33 PM
problem with mrtg graph orko Linux software 1 02-11-2005 04:46 PM


All times are GMT +5.5. The time now is 02:58 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36