Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4719

Wrong Firmware Discovery for microsens G6 devices and missing temperature sensor

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • None
    • Professional Edition
    • OS
    • None

    Description

      Hi there,

      I noticed that $config['mibs'][$mib]['version'][] references the wrong MIB in includes/definitions/mibs/microsens.inc.php.

      Attached is a patch that corrects this by updating the line to use the appropriate G6-SYSTEM-MIB.

      Additionally, the temperature is not being detected correctly. I'm not sure what's going on. The debug output shows:
       o G6-SYSTEM-MIB        systemTemperature [
      CMD[/usr/bin/snmpbulkwalk -v2c -c *** -Pud -Ih -OQUsb -m G6-SYSTEM-MIB -M /srv/observium/mibs/rfc:/srv/observium/mibs/net-snmp:/srv/observium/mibs/microsens 'udp':'host':'161' systemTemperature]CMD EXITCODE[0]
      CMD RUNTIME[0.5734s]
      STDOUT[
      systemTemperature = No Such Instance currently exists at this OID
      ]
      SNMP STATUS[FALSE]
      SNMP ERROR1000 - Failed response
      {{] }}

      The value for system temperature is available at systemTemperature.0. However, after updating microsens.inc.php accordingly, I get the following result:

       o G6-SYSTEM-MIB        systemTemperature.0 [
      CMD[/usr/bin/snmpbulkwalk -v2c -c *** -Pud -Ih -OQUsb -m G6-SYSTEM-MIB -M /srv/observium/mibs/rfc:/srv/observium/mibs/net-snmp:/srv/observium/mibs/microsens 'udp':'x-sw1016.lan.est1816.de':'161' systemTemperature.0]CMD EXITCODE[0]
      CMD RUNTIME[0.116s]
      STDOUT[
      systemTemperature.0 = 38
      ]
      SNMP STATUS[TRUE]
      Store in cache Table OID: G6-SYSTEM-MIB::systemTemperature.0
      Excluded by sensor 'systemTemperature.0' value '' is not numeric.
      ]

      Attachments

        Activity

          [OBS-4719] Wrong Firmware Discovery for microsens G6 devices and missing temperature sensor

          I changed to snmpget in r13261.

          landy Mike Stupalov added a comment - I changed to snmpget in r13261.

          My ticket description was perhaps a little unclear: I had only inserted .0 as a test. I had not edited the sensor definition at first. This is the first part of the debug (systemTemperature = No Such Instance currently exists at this OID) in the ticket.

          helge.wiethoff@thga.de Helge Wiethoff added a comment - My ticket description was perhaps a little unclear: I had only inserted .0 as a test. I had not edited the sensor definition at first. This is the first part of the debug ( systemTemperature = No Such Instance currently exists at this OID ) in the ticket.

          Remove this index from sensor definition, this exactly broke discovery of sensor.

          landy Mike Stupalov added a comment - Remove this index from sensor definition, this exactly broke discovery of sensor.

          Hi Mike,

          I have saved the requested snmpwalk in the attachment of this ticket. There I see the temperature value under the OID: .1.3.6.1.4.1.3181.10.6.1.30.104.0

          The change to .0 was made temporarily by me. I described the consequence in the ticket.

          helge.wiethoff@thga.de Helge Wiethoff added a comment - Hi Mike, I have saved the requested snmpwalk in the attachment of this ticket. There I see the temperature value under the OID: .1.3.6.1.4.1.3181.10.6.1.30.104.0 The change to .0 was made temporarily by me. I described the consequence in the ticket.
          helge.wiethoff@thga.de Helge Wiethoff made changes -
          Attachment New: microsens-g6-12.8.0a.snmpwalk [ 21083 ]
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]

          Version definition fixed in r13260.

          About temperature - this is part of your local changes (or old observium version).
          Our definitions should discovery sensor by G6-SYSTEM-MIB::systemTemperature (without index part .0).

          landy Mike Stupalov added a comment - Version definition fixed in r13260. About temperature - this is part of your local changes (or old observium version). Our definitions should discovery sensor by G6-SYSTEM-MIB::systemTemperature (without index part .0).

          Probably this is firmware/model specific issue. Please make and attach snmpdump, as Bot requested.

          landy Mike Stupalov added a comment - Probably this is firmware/model specific issue. Please make and attach snmpdump, as Bot requested.
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          helge.wiethoff@thga.de Helge Wiethoff created issue -

          People

            landy Mike Stupalov
            helge.wiethoff@thga.de Helge Wiethoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: