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.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/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.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/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.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/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.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2022-12-06 14:00:08.9581509420 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/808
2022-12-06 14:00:06.8861442110 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/804
2022-12-06 14:00:05.6501401970 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/828
2022-12-06 14:00:04.9421379030 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/461
2022-12-06 14:00:03.7501340380 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sda/98
2022-12-06 14:00:03.2701324830 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/456
2022-12-06 14:00:03.0341317200 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6255
2022-12-06 13:00:03.2914010470 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6254
2022-12-06 13:00:03.0713998670 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1243
2022-12-06 12:00:07.2076668870 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/807
2022-12-06 12:00:05.6276572120 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/99
2022-12-06 12:00:05.1436542460 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/803
2022-12-06 12:00:04.4556500310 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/460
2022-12-06 12:00:03.4436438280 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/829
2022-12-06 12:00:02.8036399030 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/455
2022-12-06 12:00:02.5076380910 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6253
2022-12-06 12:00:02.1436358590 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1242
2022-12-06 11:00:03.3858882710 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6252
2022-12-06 10:00:06.9125681110 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/806
2022-12-06 10:00:05.4685616610 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sdb/98
2022-12-06 10:00:05.0325597210 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/459
2022-12-06 10:00:04.6605580610 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/802
2022-12-06 10:00:03.5285530170 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sda/97
2022-12-06 10:00:03.3965524270 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/454
2022-12-06 10:00:03.2645518350 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1241
2022-12-06 10:00:03.0125507180 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6251
2022-12-06 09:00:02.6803819780 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6250
2022-12-06 08:00:08.4268777150 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/805
2022-12-06 08:00:06.3589338560 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/801
2022-12-06 08:00:04.6869794270 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/827
2022-12-06 08:00:04.6629800840 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/458
2022-12-06 08:00:03.2190195720 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1240
2022-12-06 08:00:03.1670209950 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1239
2022-12-06 08:00:02.9430271310 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/453
2022-12-06 08:00:02.6990338230 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sda/828
2022-12-06 08:00:02.6630348110 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6249
2022-12-06 07:00:02.5640150210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6248
2022-12-06 06:00:08.5049092990 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/804
2022-12-06 06:00:06.0408972600 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/800
2022-12-06 06:00:05.8888965170 c325b9c74aa7431d6a1fe4065c4bbfed0376ca33ef81620cc47b6eaf2b9cb3a9/_dev_sdb/826
2022-12-06 06:00:04.9528919420 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sdb/457
2022-12-06 06:00:04.0448875070 683f4c84eb76111c3c7512ab0d13263e6183579d86ccce19fe36bb3c89d78475/_dev_sda/96
2022-12-06 06:00:03.7408860210 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/1238
2022-12-06 06:00:03.1888833260 8ef68bd3ad9100367a3c74a2b48d7504a8f370403ad7b3aa83120f6fe625d41a/_dev_sda/452
2022-12-06 06:00:02.4048794950 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/6247