[INFO] Black graphs look better than white! :)
Moderators: Developers, Moderators
[INFO] Black graphs look better than white! :)
Call me crazy but I like cool looking graphs .. This is a hack that most techies would know how to do, but it requires editing rrd.php. See attached.
Ian - PLEASE allow "skinning" of the Cacti interface. Some of us use the graphs for public view so presentation is important.
Ian - PLEASE allow "skinning" of the Cacti interface. Some of us use the graphs for public view so presentation is important.
- Attachments
-
- load.gif (9.51 KiB) Viewed 69687 times
NxTek Solutions Inc - www.nxtek.com
changing graph background
I did a quick scan on my rrd.php, but did not see where to alter the graph background. Could you please provide a code sample?
Thanks
Thanks
a guess
I am assuming it goes under function rrdtool_execute: under option 1
if ($log_command == true) {
log_data("CMD: " . read_config_option("path_rrdtool") . " $command_line" "-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000 ");
}
if ($log_command == true) {
log_data("CMD: " . read_config_option("path_rrdtool") . " $command_line" "-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000 ");
}
Here's mine -
Code: Select all
/* basic graph options */ $graph_opts .= "--imgformat=" . $image_types{$graph["image_format_id"]} . RRD_NL . "--start=$graph_start" . RRD_NL . "-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000 --title=\"" . $graph["title_cache"] . "\"" . RRD_NL . "$rigid" . "--base=" . $graph["base_value"] . RRD_NL . "--height=$graph_height" . RRD_NL . "--width=$graph_width" . RRD_NL . "$scale" . "$unit_exponent_value" . "$graph_legend" . "--vertical-label=\"" . $graph["vertical_label"] . "\"" . RRD_NL;
NxTek Solutions Inc - www.nxtek.com
1 possible idea
Check out http://phpsysinfo.sourceforge.net/ It is a skinable system info utility wrtten in php. Perhaps the code could be massaged and an applied to Cacti.. I will try it on a test box next week
I'm still around Were you thinking about skinning graphs or the entire Cacti user interface? Organizationally it would make sense to put the graph skinning functionality in with the graph templates. However I feel that users would object to this since they would probably want to make this kind of change globally. I suppose I could create a new tab under "Cacti Settings" that allowed users to specify various global graph options such as color, background image, etc.NxTek wrote:Yes I agree.. Thanks
Is Ian still alive? Any word on the possibility of skinning?
What do you think?
-Ian
-
- Posts: 33
- Joined: Mon Feb 18, 2002 7:00 pm
- Location: London, UK
Graph Skinning
Having a global graph option in Cacti Settings that can allow graphs to be skinned is a great idea. By default all graphs would confirn to this, however, it would be cool, if possible, to over-ride this in the graph template section for specific instances.
As well as skinning font / colour, a link to a backgroud image would be great (especialy to give clients that special feeling)
As an aside, adding functionality like this to make it simple for users to contribute (and show off) can only help the community spirit for this exellent app.
As well as skinning font / colour, a link to a backgroud image would be great (especialy to give clients that special feeling)
As an aside, adding functionality like this to make it simple for users to contribute (and show off) can only help the community spirit for this exellent app.
Who is online
Users browsing this forum: No registered users and 0 guests