Display Value divid formula [SOLVED]

I have a Temperature & Humidity monitoring device (Emerson IRM-S02TH)
I can get its value via snmp, but it gives value like this

temperature,

1.3.6.1.4.1.13400.2.62.2.1.2.0 = 2220

so to show it correctly in Dude DISPLAY, i use this

Temperature: [oid("1.3.6.1.4.1.13400.2.62.2.1.2.0")/100]

and it works fine. and shows proper temperature like 22.x

Now i have a probe which should warn me if temperature goes above but how can I insert DIVIDE value

PROBE:

Name: NOC Room Temperature Over 
Type: Function
Available: if(oid("1.3.6.1.4.1.13400.2.62.2.1.2.0")0, 1, -1)
Error: if(oid("1.3.6.1.4.1.13400.2.62.2.1.2.0")<25, "", "NOC Room Temperature above 25 c,  Please check A.C")
Value: 1.3.6.1.4.1.13400.2.62.2.1.2.0
Unit: C

( If I enter value 2500, it give me error of not available)

Create a function which will read and divide the temperature:
name: getTemperature
Code: oid(“1.3.6.1.4.1.13400.2.62.2.1.2.0”) / 100

Use that function in the probe:
Value: getTemperature()

I created FUNCTION as you suggested, but still I am not getting DIVIDED value. see the snap of my Function & PROBE.
1234.JPG
123.jpg

Try to use that function in the label display, to see if the function returns a correct value.

Yes I am getting value in appearance / label. something like
temp.JPG

Go to the device’s label on the map, go to Appearance.

In “Label” field, click it, you can modify it. To use a function in there, use it in this format:

Temp from function: [getTemperature()]c

Just add that below all that is already in there.

yes i m getting value in appearance using the FUNCTION. but unabel to get DIVIDED value in the FUNCTION/PROBE :frowning:
temp.JPG

If the function returns correctly in the label, it has to return correctly in the Probe as well.

Check if you have multiple Probes, check if you are using the right Probe, check if you didnt accidentaly click Cancel when saving the Probe etc.

It really should work, lets check if its not something simple first :slight_smile:

Your error line on your probe shoould be;
if(getTemperature()<25, “”, “NOC Room Temperature above 25 c, Please check A.C”)

Lebowski

Nice catch, exactly! :slight_smile:

Finally got it. I think I had to add “getTemperature()” in AVAILABLE section too. attached is image of working config.
Thank you every one for your suggestions and guidance which encourage me to solve the issue :slight_smile: ,

So I guess encouragement is the key to success :wink:
final_resukltok.JPG