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-10 18:03:29.8267573920 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5341
2024-05-10 18:03:29.1787519730 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5333
2024-05-10 18:03:28.0427424700 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5337
2024-05-10 18:03:27.1587350740 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5334
2024-05-10 18:03:26.2467274430 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5339
2024-05-10 18:03:25.4787210180 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5344
2024-05-10 18:03:24.5667133860 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5337
2024-05-10 18:03:23.6747059250 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5334
2024-05-10 18:00:06.9090560800 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3352
2024-05-10 18:00:06.6970542960 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2564
2024-05-10 18:00:04.5010358370 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3350
2024-05-10 18:00:04.2250335170 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2573
2024-05-10 17:03:15.4296794620 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5340
2024-05-10 17:03:14.8536746090 f177757c79a23b9810bd3f0ba8b491ca00ff0830c3cdca54c697ea9ef4b88705/_dev_sdg/88
2024-05-10 17:03:13.8496661450 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5336
2024-05-10 17:03:12.8576577860 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5333
2024-05-10 17:03:12.0176507080 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5338
2024-05-10 17:03:11.4296457540 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5343
2024-05-10 17:03:10.4856377980 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5336
2024-05-10 17:03:09.3456281950 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5333
2024-05-10 17:00:06.5320936660 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1250
2024-05-10 17:00:02.8960632770 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2040
2024-05-10 16:03:06.1016666380 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5339
2024-05-10 16:03:05.4256573210 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5332
2024-05-10 16:03:04.5496452440 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5335
2024-05-10 16:03:03.5936320570 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5332
2024-05-10 16:03:02.5976183080 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5337
2024-05-10 16:03:01.9256090290 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5342
2024-05-10 16:02:55.9095257570 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5335
2024-05-10 16:02:54.9815128830 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5332
2024-05-10 16:00:07.5550452020 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3351
2024-05-10 16:00:06.5470293690 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2563
2024-05-10 16:00:04.8110020750 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3349
2024-05-10 16:00:04.3189943300 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2572
2024-05-10 15:02:46.9582587160 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5338
2024-05-10 15:02:46.3222532700 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5331
2024-05-10 15:02:45.4262455960 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5334
2024-05-10 15:02:44.3142360820 c8e2f6f8c9c14b69f7ce323a41762ef4ccbec57355be515812caadd01317e6a4/_dev_sde/87
2024-05-10 15:02:43.2662270990 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5336
2024-05-10 15:02:42.7342225430 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5341
2024-05-10 15:02:41.6662133970 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5334
2024-05-10 15:02:40.7302053790 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5331
2024-05-10 15:00:06.1568762610 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1249
2024-05-10 15:00:05.6888722180 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2562
2024-05-10 15:00:03.6968550150 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2571