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

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

    XMLWordPrintable

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. myagent.snmpwalk
          160 kB
        2. discovery.txt
          103 kB

        Activity

          People

            landy Mike Stupalov
            kernel_panic_ Paul Leclair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: