hi,
I'm creating graphs for a Powerware UPS and it's working great. One of the graphs is displaying voltages, input and output voltages is fine, but for some reason, the battery voltage is ten times the actual value (2640 instead of 264). Is there a simple way of dividing this number by 10 to better align it with the other voltages?
My best guess so far is to create a custom script to retrieve the value and divide it using perl or php, but that seems like a lot of work for such little effect.
thanks in advance,
Daniel
dividing a SNMP value by 10
Moderators: Developers, Moderators
-
- Posts: 20
- Joined: Sat Feb 25, 2006 4:51 am
- Location: Germany
- Contact:
In your graph template for a data source, tell it to show exact values. Also, be aware that rrdtool consolidates data.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 20
- Joined: Sat Feb 25, 2006 4:51 am
- Location: Germany
- Contact:
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Late, but ...Hip wrote:Hi,
The better way to do it is to use a CDEF:
1- Create a CDEF, enter string: "a,10,/" (this is in RPN notation, see rrdtool manual)
2- Apply the CDEF on the graph item representing the battery voltage
CDEF should better look like
Code: Select all
CDEF=CURRENT_DATA_SOURCE,10,/
Who is online
Users browsing this forum: No registered users and 3 guests