Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19910

IPMI plugin permits "infinity" JSON values for sensors thresholds

    XMLWordPrintable

Details

    • Patch request
    • Status: Manual Test Failed
    • Trivial
    • Resolution: Unresolved
    • 5.4.4
    • None
    • Server (S), Templates (T)
    • None
    • OS: Debian 10
      Docker: 20.10.6
      Docker image: zabbix/zabbix-server-mysql:5.4.4-alpine
      Hardware: HP ProLiant DL160 G6
    • Team INT
    • Sprint 82 (Nov 2021)
    • 1

    Description

      Template Chassis by IPMI has a item prototype "Get IPMI" with key ipmi.get. That item used for a dependency items and discovery rules. IPMI plugin returns json with sensors data and permits "inf" as sensor thresholds value, but zabbix json processor does not.

      As result, no one discovery rules from template does not work.

      Example of problem sensor:

      {
        "id": "FAN6_OUTLET",
        "name": "(29.12).FAN6_OUTLET",
        "sensor": {
          "type": 4,
          "text": "fan"
        },
        "reading": {
          "type": 1,
          "text": "threshold"
        },
        "state": {
          "state": 0,
          "text": ""
        },
        "value": 1998.401279,
        "units": "RPM",
        "threshold": {
          "lower": {
            "crit": inf
          },
          "upper": {
            "crit": 999.200639
          }
        }
      }
      

      Full result of ipmi.get command attached as json.txtfile

      ~# ipmitool sensor list | grep FAN
      FAN1_OUTLET      | 3377.580   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN1_INLET       | 4134.623   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN2_OUTLET      | 3377.580   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN2_INLET       | 4134.623   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN3_INLET       | 4134.623   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN3_OUTLET      | 3285.043   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN4_INLET       | 4064.545   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN4_OUTLET      | 3285.043   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN5_INLET       | 2422.305   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN5_OUTLET      | 1981.886   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN6_INLET       | 2398.082   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      FAN6_OUTLET      | 1998.401   | RPM        | ok    | na        | inf       | na        | na        | 999.201   | na        
      
      

      Detail for one of:

      ~# ipmitool sensor get FAN1_INLET
      Locating sensor record...
      Sensor ID              : FAN1_INLET (0x16)
       Entity ID             : 29.2
       Sensor Type (Threshold)  : Fan
       Sensor Reading        : 4134.623 (+/- inf) RPM
       Status                : ok
       Lower Non-Recoverable : na
       Lower Critical        : inf
       Lower Non-Critical    : na
       Upper Non-Critical    : na
       Upper Critical        : 999.201
       Upper Non-Recoverable : na
       Positive Hysteresis   : Unspecified
       Negative Hysteresis   : Unspecified
       Assertion Events      : 
       Assertions Enabled    : lcr- ucr+ 
       Deassertions Enabled  : lcr- ucr+ 
      

      I think IPMI plugin must filter out sensors with "inf" thresholds, until zabbix JSON processor supports IEEE754

       

       

      Attachments

        Activity

          People

            abiba Andrew Biba
            gknw Artem
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: