Ad Widget

Collapse

Zabbix Agent 2 SMART plugin on SAS drive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • n1am
    Junior Member
    • May 2017
    • 4

    #1

    Zabbix Agent 2 SMART plugin on SAS drive

    I'm using Zabbix Agent 2 7.0 LTS to monitor the SMART attributes of a server that uses SATA, SAS (using an HBA, not a RAID card), and NVME disks:
    Code:
    /dev/sda -d sat # /dev/sda [SAT], ATA device
    /dev/sdb -d sat # /dev/sdb [SAT], ATA device
    /dev/sdc -d scsi # /dev/sdc, SCSI device
    /dev/sdd -d scsi # /dev/sdd, SCSI device
    /dev/sde -d scsi # /dev/sde, SCSI device
    /dev/sdf -d scsi # /dev/sdf, SCSI device
    /dev/sdg -d scsi # /dev/sdg, SCSI device
    /dev/sdh -d scsi # /dev/sdh, SCSI device
    /dev/sdi -d scsi # /dev/sdi, SCSI device
    /dev/sdj -d scsi # /dev/sdj, SCSI device
    /dev/nvme0 -d nvme # /dev/nvme0, NVMe device
    /dev/nvme1 -d nvme # /dev/nvme1, NVMe device
    The SMART plugin on SAS drive reports only a few attribute (temperature, power on time, serial), for example:
    Code:
    {
    "critical_warning": 0,
    "disk_type": "hdd",
    "error": "",
    "exit_status": 0,
    "firmware_version": "",
    "media_errors": 0,
    "model_name": "",
    "percentage_used": 0,
    "power_on_time": 35592,
    "self_test_in_progress": null,
    "self_test_passed": null,
    "serial_number": "ZCXXXXXXX",
    "temperature": 33
    }
    ​
    As you can see the model_name, firmware_version are not parsed correctly.

    Using smartctl you can extract much more information for example: scsi_grown_defect_list, scsi_vendor, scsi_product.
    This is the output of smartctl on a SAS drive:
    Code:
    "device": {
    "name": "/dev/sdd",
    "info_name": "/dev/sdd",
    "type": "scsi",
    "protocol": "SCSI"
    },
    "scsi_vendor": "SEAGATE",
    "scsi_product": "ST4000NM0125",
    "scsi_model_name": "SEAGATE ST4000NM0125",
    "scsi_revision": "E004",
    "scsi_version": "SPC-4",
    "user_capacity": {
    "blocks": 7814037168,
    "bytes": 4000787030016
    },
    "logical_block_size": 512,
    "physical_block_size": 4096,
    "scsi_lb_provisioning": {
    "name": "fully provisioned",
    "value": 0,
    "management_enabled": {
    "name": "LBPME",
    "value": 0
    },
    "read_zeros": {
    "name": "LBPRZ",
    "value": 0
    }
    },
    "rotation_rate": 7200,
    "form_factor": {
    "scsi_value": 2,
    "name": "3.5 inches"
    },
    "logical_unit_id": "0x5000c500af5e42df",
    "serial_number": "ZCXXXXXXX",
    "device_type": {
    "scsi_terminology": "Peripheral Device Type [PDT]",
    "scsi_value": 0,
    "name": "disk"
    },
    "scsi_transport_protocol": {
    "name": "SAS (SPL-4)",
    "value": 6
    },
    "smart_support": {
    "available": true,
    "enabled": true
    },
    "temperature_warning": {
    "enabled": true
    },
    "smart_status": {
    "passed": true
    },
    "temperature": {
    "current": 33,
    "drive_trip": 60
    },
    "power_on_time": {
    "hours": 35635,
    "minutes": 30
    },
    "scsi_start_stop_cycle_counter": {
    "year_of_manufacture": "2020",
    "week_of_manufacture": "05",
    "specified_cycle_count_over_device_lifetime": 10000,
    "accumulated_start_stop_cycles": 111,
    "specified_load_unload_count_over_device_lifetime" : 300000,
    "accumulated_load_unload_cycles": 3229
    },
    "scsi_grown_defect_list": 0,
    "scsi_error_counter_log": {
    "read": {
    "errors_corrected_by_eccfast": 475614648,
    "errors_corrected_by_eccdelayed": 0,
    "errors_corrected_by_rereads_rewrites": 0,
    "total_errors_corrected": 475614648,
    "correction_algorithm_invocations": 0,
    "gigabytes_processed": "18666.797",
    "total_uncorrected_errors": 0
    },
    "write": {
    "errors_corrected_by_eccfast": 0,
    "errors_corrected_by_eccdelayed": 0,
    "errors_corrected_by_rereads_rewrites": 0,
    "total_errors_corrected": 0,
    "correction_algorithm_invocations": 0,
    "gigabytes_processed": "26268.534",
    "total_uncorrected_errors": 0
    },
    "verify": {
    "errors_corrected_by_eccfast": 21839402,
    "errors_corrected_by_eccdelayed": 0,
    "errors_corrected_by_rereads_rewrites": 0,
    "total_errors_corrected": 21839402,
    "correction_algorithm_invocations": 0,
    "gigabytes_processed": "34.829",
    "total_uncorrected_errors": 0
    }
    }
    }​
    ​
    I imagine that without touching the source code of the Zabbix agent binary, it’s not possible to extract or map any additional information.

  • guntis_liepins
    Junior Member
    • Oct 2025
    • 12

    #2
    I created a bug https://support.zabbix.com/browse/ZBX-27356#
    It would be nice if it would be possible to attach smartctl output example for all disk types,to get additional data for testing and comparison.

    Comment

    • n1am
      Junior Member
      • May 2017
      • 4

      #3
      Originally posted by guntis_liepins
      I created a bug https://support.zabbix.com/browse/ZBX-27356#
      It would be nice if it would be possible to attach smartctl output example for all disk types,to get additional data for testing and comparison.
      Thanks for the reply.
      I'm attaching a sample of smartctl output, in json format, for all disk type (NVME, SAS, SATA). The command used is "smartctl -a /dev/<DEVICE> -j". This is the same command used by the SMART plugin to retrieve the data.
      The only information redacted is the drive serial number.

      SATA

      Code:
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            3
          ],
          "svn_revision": "5338",
          "platform_info": "x86_64-linux-6.8.12-13-pve",
          "build_info": "(local build)",
          "argv": [
            "smartctl",
            "-a",
            "/dev/sda",
            "-j"
          ],
          "drive_database_version": {
            "string": "7.3/6061"
          },
          "exit_status": 0
        },
        "local_time": {
          "time_t": 1767963400,
          "asctime": "Fri Jan  9 13:56:40 2026 CET"
        },
        "device": {
          "name": "/dev/sda",
          "info_name": "/dev/sda [SAT]",
          "type": "sat",
          "protocol": "ATA"
        },
        "model_family": "Samsung based SSDs",
        "model_name": "SAMSUNG MZ7LH240HAHQ-00005",
        "serial_number": "S45XXXXXXXXXX",
        "wwn": {
          "naa": 5,
          "oui": 9528,
          "id": 60293272458
        },
        "firmware_version": "HXT7404Q",
        "user_capacity": {
          "blocks": 468862128,
          "bytes": 240057409536
        },
        "logical_block_size": 512,
        "physical_block_size": 4096,
        "rotation_rate": 0,
        "form_factor": {
          "ata_value": 3,
          "name": "2.5 inches"
        },
        "trim": {
          "supported": true,
          "deterministic": true,
          "zeroed": true
        },
        "in_smartctl_database": true,
        "ata_version": {
          "string": "ACS-4 T13/BSR INCITS 529 revision 5",
          "major_value": 4092,
          "minor_value": 94
        },
        "sata_version": {
          "string": "SATA 3.2",
          "value": 255
        },
        "interface_speed": {
          "max": {
            "sata_value": 14,
            "string": "6.0 Gb/s",
            "units_per_second": 60,
            "bits_per_unit": 100000000
          },
          "current": {
            "sata_value": 3,
            "string": "6.0 Gb/s",
            "units_per_second": 60,
            "bits_per_unit": 100000000
          }
        },
        "smart_support": {
          "available": true,
          "enabled": true
        },
        "smart_status": {
          "passed": true
        },
        "ata_smart_data": {
          "offline_data_collection": {
            "status": {
              "value": 0,
              "string": "was never started"
            },
            "completion_seconds": 0
          },
          "self_test": {
            "status": {
              "value": 0,
              "string": "completed without error",
              "passed": true
            },
            "polling_minutes": {
              "short": 2,
              "extended": 25
            }
          },
          "capabilities": {
            "values": [
              83,
              3
            ],
            "exec_offline_immediate_supported": true,
            "offline_is_aborted_upon_new_cmd": false,
            "offline_surface_scan_supported": false,
            "self_tests_supported": true,
            "conveyance_self_test_supported": false,
            "selective_self_test_supported": true,
            "attribute_autosave_enabled": true,
            "error_logging_supported": true,
            "gp_logging_supported": true
          }
        },
        "ata_sct_capabilities": {
          "value": 61,
          "error_recovery_control_supported": true,
          "feature_control_supported": true,
          "data_table_supported": true
        },
        "ata_smart_attributes": {
          "revision": 1,
          "table": [
            {
              "id": 5,
              "name": "Reallocated_Sector_Ct",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 51,
                "string": "PO--CK ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 9,
              "name": "Power_On_Hours",
              "value": 93,
              "worst": 93,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 34244,
                "string": "34244"
              }
            },
            {
              "id": 12,
              "name": "Power_Cycle_Count",
              "value": 99,
              "worst": 99,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 55,
                "string": "55"
              }
            },
            {
              "id": 177,
              "name": "Wear_Leveling_Count",
              "value": 94,
              "worst": 94,
              "thresh": 5,
              "when_failed": "",
              "flags": {
                "value": 19,
                "string": "PO--C- ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 382,
                "string": "382"
              }
            },
            {
              "id": 179,
              "name": "Used_Rsvd_Blk_Cnt_Tot",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 19,
                "string": "PO--C- ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 180,
              "name": "Unused_Rsvd_Blk_Cnt_Tot",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 19,
                "string": "PO--C- ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 719,
                "string": "719"
              }
            },
            {
              "id": 181,
              "name": "Program_Fail_Cnt_Total",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 182,
              "name": "Erase_Fail_Count_Total",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 183,
              "name": "Runtime_Bad_Block",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 19,
                "string": "PO--C- ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 184,
              "name": "End-to-End_Error",
              "value": 100,
              "worst": 100,
              "thresh": 97,
              "when_failed": "",
              "flags": {
                "value": 51,
                "string": "PO--CK ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 187,
              "name": "Uncorrectable_Error_Cnt",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 190,
              "name": "Airflow_Temperature_Cel",
              "value": 63,
              "worst": 50,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 37,
                "string": "37"
              }
            },
            {
              "id": 194,
              "name": "Temperature_Celsius",
              "value": 63,
              "worst": 50,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 34,
                "string": "-O---K ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": false,
                "auto_keep": true
              },
              "raw": {
                "value": 214749610021,
                "string": "37 (Min/Max 19/50)"
              }
            },
            {
              "id": 195,
              "name": "ECC_Error_Rate",
              "value": 200,
              "worst": 200,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 26,
                "string": "-O-RC- ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": true,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 197,
              "name": "Current_Pending_Sector",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 199,
              "name": "CRC_Error_Count",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 62,
                "string": "-OSRCK ",
                "prefailure": false,
                "updated_online": true,
                "performance": true,
                "error_rate": true,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 202,
              "name": "Exception_Mode_Status",
              "value": 100,
              "worst": 100,
              "thresh": 10,
              "when_failed": "",
              "flags": {
                "value": 51,
                "string": "PO--CK ",
                "prefailure": true,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 235,
              "name": "POR_Recovery_Count",
              "value": 99,
              "worst": 99,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 18,
                "string": "-O--C- ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": false
              },
              "raw": {
                "value": 17,
                "string": "17"
              }
            },
            {
              "id": 241,
              "name": "Total_LBAs_Written",
              "value": 99,
              "worst": 99,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 50603289454,
                "string": "50603289454"
              }
            },
            {
              "id": 242,
              "name": "Total_LBAs_Read",
              "value": 99,
              "worst": 99,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 1072863356,
                "string": "1072863356"
              }
            },
            {
              "id": 243,
              "name": "SATA_Downshift_Ct",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 244,
              "name": "Thermal_Throttle_St",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 0,
                "string": "0"
              }
            },
            {
              "id": 245,
              "name": "Timed_Workld_Media_Wear",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 65535,
                "string": "65535"
              }
            },
            {
              "id": 246,
              "name": "Timed_Workld_RdWr_Ratio",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 65535,
                "string": "65535"
              }
            },
            {
              "id": 247,
              "name": "Timed_Workld_Timer",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 65535,
                "string": "65535"
              }
            },
            {
              "id": 251,
              "name": "NAND_Writes",
              "value": 100,
              "worst": 100,
              "thresh": 0,
              "when_failed": "",
              "flags": {
                "value": 50,
                "string": "-O--CK ",
                "prefailure": false,
                "updated_online": true,
                "performance": false,
                "error_rate": false,
                "event_count": true,
                "auto_keep": true
              },
              "raw": {
                "value": 203776836480,
                "string": "203776836480"
              }
            }
          ]
        },
        "power_on_time": {
          "hours": 34244
        },
        "power_cycle_count": 55,
        "temperature": {
          "current": 37
        },
        "ata_smart_error_log": {
          "summary": {
            "revision": 1,
            "count": 0
          }
        },
        "ata_smart_self_test_log": {
          "standard": {
            "revision": 1,
            "count": 0
          }
        },
        "ata_smart_selective_self_test_log": {
          "revision": 1,
          "table": [
            {
              "lba_min": 0,
              "lba_max": 0,
              "status": {
                "value": 0,
                "string": "Not_testing"
              }
            },
            {
              "lba_min": 0,
              "lba_max": 0,
              "status": {
                "value": 0,
                "string": "Not_testing"
              }
            },
            {
              "lba_min": 0,
              "lba_max": 0,
              "status": {
                "value": 0,
                "string": "Not_testing"
              }
            },
            {
              "lba_min": 0,
              "lba_max": 0,
              "status": {
                "value": 0,
                "string": "Not_testing"
              }
            },
            {
              "lba_min": 0,
              "lba_max": 0,
              "status": {
                "value": 0,
                "string": "Not_testing"
              }
            }
          ],
          "flags": {
            "value": 0,
            "remainder_scan_enabled": false
          },
          "power_up_scan_resume_minutes": 0
        }
      }
      SAS

      Code:
      SAS
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            3
          ],
          "svn_revision": "5338",
          "platform_info": "x86_64-linux-6.8.12-13-pve",
          "build_info": "(local build)",
          "argv": [
            "smartctl",
            "-a",
            "/dev/sdd",
            "-j"
          ],
          "exit_status": 0
        },
        "local_time": {
          "time_t": 1767963458,
          "asctime": "Fri Jan  9 13:57:38 2026 CET"
        },
        "device": {
          "name": "/dev/sdd",
          "info_name": "/dev/sdd",
          "type": "scsi",
          "protocol": "SCSI"
        },
        "scsi_vendor": "SEAGATE",
        "scsi_product": "ST4000NM0125",
        "scsi_model_name": "SEAGATE ST4000NM0125",
        "scsi_revision": "E004",
        "scsi_version": "SPC-4",
        "user_capacity": {
          "blocks": 7814037168,
          "bytes": 4000787030016
        },
        "logical_block_size": 512,
        "physical_block_size": 4096,
        "scsi_lb_provisioning": {
          "name": "fully provisioned",
          "value": 0,
          "management_enabled": {
            "name": "LBPME",
            "value": 0
          },
          "read_zeros": {
            "name": "LBPRZ",
            "value": 0
          }
        },
        "rotation_rate": 7200,
        "form_factor": {
          "scsi_value": 2,
          "name": "3.5 inches"
        },
        "logical_unit_id": "0x5000c500af5e42df",
        "serial_number": "ZCXXXXXXXXXXXXXX",
        "device_type": {
          "scsi_terminology": "Peripheral Device Type [PDT]",
          "scsi_value": 0,
          "name": "disk"
        },
        "scsi_transport_protocol": {
          "name": "SAS (SPL-4)",
          "value": 6
        },
        "smart_support": {
          "available": true,
          "enabled": true
        },
        "temperature_warning": {
          "enabled": true
        },
        "smart_status": {
          "passed": true
        },
        "temperature": {
          "current": 33,
          "drive_trip": 60
        },
        "power_on_time": {
          "hours": 35686,
          "minutes": 23
        },
        "scsi_start_stop_cycle_counter": {
          "year_of_manufacture": "2020",
          "week_of_manufacture": "05",
          "specified_cycle_count_over_device_lifetime": 10000,
          "accumulated_start_stop_cycles": 111,
          "specified_load_unload_count_over_device_lifetime": 300000,
          "accumulated_load_unload_cycles": 3232
        },
        "scsi_grown_defect_list": 0,
        "scsi_error_counter_log": {
          "read": {
            "errors_corrected_by_eccfast": 517768842,
            "errors_corrected_by_eccdelayed": 0,
            "errors_corrected_by_rereads_rewrites": 0,
            "total_errors_corrected": 517768842,
            "correction_algorithm_invocations": 0,
            "gigabytes_processed": "18754.643",
            "total_uncorrected_errors": 0
          },
          "write": {
            "errors_corrected_by_eccfast": 0,
            "errors_corrected_by_eccdelayed": 0,
            "errors_corrected_by_rereads_rewrites": 0,
            "total_errors_corrected": 0,
            "correction_algorithm_invocations": 0,
            "gigabytes_processed": "26700.027",
            "total_uncorrected_errors": 0
          },
          "verify": {
            "errors_corrected_by_eccfast": 21918105,
            "errors_corrected_by_eccdelayed": 0,
            "errors_corrected_by_rereads_rewrites": 0,
            "total_errors_corrected": 21918105,
            "correction_algorithm_invocations": 0,
            "gigabytes_processed": "34.958",
            "total_uncorrected_errors": 0
          }
        }
      }
      NVME

      Code:
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            3
          ],
          "svn_revision": "5338",
          "platform_info": "x86_64-linux-6.8.12-13-pve",
          "build_info": "(local build)",
          "argv": [
            "smartctl",
            "-a",
            "/dev/nvme0",
            "-j"
          ],
          "exit_status": 0
        },
        "local_time": {
          "time_t": 1767963486,
          "asctime": "Fri Jan  9 13:58:06 2026 CET"
        },
        "device": {
          "name": "/dev/nvme0",
          "info_name": "/dev/nvme0",
          "type": "nvme",
          "protocol": "NVMe"
        },
        "model_name": "INTEL SSDPEL1C100GA",
        "serial_number": "PHXXXXXXXXXXXXXX",
        "firmware_version": "E2010450",
        "nvme_pci_vendor": {
          "id": 32902,
          "subsystem_id": 32902
        },
        "nvme_ieee_oui_identifier": 6083300,
        "nvme_controller_id": 0,
        "nvme_version": {
          "string": "<1.2",
          "value": 0
        },
        "nvme_number_of_namespaces": 1,
        "nvme_namespaces": [
          {
            "id": 1,
            "size": {
              "blocks": 195371568,
              "bytes": 100030242816
            },
            "capacity": {
              "blocks": 195371568,
              "bytes": 100030242816
            },
            "utilization": {
              "blocks": 195371568,
              "bytes": 100030242816
            },
            "formatted_lba_size": 512,
            "eui64": {
              "oui": 6083300,
              "ext_id": 695078617344
            }
          }
        ],
        "user_capacity": {
          "blocks": 195371568,
          "bytes": 100030242816
        },
        "logical_block_size": 512,
        "smart_support": {
          "available": true,
          "enabled": true
        },
        "smart_status": {
          "passed": true,
          "nvme": {
            "value": 0
          }
        },
        "nvme_smart_health_information_log": {
          "critical_warning": 0,
          "temperature": 36,
          "available_spare": 100,
          "available_spare_threshold": 0,
          "percentage_used": 0,
          "data_units_read": 385852,
          "data_units_written": 199016377,
          "host_reads": 2969719,
          "host_writes": 3064113497,
          "controller_busy_time": 1656,
          "power_cycles": 53,
          "power_on_hours": 34241,
          "unsafe_shutdowns": 14,
          "media_errors": 0,
          "num_err_log_entries": 0
        },
        "temperature": {
          "current": 36
        },
        "power_cycle_count": 53,
        "power_on_time": {
          "hours": 34241
        }
      }
      These fields name: scsi_vendor, scsi_product, scsi_model_name differs from the SATA and NVME counterpart.
      The self_test return null on a SAS drive. On SATA the field is self_test.status, on a SAS/NVME drive is smart_status.passed.
      For a SAS disk, it would be convenient to be able to extract this information as well: scsi_grown_defect_list, total_uncorrected_errors (in read, write, verify)

      Instead, for an NVMe disk, I think it would be convenient to be able to monitor these parameters: nvme_smart_health_information_log.critical_warning , nvme_smart_health_information_log.media_errors and nvme_smart_health_information_log.num_err_log_entr ies.​

      Comment

      Working...