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

Smartctl failed to get device data: unknown error from smartctl

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.4.4
    • Agent2 plugin (N)
    • None

      I use the official "SMART by Zabbix agent 2".

       

      One host I get the following error:

       

      # zabbix_agent2 -t smart.disk.get 
      smart.disk.get [m|ZBX_NOTSUPPORTED] [Smartctl failed to get device data: unknown error from smartctl.]

       

       

      Therefore the status in Zabbix for Device Discovery is "Not supported".

       

      I attached the full output from smartctl.

       

      I think the problem is that smartctl is returning a non-zero exit code for a device:

       

      # /usr/sbin/smartctl -a /dev/hdd -j
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            2
          ],
          "svn_revision": "5155",
          "platform_info": "x86_64-linux-5.4.128-1-pve",
          "build_info": "(local build)",
          "argv": [
            "smartctl",
            "-a",
            "/dev/hdd",
            "-j"
          ],
          "exit_status": 2
        },
        "device": {
          "name": "/dev/hdd",
          "info_name": "/dev/hdd",
          "type": "ata",
          "protocol": "ATA"
        }
      }
      
      

       

       

        1. smart.disk.get.log
          76 kB
        2. smartctl.txt
          7 kB
        3. zabbix_agent2.log
          202 kB

            aigars.kadikis Aigars Kadikis
            pah Pah
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: