[TOOL] NVMe/SSD/HDD S.M.A.R.T Monitoring - Testing
Hello.
We started new project - NVMe/SSD/HDD S.M.A.R.T Monitoring.
Please anyone who wanna join testing, try it.
Coming features:
Graphs
More to come as this is just testing...
How it works?
Each time you run smart.sh it will send the S.M.A.R.T data to our api.
Then the data is stored and get incremental id for your disk drive e.g.: https://disk.lol/view/f08f2f675d902874b98225386c12c4c45e4951183433353fe557e7c3bd319e28/_dev_sdd/1
You can also load latest S.M.A.R.T data of your disk drive by adding last at the end of url: https://disk.lol/view/f08f2f675d902874b98225386c12c4c45e4951183433353fe557e7c3bd319e28/_dev_sdd/last
Before downloading and running the script you can check the script hash:
wget -qO- https://disk.lol/smart.sh | md5sum | awk '{print $1}' 1cdbd6117452b520c94a83c31e4cee40 wget -qO- https://disk.lol/smart-test.sh | md5sum | awk '{print $1}' 6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:
wget -q https://disk.lol/smart.sh | [[ "$(md5sum < smart.sh | awk '{print $1}')" = "1cdbd6117452b520c94a83c31e4cee40" ]] && echo "Verification of script was successful." || echo "Verification of script failed." wget -q https://disk.lol/smart-test.sh | [[ "$(md5sum < smart-test.sh | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://disk.lol/smart-test.sh | sh
Downloading and running the script:
wget -qO- https://disk.lol/smart.sh | sh
Manually creating the script:
Copy and paste the code below into smart.sh
sh smart.sh
Code for smart.sh:
#!/bin/sh for disk in $(smartctl --scan|cut -d ' ' -f1) ; do echo "Generating S.M.A.R.T for disk: " $disk smart=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1) smartctl -a $disk -v 1,raw24/raw32 -v 7,raw24/raw32 > $smart curl -F smart=@$smart https://disk.lol/api?disk=$disk rm $smart done
Comments
New additions:
Btw we are on github now so you can post issues directly: https://github.com/0xDiSk/NVMe-SSD-HDD-S.M.A.R.T-Monitoring
This is cool. Thanks!
Amadex.com Domainer + IT Supporter | Brbljaona Balkan Chat Website | ICT Jobs Croatia
Posting data relies only on curl, why does the script also install wget?
Maybe test for and use whichever is currently installed as the posting tool.
@cochon That´s totally right. The wget is only used in script verify-and-run.sh, i will move the wget install there.
But then the script is run as
so you need wget to have installed anyway.
There are many ways how to download the script.sh i know, but wget/curl is always handy.
New addition:
- You can now see on view page temperature graph.
More to come!
Kinda surprised I haven't cooked my nvme yet despite running it out of spec for a year+
Maybe I should add a heatsink
Well, if you are still in warranty, they will check if you ran it out of spec, they could deny the repair/replacement.
Free NAT KVM | Free NAT LXC
Slightly sketchy fanless build so some level of temp risk was inevitable. Will be changing stuff though cause near 90 is a little too high even with some risk tolerance
If you have trust problems, the verify-and-run.sh is for you.
Updated verify-and-run.sh
Btw this is how verify-and-run.sh works - https://github.com/0xDiSk/NVMe-SSD-HDD-S.M.A.R.T-Monitoring/blob/main/verify-and-run.sh-how.it.works
From now on you can try it on Windows too.
https://github.com/0xDiSk/NVMe-SSD-HDD-S.M.A.R.T-Monitoring/blob/main/windows/README.md
Little optimized our main site for speed load.
Re-worked readme on github https://github.com/0xDiSk/NVMe-SSD-HDD-S.M.A.R.T-Monitoring/blob/main/README.md
Finally made the wanted change: Don´t send serial number.
From now on, when you send S.M.A.R.T data to our api, the serial number is removed, means we do not get the serial number in any possible way.
https://github.com/0xDiSk/NVMe-SSD-HDD-S.M.A.R.T-Monitoring/commit/aa21a77d5b1013714736fbc955007fbcb41ba782
Got a second domain:
https://diskcheck.co/
Scripts updates will follow. We will keep disk.lol too, its too short to not keep.
Some questions you may have. Why to use our tool.
Because:
And finally and not lastly:
I like the idea of a "high score" table of power on hours! Sounds like fun.
Cheap dedis are my drug, and I'm too far gone to turn back.