- 
    Problem report 
- 
    Resolution: Duplicate
- 
    Trivial 
- 
    None
- 
    5.4.4
- 
    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"
  }
}