Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-10371

"Proxmox VE by HTTP" Template, Disk SMART status preprocessing should match "PASSED"

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • 8.0.0alpha2 (master)
    • 8.0.0alpha1
    • Templates (T)
    • None
    • 1

      https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/509126-proxmox-ve-by-http-template-disk-smart-status-preprocessing-should-match-passed

       

      I'm testing the new Zabbix 8.0 alpha and I found (at least in that release) that the "Proxmox VE by HTTP" template reports many SMART errors with my PVE servers.
      After further investigation I discovered that the SMART health status returned by the Proxmox API is not always "OK" but can be "PASSED" as well.

      I'd suggest following change in the Preprocessing of "Node {#NODE.NAME}: Disk {#DISK.NAME}: SMART status":

      Code:
      const idx = {
      'OK': 1,
      'PASSED': 1
      };

      return typeof idx[value] === 'undefined' ? 0 : idx[value];

            abakaldin Alexander Bakaldin
            broth-itk Bernhard Roth
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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