Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Dynamic Graph Colors?

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
hipsterdoofus



Joined: 09 Mar 2007
Posts: 20

PostPosted: Fri Sep 28, 2007 11:24 am    Post subject: Dynamic Graph Colors? Reply with quote

Not sure this is even possible or how it would be done (in conjunction with threshhold?) But it would be cool if based on a low and high number, a graph color could change dynamically (for temperature) from blue to red for example. Like I said, not sure if thats even possible, but would be a quick visual way to tell if something was up. Am I wacko?
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Mon Oct 01, 2007 12:07 pm    Post subject: Reply with quote

It's a nice idea. But plain rrdtool will not support it the easy way. It would at least requires some advanced CDEF magic. This is already used with some few templates
Reinhard
Back to top
hipsterdoofus



Joined: 09 Mar 2007
Posts: 20

PostPosted: Wed Oct 03, 2007 11:38 am    Post subject: Reply with quote

Would love some more information on how to do that - would be very cool to do that based on temperatures.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Wed Oct 03, 2007 12:25 pm    Post subject: Reply with quote

Try the Templates at http://forums.cacti.net/viewtopic.php?t=10049 They make use of those kind of CDEFs. Be prepared for a hard day to understand ...
Reinhard
Back to top
hipsterdoofus



Joined: 09 Mar 2007
Posts: 20

PostPosted: Wed Oct 03, 2007 3:30 pm    Post subject: Reply with quote

lol yeah you are right - maybe not worth the trouble.
Back to top
jt555



Joined: 17 Nov 2007
Posts: 12
Location: Atlanta, Ga

PostPosted: Mon Oct 13, 2008 3:21 pm    Post subject: Reply with quote

I did this using a script to collect humidity and temperature data. The graph template uses five data sources thevalue, highlimit, lowlimit, highvalue, and lowvalue.

The script will get the current humidity and thresholds from the device (AVTech RoomAlert) via SNMP. If the value does not breach either threshold then the highvalue and lowvalue are returned to Caci as U. If they do breach then their value gets returned.

The graph template plots the hi and low values after the current value so that so that it will be drawn on top of the current value.



humiditytholds.png
 Description:
 Filesize:  31.02 KB
 Viewed:  411 Time(s)

humiditytholds.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group