Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. How to convert lmTempSensorsValue (gauge 32) to celsius ?

How to convert lmTempSensorsValue (gauge 32) to celsius ?

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 11.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    vinhnt26
    wrote on last edited by
    #1

    Hi all,
    I run snmpwalk to get lmTemSensorsValue, it return:

    LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 43000
    LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 34000
    LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 36000
    LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 32000
    LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 35000
    LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 36000
    LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 37000
    LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 35000
    LM-SENSORS-MIB::lmTempSensorsValue.9 = Gauge32: 34000
    LM-SENSORS-MIB::lmTempSensorsValue.10 = Gauge32: 37000

    Then i check with "sensors" command,

    coretemp-isa-0000
    Adapter: ISA adapter
    Physical id 0: +43.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 0:        +38.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 1:        +37.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 2:        +38.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 3:        +36.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 4:        +41.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 5:        +39.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 6:        +38.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 7:        +43.0°C  (high = +83.0°C, crit = +105.0°C)
     

    coretemp-isa-0008
    Adapter: ISA adapter
    Physical id 1: +37.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 0:        +34.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 1:        +36.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 2:        +32.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 3:        +35.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 4:        +36.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 5:        +37.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 6:        +36.0°C  (high = +83.0°C, crit = +105.0°C) 
    Core 7:        +35.0°C  (high = +83.0°C, crit = +105.0°C)

    So, how to convert snmp value to celsius value?

    Thanks.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      it seems that lmTempSensorsValue returns temperaure mesaured in 1/1000th of centigrade. The following simple transformation script on DCI will convert it:

      return $1 / 1000;

      Best regards,
      Victor

      1 Reply Last reply
      0
      • V
        V
        vinhnt26
        wrote on last edited by
        #3

        Thanks Victor.  🙂

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups