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

IPMI chassis en power supply support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • Unix Agent

    Description

      The function parse_ipmitool_sensor() is not working correctly due to the empty discrete value in includes/definitions/entities/sensors.inc.php.

      The following statements in parse_ipmitool_sensor() (includes/entities/sensor.inc.php) returns true if the $unit is discrete:

      if (isset($config['ipmi_unit'][$unit])) {
      

      and the code below (from OBS-3028) will never run:

      } elseif ($unit == 'discrete') {
      

      because an empty value is set in the array, so isset() returns true.

      The attached patch will remove empty value from the array. Another option could be checking is there is an actual value in the unit-array:

      if (isset($config['ipmi_unit'][$unit]) && $config['ipmi_unit'][$unit]) {
      

      Attachments

        1. poller-r730.txt
          329 kB
        2. poller.log
          111 kB
        3. poller_patched.log
          115 kB
        4. ipmitool-sensors-r730.txt
          21 kB
        5. ipmitool-sdr-r730.txt
          69 kB
        6. ipmi_sensors.diff
          3 kB
        7. ipmi_sensors.diff
          3 kB
        8. ipmi_patch_rework.diff
          4 kB
        9. ipmi_patch_bernard.diff
          4 kB
        10. ipmi_discrete.diff
          0.5 kB

        Issue Links

          Activity

            People

              landy Mike Stupalov
              veldenb Bernard van der Velden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: