ExportXMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Trivial
    • 7.0.33rc1, 8.0.1rc1, 8.2.0alpha1
    • Affects Version/s: 6.0.34rc1, 7.0.4rc1, 7.2.0alpha1
    • Component/s: Agent2 plugin (G)
    • None
    • Environment:
      Debian Linux (bullseye)

      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. aacraid-1.txt
          21 kB
        2. aacraid-2.txt
          21 kB
        3. megaraid-1.txt
          22 kB
        4. megaraid-2.txt
          22 kB

            Assignee:
            Zabbix Integration Team
            Reporter:
            Sergey Belyashov
            Team INT
            Votes:
            8 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2h
                2h