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

zabbix_agent2 smartctl broken since 7.0.9 because of ZBXNEXT-9686

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.19, 7.4.3
    • Agent2 plugin (G)
    • None

      The change in ZBXNEXT-9686 tries to gather the return code of sudo. But sudo also passes the return code of smartctl through.
      smartctl has many different return codes depending on the state of the disk. So it's not always an execution error.

      With current Zabbix Agent2 versions smart.disk.discovery works only if all disks are healthy. If there is one disk with smart errors than the whole discovery crashes.

       
      Working with 7.0.8: smart.disk.discovery_working_7.0.8.txt
      Broken since 7.0.9: smart.disk.discovery_broken_7.0.19.txt

       
      2 examples with smartctl outputs of the same host as above:
      disk healthy: smartctl_disk_healthy.txt
      disk with issues: smartctl_disk_with_issues.txt

            gliepins Guntis Liepins
            marcel.japel Marcel Jäpel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: