Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-9493

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

XMLWordPrintable

      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

        1. megaraid-2.txt
          22 kB
        2. megaraid-1.txt
          22 kB
        3. aacraid-2.txt
          21 kB
        4. aacraid-1.txt
          21 kB

            rzvejs Rudolfs Zvejs (Inactive)
            bsa Sergey Belyashov
            Team INT
            Votes:
            8 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: