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-08 12:00:08.2547626130 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3325
2024-05-08 12:00:06.1147458430 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1221
2024-05-08 12:00:05.7307428350 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2534
2024-05-08 12:00:05.3307397010 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3323
2024-05-08 11:46:50.7333740340 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5289
2024-05-08 11:46:50.1373710830 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5282
2024-05-08 11:46:49.4173675210 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5288
2024-05-08 11:46:48.5933634500 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5284
2024-05-08 11:46:47.2413567770 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5290
2024-05-08 11:46:46.5413533300 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5292
2024-05-08 11:46:45.6093487420 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5286
2024-05-08 11:46:44.5933437480 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5283
2024-05-08 11:00:04.3865539490 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2544
2024-05-08 11:00:02.2065369670 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2012
2024-05-08 10:46:41.9164279930 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5288
2024-05-08 10:46:41.2564231290 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5281
2024-05-08 10:46:40.0564142840 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5287
2024-05-08 10:46:38.7604047330 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5283
2024-05-08 10:46:37.3603944170 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5289
2024-05-08 10:46:36.6803894060 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5291
2024-05-08 10:46:35.5843813340 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5285
2024-05-08 10:46:34.2963718480 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5282
2024-05-08 10:00:09.8219252590 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3324
2024-05-08 10:00:06.9298963480 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1220
2024-05-08 10:00:06.8858959080 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3322
2024-05-08 10:00:06.5738927870 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2533
2024-05-08 10:00:03.8538655700 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2543
2024-05-08 09:46:30.8388766490 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5287
2024-05-08 09:46:30.1748714100 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5280
2024-05-08 09:46:28.8948613100 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5286
2024-05-08 09:46:27.6028511170 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5282
2024-05-08 09:46:26.8788454070 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5288
2024-05-08 09:46:26.3348411170 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5290
2024-05-08 09:46:25.4348340170 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5284
2024-05-08 09:46:14.2547458820 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5281
2024-05-08 09:00:03.4335448870 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2011
2024-05-08 08:46:11.3135246480 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5286
2024-05-08 08:46:10.6855191510 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5279
2024-05-08 08:46:09.5015087880 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5285
2024-05-08 08:46:03.6054571860 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5281
2024-05-08 08:46:02.6374487140 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5287
2024-05-08 08:46:01.9614427980 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5289
2024-05-08 08:45:56.0733912760 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5283
2024-05-08 08:45:55.1453831530 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5280
2024-05-08 08:00:06.9465587460 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3323