Dynamic Graph Colors?

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
hipsterdoofus
Cacti User
Posts: 87
Joined: Fri Mar 09, 2007 12:35 pm

Dynamic Graph Colors?

Post by hipsterdoofus »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
hipsterdoofus
Cacti User
Posts: 87
Joined: Fri Mar 09, 2007 12:35 pm

Post by hipsterdoofus »

Would love some more information on how to do that - would be very cool to do that based on temperatures.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
hipsterdoofus
Cacti User
Posts: 87
Joined: Fri Mar 09, 2007 12:35 pm

Post by hipsterdoofus »

lol yeah you are right - maybe not worth the trouble.
User avatar
jt555
Cacti User
Posts: 56
Joined: Sat Nov 17, 2007 3:37 pm
Location: Atlanta, Ga

Post by jt555 »

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.
Attachments
humiditytholds.png
humiditytholds.png (31.02 KiB) Viewed 3708 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest