Answer the question
In order to leave comments, you need to log in
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":
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"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question