[Solved] How do I copy this style/theme/scheme ?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

[Solved] How do I copy this style/theme/scheme ?

Post by MU-IT »

I'd like to copy this look (with different colors):

Image

I've attempted to get there with the attached, but I'd really like to plot the zero baseline, have the x and y labels, but no grid.

How could I remove the rightmost "RRDTOOL / TOBI OETIKER" label as well?

Thanks!
Attachments
graph_3555_1.png
graph_3555_1.png (20.46 KiB) Viewed 7644 times
Last edited by MU-IT on Mon Sep 29, 2008 12:38 pm, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: How do I copy this style/theme/scheme ?

Post by Howie »

MU-IT wrote: How could I remove the rightmost "RRDTOOL / TOBI OETIKER" label as well?

Thanks!
I expect if you pay Tobi for all his hard work, he might allow you to remove it...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

:D I figured as much.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

It appears it's all there. Of course you'd need to modify the php page that creates the graphs with your own settings, but that should give ya a good start.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

streaker69 wrote:http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

It appears it's all there. Of course you'd need to modify the php page that creates the graphs with your own settings, but that should give ya a good start.
is this a RTFM response?

'cuz i deserved it. a little guess and test and i got it.

thx Streaker.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

MU-IT wrote:
streaker69 wrote:http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

It appears it's all there. Of course you'd need to modify the php page that creates the graphs with your own settings, but that should give ya a good start.
is this a RTFM response?

'cuz i deserved it. a little guess and test and i got it.

thx Streaker.
I wasn't sure if what you wanted was there until I read it myself, but I do like your idea, that graph you posted is pretty slick looking. It would be good if we could modify the Graph template page to include some of those other settings.

There now ya got a task. :)
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

streaker69 wrote:
I wasn't sure if what you wanted was there until I read it myself, but I do like your idea, that graph you posted is pretty slick looking. It would be good if we could modify the Graph template page to include some of those other settings.

There now ya got a task. :)

Well, I thought I had it... until i noticed I've lost both the grid and the units of measure along the vertical axis.

It seems can't get the units to show up without the grid... any idea?

I've got the following line in RRD.php line# 769:

Code: Select all

		"--x-grid none --y-grid none -c GRID#bfbfaf  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#6B6C5B -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title="" . $graph["title_cache"] . """ . RRD_NL . 
for those who are interested.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

MU-IT wrote:
streaker69 wrote:
I wasn't sure if what you wanted was there until I read it myself, but I do like your idea, that graph you posted is pretty slick looking. It would be good if we could modify the Graph template page to include some of those other settings.

There now ya got a task. :)

Well, I thought I had it... until i noticed I've lost both the grid and the units of measure along the vertical axis.

It seems can't get the units to show up without the grid... any idea?

I've got the following line in RRD.php line# 769:

Code: Select all

		"--x-grid none --y-grid none -c GRID#bfbfaf  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#6B6C5B -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title="" . $graph["title_cache"] . """ . RRD_NL . 
for those who are interested.
You have the x-grid and y-grid set to none? Not sure about the units of measure, doesn't look like you've posted all the code related to graph creation. I don't have time to look at the rrd.php right now, but maybe later today I will.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

that it's the only line in rrd.php that i've changed is the reason i included it in the post.
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

Shameless bump.

Here's as close as I can get... still no units of measure:
Attachments
graph_3363_2.png
graph_3363_2.png (26.57 KiB) Viewed 7464 times
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

With the x-grid and y-grid set to none this suppresses the grid and labels so if you want the labels you might need to leave that out and set the grid colours the same as the canvas background. I think you're close though. What about trying something like this,

Code: Select all

"-c GRID#B0B0A2  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#B0B0A2 -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title=\"" . $graph["title_cache"] . "\"" . RRD_NL ."
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

warnesj wrote: I think you're close though. What about trying something like this,

Code: Select all

"-c GRID#B0B0A2  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#B0B0A2 -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title="" . $graph["title_cache"] . """ . RRD_NL ."
I've been there. :D Still stumped.

The grid goes over my data, like so:
Attachments
graph_image.png
graph_image.png (32.25 KiB) Viewed 7407 times
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

Okay, how about making the grid colour transparent? Something like this,

Code: Select all

"-c GRID#B0B0A200  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#B0B0A200 -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title=\"" . $graph["title_cache"] . "\"" . RRD_NL ."
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

warnesj wrote:Okay, how about making the grid colour transparent? Something like this,

Code: Select all

"-c GRID#B0B0A200  -c SHADEA#bfbfaf -c SHADEB#bfbfaf -c MGRID#B0B0A200 -c CANVAS#B0B0A2 -c FONT#000000 -c BACK#bfbfaf --title="" . $graph["title_cache"] . """ . RRD_NL ."
And warnesj takes the cake.

how is it that i've never come across that transparent malarkey?

Thanks!
Attachments
graph_image.png
graph_image.png (33.18 KiB) Viewed 7368 times
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

Excellent! Great to hear that it worked. :) I should have thought about the alpha transparency value before. It slipped my mind too.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests