Gradient Graphs for Cacti

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

kinghaye
Posts: 5
Joined: Mon Jan 04, 2016 9:15 pm

Re: Gradient Graphs for Cacti

Post by kinghaye »

Greetings everyone am new to this Cacti software so forgive me for asking dumb question but when i log in through SSH and browse to nano /path/to/cacti/lib/rrd.php the file is blank. should i just add the code or the graph template ?
kinghaye
Posts: 5
Joined: Mon Jan 04, 2016 9:15 pm

Re: Gradient Graphs for Cacti

Post by kinghaye »

How can download and install the rrd.php file in the correct directory since mine is blank.
kinghaye
Posts: 5
Joined: Mon Jan 04, 2016 9:15 pm

Re: Gradient Graphs for Cacti

Post by kinghaye »

found the location of the file however when i apply the code all my graphs are gone. any idea what might cause that?
/usr/share/cacti/site/lib
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Gradient Graphs for Cacti

Post by phalek »

What Cacti version are you using ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
kinghaye
Posts: 5
Joined: Mon Jan 04, 2016 9:15 pm

Re: Gradient Graphs for Cacti

Post by kinghaye »

Cacti Version 0.8.8b
nsait
Posts: 1
Joined: Tue Nov 22, 2016 6:27 am

Re: Gradient Graphs for Cacti

Post by nsait »

Hello
How to make that color grading was only in the area, and did not fill line?
Attachments
cacti_online.jpeg
cacti_online.jpeg (218.66 KiB) Viewed 4518 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Gradient Graphs for Cacti

Post by Osiris »

Someone should do a pull request against the Github release for this.
Before history, there was a paradise, now dust.
ericgarnel
Posts: 6
Joined: Tue Feb 19, 2013 3:44 pm

Re: Gradient Graphs for Cacti

Post by ericgarnel »

I just backed up the original rrd.php and dropped this in place. All my graphs look sexy now! Nice add on
pianograndpulp
Posts: 16
Joined: Wed Mar 22, 2017 3:31 pm
Location: Saint Louis, MO
Contact:

Re: Gradient Graphs for Cacti

Post by pianograndpulp »

Dragging this back to the top to see if this might be updated to work with the new 1.x version? :) Very cool...
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Gradient Graphs for Cacti

Post by phalek »

Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
pianograndpulp
Posts: 16
Joined: Wed Mar 22, 2017 3:31 pm
Location: Saint Louis, MO
Contact:

Re: Gradient Graphs for Cacti

Post by pianograndpulp »

Thank you!! Love it!! Did forget about the fact that transparency goes away - but I'll adjust my graphs to make those work. Thank you so much!!
phalek wrote:Updated for Cacti 1.x.x : https://www.urban-software.com/2015/06/ ... ti-graphs/

Also created a pull request: https://github.com/Cacti/cacti/pull/1029
Attachments
Graph showing gradient...
Graph showing gradient...
graph_image.png (60.51 KiB) Viewed 2661 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Gradient Graphs for Cacti

Post by phalek »

You can change this line:

Code: Select all

// We don't use alpha blending for the area right now
$alpha = 'ff';

to this, to get transparency working ( it may look ugly though ... ? there was a reason why i disabled this ... )

Code: Select all

// We don't use alpha blending for the area right now
//$alpha = 'ff';
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
pianograndpulp
Posts: 16
Joined: Wed Mar 22, 2017 3:31 pm
Location: Saint Louis, MO
Contact:

Re: Gradient Graphs for Cacti

Post by pianograndpulp »

Was also just checking out an odd behavior with the autoscaling of using the Area graph item type. With the gradient applied, the "auto scale options" don't seem to be working.

Using Area:
Using Area
Using Area
cacti_1401 (1).png (26.99 KiB) Viewed 2655 times
Using Lines:
Using Lines
Using Lines
cacti_1401 (2).png (27.15 KiB) Viewed 2655 times
Using Area (without gradient patch)
Without Gadient
Without Gadient
cacti_1401 (3).png (29.3 KiB) Viewed 2655 times
Just curious if it's a bug or just the nature of getting the gradients to work...

Thanks!

_dave
pianograndpulp
Posts: 16
Joined: Wed Mar 22, 2017 3:31 pm
Location: Saint Louis, MO
Contact:

Re: Gradient Graphs for Cacti

Post by pianograndpulp »

Ha! Yeah - now I can see what transparency isn't a real good option here... At least with the type of graph I'm using... Even with everything at 10% it's still very hard to see...
Transparency
Transparency
cacti_1401 (4).png (33.74 KiB) Viewed 2655 times
Thanks for the details though - still may be able to design the graph in a way to make it work!!

_dave

phalek wrote:You can change this line:

Code: Select all

// We don't use alpha blending for the area right now
$alpha = 'ff';

to this, to get transparency working ( it may look ugly though ... ? there was a reason why i disabled this ... )

Code: Select all

// We don't use alpha blending for the area right now
//$alpha = 'ff';
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests