smartctl_exporter icon indicating copy to clipboard operation
smartctl_exporter copied to clipboard

feat: support for mine NVMe Volatile Memory Backup

Open k0ste opened this issue 10 months ago • 1 comments

This PR add's metric, when NVMe PLP is failed (bool). Further use of the drive is unsafe; if the power fails, the data may be lost.

Healthy device

[root@host]# smartctl --json --info --capabilities --health --attributes --tolerance=verypermissive --nocheck=standby --format=brief --log=error --device=nvme /dev/nvme1 | jq .smart_status
{
  "passed": true,
  "nvme": {
    "value": 0
  }
}

PLP failed

[root@host]# smartctl --json --info --capabilities --health --attributes --tolerance=verypermissive --nocheck=standby --format=brief --log=error --device=nvme /dev/nvme0 | jq .smart_status
{
  "passed": false,
  "nvme": {
    "value": 16,
    "spare_below_threshold": false,
    "temperature_above_or_below_threshold": false,
    "reliability_degraded": false,
    "media_read_only": false,
    "volatile_memory_backup_failed": true,
    "persistent_memory_region_unreliable": false,
    "other": 0
  }
}

k0ste avatar Apr 28 '25 12:04 k0ste