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

zabbix-agent2 SMART plugin do not detect disks behind megaraid or aacraid (adaptec raid)

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 6.0.0
    • None
    • Agent2 plugin (N)
    • None
    • Debian Linux (bullseye)

    Description

      Steps to reproduce:

      1. server with adaptec RAID controller Series 7 or LSI MegaRAID
      2. zabbix_agent2 default installation
      3. sudoers config for zabbix user to use smartctl

      Result:
      Because smartctl -scan do not detect aacraid devices (even with -d sat too), so I use basic /usr/local/sbin/smartctl wrapper which prints on "-scan" option required list of devices using json format:

       

      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            2
          ],
          "svn_revision": "5155",
          "platform_info": "x86_64-linux-5.10.0-11-amd64",
          "build_info": "(local build)",
          "argv": [
            "smartctl",
            "--scan",
            "-j"
          ],
          "exit_status": 0
        },
        "devices": [
          {
            "name": "/dev/sda",
            "info_name": "/dev/sda",
            "type": "scsi",
            "protocol": "SCSI"
          },
          {
            "name": "/dev/bus/0",
            "info_name": "/dev/bus/0 [adaptec_disk_02]",
            "type": "aacraid,0,0,2",
            "protocol": "SCSI"
          },
          {
            "name": "/dev/bus/0",
            "info_name": "/dev/bus/0 [adaptec_disk_03]",
            "type": "aacraid,0,0,3",
            "protocol": "SCSI"
          }
        ]
      }

       

      Pure "/usr/sbin/smartctl -d aacraid,0,0,2 -a /dev/bus/0" returns SMART information about disk.

      Same with megaraid, but no wrapper is required.

      but zabbix_get results empty array:

       

      $ zabbix_get -s 127.0.0.1 -k'smart.disk.discovery'
      []

       

       

      Expected:
      list of drives as zabbix_get result

      Attachments

        Activity

          People

            zit Zabbix Integration Team
            bsa Sergey Belyashov
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: