SNMP Conversions for Charts

I would like to be able to convert a Celsius (spelling) temperature reading to Fahrenheit. I am currently doing it with MRTG, but want to move some of my older monitoring systems to “The Dude”. I have created a data source, and if I am reading the SNMP directly, it works fine.

Now, I want to take that output and run it through the conversion to get my *F. Here are the things I have tried in the Data Sources. I set the type to function, and in the “Code:” box, I type the following:

oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”) => 17
oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)*1.8+32 => No Result
oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)*1.8 => No Result
oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)+32 => 49
round(oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)*1.8+32) => No Result
round(oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)) => 17

It is almost as if the multiplication won’t work.

I am running “The Dude v2.2”

multiplication does work, but not integer numbers did not. Will be fixed in
next beta release of the dude. Thank you for report.

Just as a follow-up, I did use integers instead of a decimal and it did work. This is what I have in my system.

round(oid(“iso.org.dod.internet.private.enterprises.318.1.1.2.1.1.0”)*9/5+32) = Correct Values

This just converts the Celsius to Fahrenheit.

Thanks