Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 27, 2017 3:39 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4  Next

Interface skinning?
YES! 81%  81%  [ 115 ]
No. You're high. 19%  19%  [ 27 ]
Total votes : 142
Author Message
 Post subject: [INFO] Black graphs look better than white! :)
PostPosted: Sat Dec 13, 2003 7:31 pm 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
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. :P


Attachments:
load.gif
load.gif [ 9.51 KiB | Viewed 60224 times ]

_________________
NxTek Solutions Inc - www.nxtek.com
Top
 Profile  
 
 Post subject: changing graph background
PostPosted: Mon Dec 15, 2003 9:59 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 10:41 am 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
I added -

-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000

to the command line which runs rrdtool in rrd.php. If you need more help just let me know!

_________________
NxTek Solutions Inc - www.nxtek.com


Top
 Profile  
 
 Post subject: a guess
PostPosted: Mon Dec 15, 2003 10:59 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
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 ");
}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 11:06 am 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
If memory serves, that's correct. Just make a backup. ;)

Did it work?

_________________
NxTek Solutions Inc - www.nxtek.com


Top
 Profile  
 
 Post subject: nope
PostPosted: Mon Dec 15, 2003 11:08 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
Nope, graphs are gone.... rolling back


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 11:16 am 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
Here's mine -
Quote:
Code:
  /* 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


Top
 Profile  
 
 Post subject: Sweet!
PostPosted: Mon Dec 15, 2003 11:20 am 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
That did the trick! Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 15, 2003 11:24 am 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
Enjoy. :D

_________________
NxTek Solutions Inc - www.nxtek.com


Top
 Profile  
 
 Post subject: nice
PostPosted: Tue Dec 16, 2003 5:58 pm 
killer hack!! looks tight! Thanks


Top
  
 
 Post subject:
PostPosted: Tue Dec 16, 2003 6:26 pm 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
Yes I agree.. ;) Thanks

Is Ian still alive? Any word on the possibility of skinning?

_________________
NxTek Solutions Inc - www.nxtek.com


Top
 Profile  
 
 Post subject: 1 possible idea
PostPosted: Wed Dec 17, 2003 3:42 pm 
Offline
Cacti Pro User
User avatar

Joined: Thu Nov 21, 2002 8:55 am
Posts: 703
Location: Austin, TX
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 18, 2003 1:54 pm 
Offline

Joined: Fri Nov 14, 2003 4:36 pm
Posts: 11
Cool.. I'd be very interested in hearing the results!

_________________
NxTek Solutions Inc - www.nxtek.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 7:53 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
NxTek wrote:
Yes I agree.. ;) Thanks

Is Ian still alive? Any word on the possibility of skinning?


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.

What do you think?

-Ian


Top
 Profile  
 
 Post subject: Graph Skinning
PostPosted: Sun Feb 08, 2004 9:38 am 
Offline

Joined: Mon Feb 18, 2002 7:00 pm
Posts: 33
Location: London, UK
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) :lol:

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group