Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Jan 19, 2018 2:16 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Mon Jan 04, 2016 11:07 pm 
Offline

Joined: Mon Jan 04, 2016 9:15 pm
Posts: 5
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 ?


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Tue Jan 05, 2016 10:17 am 
Offline

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


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Wed Jan 06, 2016 12:03 am 
Offline

Joined: Mon Jan 04, 2016 9:15 pm
Posts: 5
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


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Fri Jan 08, 2016 4:54 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2654
Location: Kressbronn, Germany
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Sat Jan 16, 2016 3:48 pm 
Offline

Joined: Mon Jan 04, 2016 9:15 pm
Posts: 5
Cacti Version 0.8.8b


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Tue Nov 22, 2016 6:55 am 
Offline

Joined: Tue Nov 22, 2016 6:27 am
Posts: 1
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 2023 times ]
Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Tue Dec 20, 2016 7:48 pm 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 546
Someone should do a pull request against the Github release for this.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Wed Dec 21, 2016 9:32 pm 
Offline

Joined: Tue Feb 19, 2013 3:44 pm
Posts: 3
I just backed up the original rrd.php and dropped this in place. All my graphs look sexy now! Nice add on


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Thu Oct 12, 2017 12:44 am 
Offline

Joined: Wed Mar 22, 2017 3:31 pm
Posts: 8
Location: Saint Louis, MO
Dragging this back to the top to see if this might be updated to work with the new 1.x version? :) Very cool...


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Thu Oct 12, 2017 1:18 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2654
Location: Kressbronn, Germany
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

_________________
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Fri Oct 13, 2017 2:15 am 
Offline

Joined: Wed Mar 22, 2017 3:31 pm
Posts: 8
Location: Saint Louis, MO
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/19/gradient-support-for-cacti-graphs/

Also created a pull request: https://github.com/Cacti/cacti/pull/1029


Attachments:
File comment: Graph showing gradient...
graph_image.png
graph_image.png [ 60.51 KiB | Viewed 166 times ]
Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Fri Oct 13, 2017 3:13 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2654
Location: Kressbronn, Germany
You can change this line:

Code:
// 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:
// 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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Fri Oct 13, 2017 10:28 am 
Offline

Joined: Wed Mar 22, 2017 3:31 pm
Posts: 8
Location: Saint Louis, MO
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:

Attachment:
File comment: Using Area
cacti_1401 (1).png
cacti_1401 (1).png [ 26.99 KiB | Viewed 160 times ]


Using Lines:

Attachment:
File comment: Using Lines
cacti_1401 (2).png
cacti_1401 (2).png [ 27.15 KiB | Viewed 160 times ]


Using Area (without gradient patch)

Attachment:
File comment: Without Gadient
cacti_1401 (3).png
cacti_1401 (3).png [ 29.3 KiB | Viewed 160 times ]


Just curious if it's a bug or just the nature of getting the gradients to work...

Thanks!

_dave


Top
 Profile  
 
 Post subject: Re: Gradient Graphs for Cacti
PostPosted: Fri Oct 13, 2017 10:34 am 
Offline

Joined: Wed Mar 22, 2017 3:31 pm
Posts: 8
Location: Saint Louis, MO
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...

Attachment:
File comment: Transparency
cacti_1401 (4).png
cacti_1401 (4).png [ 33.74 KiB | Viewed 160 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:
// 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:
// We don't use alpha blending for the area right now
//$alpha = 'ff';


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 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