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-19 20:04:06.1837633880 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5553
2024-05-19 20:04:05.4757570050 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5541
2024-05-19 20:03:59.3597018610 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5545
2024-05-19 20:03:58.3916931320 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5543
2024-05-19 20:03:57.0036806140 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5554
2024-05-19 20:03:56.0316718470 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5555
2024-05-19 20:03:54.9716622880 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5548
2024-05-19 20:03:53.9116527250 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5548
2024-05-19 20:00:09.9656182890 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3461
2024-05-19 20:00:06.8615898570 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3459
2024-05-19 20:00:06.5935874040 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1366
2024-05-19 20:00:06.1775835930 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2680
2024-05-19 20:00:04.0015636550 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2691
2024-05-19 19:03:49.6544276690 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5552
2024-05-19 19:03:48.4304181020 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5540
2024-05-19 19:03:47.2504088800 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5544
2024-05-19 19:03:45.9823989700 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5542
2024-05-19 19:03:38.9383439060 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5553
2024-05-19 19:03:32.6942951200 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5554
2024-05-19 19:03:31.4782856240 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5547
2024-05-19 19:03:25.2662371060 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5547
2024-05-19 19:00:02.3926621420 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2157
2024-05-19 18:03:20.9543840980 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5551
2024-05-19 18:03:20.2023778900 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5539
2024-05-19 18:03:18.6903654090 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5543
2024-05-19 18:03:17.5223557670 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5541
2024-05-19 18:03:16.5703479090 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5552
2024-05-19 18:03:15.9103424610 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5553
2024-05-19 18:03:14.9343344040 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5546
2024-05-19 18:03:13.8783256890 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5546
2024-05-19 18:00:08.6248032100 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3460
2024-05-19 18:00:07.6767954540 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1365
2024-05-19 18:00:07.0967907090 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2679
2024-05-19 18:00:05.0287737950 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3458
2024-05-19 18:00:04.2607675150 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2690
2024-05-19 17:03:05.5062059120 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5550
2024-05-19 17:03:04.4421968030 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5538
2024-05-19 17:03:02.9461839950 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5542
2024-05-19 17:03:01.5821723170 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5540
2024-05-19 17:03:00.4061622500 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5551
2024-05-19 17:02:59.7981570440 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5552
2024-05-19 17:02:58.7541481060 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5545
2024-05-19 17:02:57.6301384820 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5545
2024-05-19 17:00:03.4486447870 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2156
2024-05-19 16:02:54.6444733600 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5549