Multipliers Question

validan

21-05-2004 12:43:10

I need to be able to convert Degrees Celsius to Deg Fahrenheit from a snmp retrieved value.

The Tree is here
1.3.6.1.4.1.9.9.13.1.3.1.3

And the output is
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.1 = Gauge32 19
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.2 = Gauge32 22
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.3 = Gauge32 21
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.4 = Gauge32 36
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.5 = Gauge32 41
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.6 = Gauge32 28
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.7 = Gauge32 39
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.8 = Gauge32 29
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.9 = Gauge32 43
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.10 = Gauge32 25
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.11 = Gauge32 38
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.12 = Gauge32 24
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.13 = Gauge32 34
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.14 = Gauge32 24
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.15 = Gauge32 32
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.16 = Gauge32 24
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.17 = Gauge32 32
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.18 = Gauge32 23
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.19 = Gauge32 32
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.20 = Gauge32 23
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.21 = Gauge32 32
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.22 = Gauge32 23
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.23 = Gauge32 32
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.24 = Gauge32 23
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.25 = Gauge32 33
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.26 = Gauge32 22
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.27 = Gauge32 34
SNMPv2-SMIenterprises.9.9.13.1.3.1.3.28 = Gauge32 21

These are all in Deg Celsius and I need them to display in Fahrenheit I know the formula, and I am curious how to apply this to a graph WITHOUT doing a external Script.

Thanks in Advance.

silfreed

21-05-2004 14:03:43

Currently we don't have a way of doing multi-stage math while drawing the graph. We have a simple way to do multiplications/divisions to the data before its displayed which can be found on the template/custom graph page - click on your graph you want to edit, then click edit on the item. There is a value muliplier field available.
Ideally, I guess we want some sort of Postfix/RPN mechanism. I've submitted this feature request as bug#205. You can track it at that link.

-Doug

validan

21-05-2004 16:38:42

As a temporary Workaround I have the value recorded in the RRD as the celsius value. Than as a custom graph I use "invisible" numbers and via a Sum of graph items I get the value I want.

Via the Formula (Degrees-Celcius * 1.8) + 32

Basically it works like this on a template/custom graph

1a) Value Attained via the RRD * 1.8
1b) A set value of 32
1c) A sum of the Graph Items

Repeated 4 times for the 4 values I grab from My Cisco, with the A and B values not being displayed, the Type set to Line1 and white, and no description or name for the line. For now this works, But I would Like that functionality if this is something you are shooting for in future releases.

silfreed

21-05-2004 16:40:50

We had talked about postfix support before, so I don't have a problem working on it for future releases.
Great workaround, though! I've used similar things in the past, just didn't think of that at the time.

-Doug