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.

          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.

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          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: