G
G
gremlintv22019-02-25 16:44:16
Solid State Drives
gremlintv2, 2019-02-25 16:44:16

Can you recommend a tool for monitoring the SMART status of an NVME disk?

Please advise an exporter or other agent to monitor the SMART status of an NVME disk.
Preferably in source maintained by Grafana.
For HDD, I found node_exporter
For NVME, it looks like I will have to write my own crutches, like this "masterpiece":

CRUTCH
nvme list | grep dev | cut -d " " -f1 | cut -d "/" -f3 | xargs -I % sh -c 'nvme smart-log /dev/% | tr -d " ."| sed "s/:/{disk=\"\/dev\/%\"} /g"| sed "s/ C//g"' | grep -v "Log"| tr -d "%" | sed "s/C$//g"

With subsequent export via node_exporeter to prometheus and drawing your board in grafana.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Tsvetkov, 2019-02-26
@Jazdero

have you tried crystaldiskinfo? Fits?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question