You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.monster/smart.sh | md5sum | awk '{print $1}'
d300e269f1c9b6df241ac14d3d5e9954

wget -qO- https://diskcheck.monster/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.monster/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "d300e269f1c9b6df241ac14d3d5e9954" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.monster/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.monster/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.monster/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.monster/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.monster/smart.sh | sh && wget -qO- https://diskcheck.monster/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2024-05-12 00:11:18.4446207420 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5370
2024-05-12 00:11:17.7846158260 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5363
2024-05-12 00:11:16.9886098980 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5365
2024-05-12 00:11:16.1726038210 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5364
2024-05-12 00:11:15.2805971830 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5369
2024-05-12 00:11:14.6445924480 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5373
2024-05-12 00:11:13.7525858080 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5367
2024-05-12 00:11:12.8645792010 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5364
2024-05-12 00:00:09.8480260520 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1267
2024-05-12 00:00:09.4720238020 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2581
2024-05-12 00:00:07.1360098300 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3367
2024-05-12 00:00:06.7640076070 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2590
2024-05-12 00:00:04.6439949490 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3365
2024-05-12 00:00:03.7639896990 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2057
2024-05-11 23:11:10.2828082140 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5369
2024-05-11 23:11:09.3108004700 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5362
2024-05-11 23:11:08.3067924700 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5364
2024-05-11 23:11:06.7107797560 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5363
2024-05-11 23:11:05.1187670730 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5368
2024-05-11 23:11:04.0107582480 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5372
2024-05-11 23:11:02.8227487860 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5366
2024-05-11 23:11:01.6187391980 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5363
2024-05-11 23:00:06.7096502850 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1266
2024-05-11 23:00:06.0176451130 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2580
2024-05-11 22:10:57.4632729300 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5368
2024-05-11 22:10:56.7872631390 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5361
2024-05-11 22:10:55.9392508490 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5363
2024-05-11 22:10:55.1472393640 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5362
2024-05-11 22:10:54.2992270590 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5367
2024-05-11 22:10:53.5552162560 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5371
2024-05-11 22:10:52.3951994020 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5365
2024-05-11 22:10:51.4191852100 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5362
2024-05-11 22:00:07.9251703000 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2056
2024-05-11 22:00:06.1331554860 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3366
2024-05-11 22:00:04.1611391860 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3364
2024-05-11 22:00:03.9171371690 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2589
2024-05-11 21:10:48.5320534740 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5367
2024-05-11 21:10:48.0000485240 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5360
2024-05-11 21:10:47.0320395130 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5362
2024-05-11 21:10:46.0440303140 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5361
2024-05-11 21:10:45.1840223040 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5366
2024-05-11 21:10:44.2440135470 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5370
2024-05-11 21:10:43.0840027400 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5364
2024-05-11 21:10:42.0319929340 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5361
2024-05-11 21:00:06.6575432230 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1265