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

Details

    • Problem report
    • Status: Need info
    • Trivial
    • Resolution: Unresolved
    • 5.4.4
    • None
    • Agent2 plugin (N)
    • None

    Description

      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"
        }
      }
      
      

       

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: