mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-23 01:43:07 +01:00
7 lines
191 B
Bash
7 lines
191 B
Bash
|
#!/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
|