Ad Widget

Collapse

Divide item value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beye91
    Junior Member
    • Feb 2018
    • 14

    #1

    Divide item value

    Hi,

    is it possible to divide a vlaue of an item.

    Currently I am trying to get SNMP values from a temperature sensor
    but the value looks like 256 or 275 instead of 25.6 or 27.5 .

    Does anyone how it can be solved?
  • matn
    Junior Member
    • Mar 2018
    • 2

    #2
    Hello

    Did you find a soulution for your problem?

    //Matn

    Comment

    • tcilmo
      Senior Member
      • Nov 2016
      • 122

      #3
      Originally posted by beye91
      Hi,

      is it possible to divide a vlaue of an item.

      Currently I am trying to get SNMP values from a temperature sensor
      but the value looks like 256 or 275 instead of 25.6 or 27.5 .

      Does anyone how it can be solved?
      In the item configuration you can click on preprocessing and use a customer multiplier to divide a value, but I am not sure if that what you want. Instead, take a look at your item and set the (Type of information) to numeric float if you have not done so already. That might get you where you need to be.

      Comment

      • matn
        Junior Member
        • Mar 2018
        • 2

        #4
        Thank you tcilmo

        It worked, after adding the custom multiplier to the item the value changed from 162 to 16,2

        //Matn

        Comment

        • EmmBee
          Junior Member
          • Jan 2019
          • 23

          #5
          You have to add 0.1 number to configuration/hosts/yourHost/item/bookmark - Preprocessing/as name click - custom multiplier and fill parameter 0.1

          Comment

          • hakanozanlagan
            Member
            • Nov 2021
            • 35

            #6
            it's been long time but for information

            in preprocessing tab you can select "java script" and add Parameters as " return (value /100) " value is item value. this basic script returns item value/100 or whatever you want .

            Comment

            Working...