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-18 13:00:03.4800940070 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2141
2024-05-18 12:54:01.0688958380 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5523
2024-05-18 12:54:00.1768880210 f177757c79a23b9810bd3f0ba8b491ca00ff0830c3cdca54c697ea9ef4b88705/_dev_sdg/94
2024-05-18 12:53:54.4328376910 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5516
2024-05-18 12:53:53.4328289300 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5513
2024-05-18 12:53:52.5568212530 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5523
2024-05-18 12:53:51.9048155360 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5524
2024-05-18 12:53:50.9408070950 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5518
2024-05-18 12:53:49.9727986120 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5518
2024-05-18 12:00:08.3685878330 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3445
2024-05-18 12:00:06.6485722010 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1350
2024-05-18 12:00:06.2645687100 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2664
2024-05-18 12:00:05.3885607480 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3443
2024-05-18 12:00:04.2525504220 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2675
2024-05-18 12:00:02.1845316220 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2140
2024-05-18 11:53:36.4449836850 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5522
2024-05-18 11:53:35.7809774860 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5511
2024-05-18 11:53:34.7649679980 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5515
2024-05-18 11:53:33.5329564930 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5512
2024-05-18 11:53:32.5689474910 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5522
2024-05-18 11:53:31.9169414020 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5523
2024-05-18 11:53:30.9409322860 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5517
2024-05-18 11:53:29.8129217490 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5517
2024-05-18 11:00:03.8879124520 a6f80ea5e5638dc6f4d6e49e74a64e34cddd975979c0eabcde98ee8e73b1f741/_dev_sda/2674
2024-05-18 10:53:26.8329853660 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5521
2024-05-18 10:53:26.1809808750 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5510
2024-05-18 10:53:25.2769746460 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5514
2024-05-18 10:53:24.4609690260 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5511
2024-05-18 10:53:23.4249618960 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5521
2024-05-18 10:53:22.8809581490 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5522
2024-05-18 10:53:21.9249515730 58cbeca3a1f6a86e3579d2a965c85a0e3bf02863586bb54308e0cc89c6ea5aa4/_dev_sdb/5516
2024-05-18 10:53:21.0049452470 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5516
2024-05-18 10:00:10.2465265210 f2da5c97a2d3486c88529211dfadb8111157a0c6f82010ec39273dd773ecb399/_dev_sdb/3444
2024-05-18 10:00:06.3064980970 fcdc98559eb41618244e94cc4523de80fc02ff16a7aa03e77e2704749fa6c402/_dev_sdc/1349
2024-05-18 10:00:06.1464969430 e4eb3af33f5ca9af1e8d1d27f6cd1ad7dc655b511d892bc56a15df8150ca6b0a/_dev_sda/3442
2024-05-18 10:00:06.0184960190 5a4af480fab2c61688dce9274118898982cdc7059f20ea7844915f5deb2c5522/_dev_sdb/2663
2024-05-18 10:00:02.2504688500 18fcb0bf2894813d191392d8e0c2ee3ec688f4d95ad71efb81a430598d8e3e7f/_dev_sda/2139
2024-05-18 09:53:17.7876580630 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdh/5520
2024-05-18 09:53:17.1316537250 147774b2080cfbfe19b5cfe00bfdfe87e0e087014920f7bbf76d459cca408b77/_dev_sdg/5509
2024-05-18 09:53:16.1036469300 5a1d6c586598bea927d4a221b409d562f8b9aea7697e0c74bddc942aed984702/_dev_sdf/5513
2024-05-18 09:53:15.0796401640 7d965750f4c25451fc676b6c9d29f21b51128b9a6c8bf5f74490e3e3338c1389/_dev_sde/5510
2024-05-18 09:53:14.2676347990 6f84ba1146d69956305dda7bac1e10c21b31aa0b802c5e9de6dd61f19d0e6d0c/_dev_sdd/5520
2024-05-18 09:53:13.7356312870 33460735fdc41e4f534833238f7eb92d91b87c3a178f7d951c29984a95cf4371/_dev_sdc/5521
2024-05-18 09:53:12.7316246580 33d8f1719262c88c03c506711c15a85d348a4beb4d4d0850919fb6c9bd898b5c/_dev_sdb/88
2024-05-18 09:53:11.9556195350 8459f98269e6576a8b1de5b3840dc24a5a6d90e0fc52346a34d6f7fb54932126/_dev_sda/5515