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

Discovery error on APC Smart-UPS SRT 5000 UPS 10.1 (1D1020)

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • CE-21.10
    • Discovery
    • OS: CentOS 7.9.2009, PHP 8.0.19

    Description

      Version of Observium: CE 22.5.12042

      (note that I could not select CE-22.5 because it doesn't exist in the options for "Affects Version/s").

       

      Upon adding a new APC UPS SRT 5k, the discovery of it is throwing the following errors:

      CMD[/usr/bin/snmpbulkwalk -v3 -l 'authPriv' -n '' -x 'AES' -X 'hidden' -a 'SHA' -A 'hidden' -u 'hidden' -Pud -OQUs -m PowerNet-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/apc 'udp':'17hig2au01.cmhc.org':'161' uioSensorStatusTable]

      Wrong process status! Issue in proc_get_status(), see: https://bugs.php.net/bug.php?id=69014
      CMD EXITCODE[0]
      CMD RUNTIME[0.0994s]
      STDOUT[
      uioSensorStatusPortID.1.1 = 1
      uioSensorStatusSensorID.1.1 = 1
      uioSensorStatusSensorName.1.1 = "Port 1 Temp 1"
      uioSensorStatusSensorLocation.1.1 = "Port 1"
      uioSensorStatusTemperatureDegF.1.1 = 68
      uioSensorStatusTemperatureDegC.1.1 = 20
      uioSensorStatusHumidity.1.1 = -1
      uioSensorStatusViolationStatus.1.1 = 0
      uioSensorStatusAlarmStatus.1.1 = uioNormal
      uioSensorStatusCommStatus.1.1 = commsOK
      ]
      SNMP STATUS[TRUE]
      PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /opt/observium/includes/discovery/sensors/powernet-mib.inc.php:1438
      Stack trace:
      #0 /opt/observium/includes/discovery/sensors/powernet-mib.inc.php(1438): in_array('Port 1 Temp 1', NULL)
      #1 /opt/observium/includes/include-dir-mib.inc.php(48): include('/opt/observium/...')
      #2 /opt/observium/includes/discovery/sensors.inc.php(52): include('/opt/observium/...')
      #3 /opt/observium/includes/discovery/functions.inc.php(977): include('/opt/observium/...')
      #4 /opt/observium/discovery.php(198): discover_device(Array, Array)
      #5 {main}
        thrown in /opt/observium/includes/discovery/sensors/powernet-mib.inc.php on line 1438

      Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /opt/observium/includes/discovery/sensors/powernet-mib.inc.php:1438
      Stack trace:
      #0 /opt/observium/includes/discovery/sensors/powernet-mib.inc.php(1438): in_array('Port 1 Temp 1', NULL)
      #1 /opt/observium/includes/include-dir-mib.inc.php(48): include('/opt/observium/...')
      #2 /opt/observium/includes/discovery/sensors.inc.php(52): include('/opt/observium/...')
      #3 /opt/observium/includes/discovery/functions.inc.php(977): include('/opt/observium/...')
      #4 /opt/observium/discovery.php(198): discover_device(Array, Array)
      #5 {main}
        thrown in /opt/observium/includes/discovery/sensors/powernet-mib.inc.php on line 1438

       

       

       

      Attachments

        1. discovery.txt
          103 kB
        2. myagent.snmpwalk
          160 kB

        Activity

          [OBS-4137] Discovery error on APC Smart-UPS SRT 5000 UPS 10.1 (1D1020)

          I'm on 22.5 now. I will have to downgrade PHP then.

           

          kernel_panic_ Paul Leclair added a comment - I'm on 22.5 now. I will have to downgrade PHP then.  

          PHP 8.x issue.

          Fixed in r12099.

          For CE currently it is recommended to install an earlier php version 7.2 - 7.4.
          Current latest CE version is 22.5.

          landy Mike Stupalov added a comment - PHP 8.x issue. Fixed in r12099. For CE currently it is recommended to install an earlier php version 7.2 - 7.4. Current latest CE version is 22.5.

          I have attached the discovery debug log and the snmpwalk log.

          kernel_panic_ Paul Leclair added a comment - I have attached the discovery debug log and the snmpwalk log.

          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 -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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 -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -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
            kernel_panic_ Paul Leclair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: