Ad Widget

Collapse

Right functional string for temperature sensor,SNMP show integer,i need decimal point

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EmmBee
    Junior Member
    • Jan 2019
    • 23

    #1

    Right functional string for temperature sensor,SNMP show integer,i need decimal point

    Hello,
    i am reading values from temperature sensor connected to Poseidon model 4002.
    But snmp value is integer not with decimal point.
    There are 3 numbers for example 225 = 22.5 °C.
    I need write right expression under trigger which will show right values to my zabbix, not 225 °C but 22.5 °C.

    Need i divide number by 10? Or what.

    My actual expression which is showed in atachment is:

    {Template_Poseidon_009:sensValueRaw.4.max(60)}>280


    Attached Files
  • sludge3000
    Junior Member
    • Jan 2019
    • 12

    #2
    Hello EmmBee,

    First thing to confirm is how is the data presented by the Poseidon device. You should be able to verify this in the MIB file, but if it's appearing as an integer in Zabbix, it's probably an integer. It may be worth raising a request with Posedion and ask them to present this information in the correct format.
    If it is a float then ensure that your Zabbix SNMP item is correctly configured with "Type of information = Numeric (float)".

    And finally, yes, you can use division in the trigger statement to divide by 10. Alternatively, just multiple the trigger temperature by ten and enter that as the trigger value.

    Hope that helps,
    sludge3000

    Comment

    • EmmBee
      Junior Member
      • Jan 2019
      • 23

      #3
      Ok, thanks to advices.

      Chain which helps of right sollution is this too - https://www.zabbix.com/forum/zabbix-...ide-item-value

      You have to add 0.1 number to configuration/hosts/yourHost/item/bookmark - Preprocessing/as name click - custom multiplier and fill parameter 0.1 (attachment)
      Attached Files

      Comment

      Working...