Dynamic Graph Colors?
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 87
- Joined: Fri Mar 09, 2007 12:35 pm
Dynamic Graph Colors?
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?
-
- Cacti User
- Posts: 87
- Joined: Fri Mar 09, 2007 12:35 pm
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
Reinhard
-
- Cacti User
- Posts: 87
- Joined: Fri Mar 09, 2007 12:35 pm
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.
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 (31.02 KiB) Viewed 3712 times
Who is online
Users browsing this forum: No registered users and 2 guests