Not sure if this has been done before, if so, damn.
Today I was getting a bit fed up trying to match colours when I wanted to create the awesome 'Fire' effect, so I decided to arrange my colours a bit better.
This is purely cosmetic and will create no additional functionality to the wonderful cacti.
I take no responsibility for these instructions, USE AT YOUR OWN RISK :p (always wanted to say that)
1. With PHPMyAdmin, drop the table 'colors' and import the new colors.sql
With your favourite editor (php expert editor).
2. Open "color.php" located in your cacti root.
Change Line 131:
From This:
Code: Select all
$color_list = db_fetch_assoc("select * from colors order by hex");
To This:
Code: Select all
$color_list = db_fetch_assoc("select * from colors order by id");
3 . Open "html_form.php" located in in "/cacti/lib"
Change line 370:
From This:
Code: Select all
$colors_list = db_fetch_assoc("select id,hex from colors order by hex desc");
To This:
Code: Select all
$colors_list = db_fetch_assoc("select id,hex from colors order by id");
Make sure you update your Graph Templates with your new colours
Here are some screen shots showing you what I mean.
Before
After