mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
965204547a
I've added the following metrics for the NVMe drives: smart_status, critical_warning, available_spare, media_errors
6 lines
191 B
Bash
Executable file
6 lines
191 B
Bash
Executable file
#!/bin/sh
|
|
|
|
DISKS="$(lsblk -l|egrep -oe '(sd[a-z]|nvme[0-9])'|sed -e 's/^/ - \/dev\//'| uniq)"
|
|
echo "$DISKS" >> smartctl_exporter.yaml
|
|
|
|
/bin/smartctl_exporter -config=/smartctl_exporter.yaml
|