{"id":1069,"date":"2026-05-22T10:29:21","date_gmt":"2026-05-22T07:29:21","guid":{"rendered":"https:\/\/itgen.itbumper.com\/?page_id=1069"},"modified":"2026-06-01T09:36:28","modified_gmt":"2026-06-01T06:36:28","slug":"smart-disk-monitoring-and-email-alerts-with-msmtp-smartd-ubuntu-server","status":"publish","type":"page","link":"https:\/\/itgen.itbumper.com\/?page_id=1069","title":{"rendered":"SMART Disk Monitoring and Email Alerts with msmtp + smartd (Ubuntu Server)"},"content":{"rendered":"<p data-start=\"6645\" data-end=\"6672\"><em><strong>This guide explains how to:<\/strong><\/em><\/p>\n<ul data-start=\"6674\" data-end=\"6823\">\n<li data-start=\"6674\" data-end=\"6702\">monitor disk SMART status,<\/li>\n<li data-start=\"6703\" data-end=\"6736\">run automatic SMART self-tests,<\/li>\n<li data-start=\"6737\" data-end=\"6760\">receive email alerts,<\/li>\n<li data-start=\"6761\" data-end=\"6795\">integrate <code data-start=\"6773\" data-end=\"6781\">smartd<\/code> with <code data-start=\"6787\" data-end=\"6794\">msmtp<\/code>,<\/li>\n<li data-start=\"6796\" data-end=\"6823\">use your own SMTP server.<\/li>\n<\/ul>\n<p data-start=\"6825\" data-end=\"6838\"><em><strong>Suitable for:<\/strong><\/em><\/p>\n<ul data-start=\"6840\" data-end=\"6960\">\n<li data-start=\"6840\" data-end=\"6862\">Ubuntu Server 22\/24,<\/li>\n<li data-start=\"6863\" data-end=\"6877\">NAS systems,<\/li>\n<li data-start=\"6878\" data-end=\"6893\">home servers,<\/li>\n<li data-start=\"6894\" data-end=\"6904\">mini-PC,<\/li>\n<li data-start=\"6905\" data-end=\"6925\">KVM\/Proxmox hosts.<\/li>\n<\/ul>\n<p><strong>1. Install msmtp<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update &amp;&amp; sudo apt upgrade -y\nsudo apt install msmtp -y\n<\/pre><\/div>\n\n<p><strong>2. Configure SMTP (Example configuration):<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/etc\/msmtprc\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndefaults\nauth           on\ntls            on\ntls_starttls   on\ntls_trust_file \/etc\/ssl\/certs\/ca-certificates.crt\n\naccount        external\nhost           mx2.itbumper.com\nport           587\n\nfrom           inventory@itbumper.com\nuser           inventory@itbumper.com\npassword       your_password\n\naccount default : external\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo chmod 600 \/etc\/msmtprc\nsudo chown root:root \/etc\/msmtprc\n<\/pre><\/div>\n\n<p data-start=\"7566\" data-end=\"7589\" data-section-id=\"1pcov25\"><strong>3. Test email sending<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\necho -e &quot;Subject: Test\\n\\nHi, connection test!&quot; | sudo msmtp --debug radik.m@itbumper.com\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nloaded system configuration file \/etc\/msmtprc\nignoring user configuration file \/root\/.msmtprc: No such file or directory\nfalling back to default account\nusing account default from \/etc\/msmtprc\nhost = mx2.itbumper.com\nport = 587\nsource ip = (not set)\nproxy host = (not set)\nproxy port = 0\nsocket = (not set)\ntimeout = off\nprotocol = smtp\ndomain = localhost\nauth = choose\nuser = inventory@itbumper.com\npassword = *\npasswordeval = (not set)\nntlmdomain = (not set)\ntls = on\ntls_starttls = on\ntls_trust_file = \/etc\/ssl\/certs\/ca-certificates.crt\ntls_crl_file = (not set)\ntls_fingerprint = (not set)\ntls_key_file = (not set)\ntls_cert_file = (not set)\ntls_certcheck = on\ntls_min_dh_prime_bits = (not set)\ntls_priorities = (not set)\ntls_host_override = (not set)\nauto_from = off\nmaildomain = (not set)\nfrom = inventory@itbumper.com\nfrom_full_name = (not set)\nallow_from_override = on\nset_from_header = auto\nset_date_header = auto\nremove_bcc_headers = on\nundisclosed_recipients = off\ndsn_notify = (not set)\ndsn_return = (not set)\nlogfile = (not set)\nlogfile_time_format = (not set)\nsyslog = (not set)\naliases = (not set)\nreading recipients from the command line\n&lt;-- 220 mx2.itbumper.com ESMTP Postfix\n--&gt; EHLO localhost\n&lt;-- 250-mx2.itbumper.com\n&lt;-- 250-PIPELINING\n&lt;-- 250-SIZE 157286400\n&lt;-- 250-ETRN\n&lt;-- 250-STARTTLS\n&lt;-- 250-ENHANCEDSTATUSCODES\n&lt;-- 250-8BITMIME\n&lt;-- 250 DSN\n--&gt; STARTTLS\n&lt;-- 220 2.0.0 Ready to start TLS\nTLS session parameters:\n    (TLS1.3)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)\nTLS certificate information:\n    Subject:\n        CN=mx2.itbumper.com\n    Issuer:\n        C=US,O=Let's Encrypt,CN=R13\n    Validity:\n        Activation time: Wed 06 May 2026 06:12:03 AM PDT\n        Expiration time: Tue 04 Aug 2026 06:12:02 AM PDT\n    Fingerprints:\n        SHA256: DC:73:D5:D9:39:92:2D:A4:EF:E0:62:A2:91:F1:1B:5D:38:46:53:38:85:25:DE:90:7C:4F:03:96:8C:B0:6F:5B\n        SHA1 (deprecated): 77:9D:65:82:C3:4A:FD:31:F2:0F:F2:E0:85:12:DC:3A:26:CB:5E:8F\n--&gt; EHLO localhost\n&lt;-- 250-mx2.itbumper.com\n&lt;-- 250-PIPELINING\n&lt;-- 250-SIZE 157286400\n&lt;-- 250-ETRN\n&lt;-- 250-AUTH PLAIN LOGIN\n&lt;-- 250-ENHANCEDSTATUSCODES\n&lt;-- 250-8BITMIME\n&lt;-- 250 DSN\n--&gt; AUTH PLAIN AGludmVudG9yeUBpdGJ1bXBlci5jb20AaXBELlIxIUhrSTY9TzJ0bndeR3I=))\n&lt;-- 235 2.7.0 Authentication successful\n--&gt; MAIL FROM:&lt;inventory@itbumper.com&gt;\n--&gt; RCPT TO:&lt;radik.m@itbumper.com&gt;\n--&gt; DATA\n&lt;-- 250 2.1.0 Ok\n&lt;-- 250 2.1.5 Ok\n&lt;-- 354 End data with &lt;CR&gt;&lt;LF&gt;.&lt;CR&gt;&lt;LF&gt;\n--&gt; From: inventory@itbumper.com\n--&gt; Date: Thu, 21 May 2026 23:41:58 -0700\n--&gt; Message-ID: &lt;f64123ba223eabf36d2f4302ce54a29b.inventory@itbumper.com&gt;\n--&gt; Subject: Test\n--&gt;\n--&gt; Hi, connection test!\n--&gt; .\n&lt;-- 250 2.0.0 Ok: queued as 4gMG0V0cnhzqXKf\n--&gt; QUIT\n&lt;-- 221 2.0.0 Bye\n\n<\/pre><\/div>\n\n<p data-start=\"7699\" data-end=\"7724\" data-section-id=\"lfa2u2\"><strong>4. Check smartd service and enable if needed:<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsystemctl status smartd\nsudo systemctl enable --now smartd\n<\/pre><\/div>\n\n<p data-start=\"7835\" data-end=\"7867\" data-section-id=\"142ka9h\"><strong>5. Create smartd mailer script<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/usr\/local\/bin\/smartd-mailer\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n\nEMAIL=&quot;radik.m@itbumper.com&quot;\n\n(\necho &quot;To: $EMAIL&quot;\necho &quot;From: inventory@itbumper.com&quot;\necho &quot;Subject: ITB HOST-01 SMART Alert&quot;\necho\ncat\n) | \/usr\/bin\/msmtp &quot;$EMAIL&quot;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo chmod 755 \/usr\/local\/bin\/smartd-mailer\n<\/pre><\/div>\n\n<p data-start=\"8199\" data-end=\"8220\" data-section-id=\"1i023jf\"><strong>6. Configure smartd<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/etc\/smartd.conf\n<\/pre><\/div>\n\n<p data-start=\"3507\" data-end=\"3552\">only ONE configuration line should be active:<\/p>\n<ul data-start=\"3554\" data-end=\"3589\">\n<li data-section-id=\"5b6lli\" data-start=\"3554\" data-end=\"3573\">either TEST mode,<\/li>\n<li data-section-id=\"135dn95\" data-start=\"3574\" data-end=\"3589\">or WORK mode.<\/li>\n<\/ul>\n<p data-start=\"3591\" data-end=\"3642\">Do not leave both entries enabled at the same time.<\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#EXAMPLE\n# WORK mode disabled during testing\n#DEVICESCAN -a -o on -S on -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -m radik.m@itbumper.com -M exec \/usr\/local\/bin\/smartd-mailer\n\n# TEST mode enabled\nDEVICESCAN -a -o on -S on -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -M test -m radik.m@itbumper.com -M exec \/usr\/local\/bin\/smartd-mailer\n\n# -M test\n#parameter forces smartd to immediately send a test alert after service startup.\n#This validates:\n#  smartd functionality,\n#  mailer script execution,\n#  msmtp operation,\n#  SMTP authentication,\n#  email delivery.\n\n<\/pre><\/div>\n\n<p data-start=\"8573\" data-end=\"8590\" data-section-id=\"1ge70u8\"><em><strong>6. Schedule format:&nbsp;<\/strong><\/em> T\/MM\/DD\/d\/HH<\/p>\n<p data-start=\"8618\" data-end=\"8624\">Where:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>T<\/td>\n<td>Test type<\/td>\n<\/tr>\n<tr>\n<td>S<\/td>\n<td>Short test<\/td>\n<\/tr>\n<tr>\n<td>L<\/td>\n<td>Long test<\/td>\n<\/tr>\n<tr>\n<td>MM<\/td>\n<td>Month<\/td>\n<\/tr>\n<tr>\n<td>DD<\/td>\n<td>Day of month<\/td>\n<\/tr>\n<tr>\n<td>d<\/td>\n<td>Day of week<\/td>\n<\/tr>\n<tr>\n<td>HH<\/td>\n<td>Hour<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"relative w-full mt-4 mb-1\">\n<div class=\"\">\n<div class=\"relative\">\n<div class=\"h-full min-h-0 min-w-0\">\n<div class=\"h-full min-h-0 min-w-0\">\n<div class=\"border border-token-border-light border-radius-3xl corner-superellipse\/1.1 rounded-3xl\">\n<div class=\"h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse\/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback\">\n<div class=\"relative\">\n<div class=\"pe-11 pt-3\">\n<div class=\"relative z-0 flex max-w-full\">\n<div id=\"code-block-viewer\" class=\"q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch \u037cd \u037cr\" dir=\"ltr\">\n<div class=\"cm-scroller\">\n<p data-start=\"8788\" data-end=\"8806\" data-section-id=\"15pgv2j\"><em><strong>Example schedule:<\/strong><\/em> (S\/..\/..\/.\/02|L\/..\/..\/6\/03)<span style=\"font-size: revert;\">:<\/span><\/p>\n<div class=\"relative w-full mt-4 mb-1\">\n<div class=\"\">\n<div class=\"relative\">\n<div class=\"h-full min-h-0 min-w-0\">\n<div class=\"h-full min-h-0 min-w-0\">\n<div class=\"border border-token-border-light border-radius-3xl corner-superellipse\/1.1 rounded-3xl\">\n<div class=\"h-full w-full border-radius-3xl bg-token-bg-elevated-secondary corner-superellipse\/1.1 overflow-clip rounded-3xl lxnfua_clipPathFallback\">\n<div class=\"relative\">\n<div class=\"pe-11 pt-3\">\n<div class=\"relative z-0 flex max-w-full\">\n<div id=\"code-block-viewer\" class=\"q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch \u037cd \u037cr\" dir=\"ltr\">\n<div class=\"cm-scroller\">\n<ul data-start=\"8857\" data-end=\"8920\">\n<li data-start=\"8857\" data-end=\"8884\" data-section-id=\"1hub2ns\">Short test daily at 02:00<\/li>\n<li data-start=\"8885\" data-end=\"8920\" data-section-id=\"1vx1hlk\">Long test every Saturday at 03:00<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p data-start=\"8927\" data-end=\"8945\" data-section-id=\"1wwgayn\"><strong>Restart services<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo systemctl restart smartd\n<\/pre><\/div>\n\n<p data-section-id=\"1u9yioh\" data-start=\"4426\" data-end=\"4443\"><em><strong>Expected Result If configured correctly:<\/strong><\/em><\/p>\n<ul data-start=\"4471\" data-end=\"4589\">\n<li data-section-id=\"1rsaa44\" data-start=\"4471\" data-end=\"4506\">a SMART test email should arrive,<\/li>\n<li data-section-id=\"l75k5p\" data-start=\"4507\" data-end=\"4540\">no smartd errors should appear,<\/li>\n<li data-section-id=\"1k0gbuu\" data-start=\"4541\" data-end=\"4589\">msmtp should successfully deliver the message.<\/li>\n<\/ul>\n<p data-start=\"4628\" data-end=\"4659\"><strong>After receiving the test email:<\/strong><\/p>\n<ol data-start=\"4661\" data-end=\"4738\">\n<li data-section-id=\"1mgrlzg\" data-start=\"4661\" data-end=\"4682\">Disable TEST entry<\/li>\n<li data-section-id=\"1ytnib1\" data-start=\"4683\" data-end=\"4703\">Enable WORK entry<\/li>\n<li data-section-id=\"8p68va\" data-start=\"4704\" data-end=\"4720\">Save the file<\/li>\n<li data-section-id=\"1o13kz9\" data-start=\"4721\" data-end=\"4738\">Restart smartd<\/li>\n<\/ol>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# TEST mode disabled\n#DEVICESCAN -a -o on -S on -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -M test -m radik.m@itbumper.com -M exec \/usr\/local\/bin\/smartd-mailer\n\n# WORK mode enabled\nDEVICESCAN -a -o on -S on -s (S\/..\/..\/.\/02|L\/..\/..\/6\/03) -m radik.m@itbumper.com -M exec \/usr\/local\/bin\/smartd-mailer\n<\/pre><\/div>\n\n<p data-section-id=\"1o8mrob\" data-start=\"5253\" data-end=\"5281\"><strong>Verify SMART Test Schedule<\/strong><\/p>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo smartd -q showtests\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n#Example\nsmartd 7.4 2023-08-01 r5530 &#x5B;x86_64-linux-6.8.0-111-generic] (local build)\nCopyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org\n\nOpened configuration file \/etc\/smartd.conf\nConfiguration file \/etc\/smartd.conf was parsed, found DEVICESCAN, scanning devices\nDevice: \/dev\/sda, type changed from 'scsi' to 'sat'\nDevice: \/dev\/sda &#x5B;SAT], opened\nDevice: \/dev\/sda &#x5B;SAT], Samsung SSD 860 PRO 1TB, S\/N:S5G8NS0NB01379X, WWN:5-002538-e30b0d388, FW:RVM02B6Q, 1.02 TB\nDevice: \/dev\/sda &#x5B;SAT], found in smartd database 7.3\/5528: Samsung based SSDs\nDevice: \/dev\/sda &#x5B;SAT], enabled SMART Attribute Autosave.\nDevice: \/dev\/sda &#x5B;SAT], can't monitor Current_Pending_Sector count - no Attribute 197\nDevice: \/dev\/sda &#x5B;SAT], can't monitor Offline_Uncorrectable count - no Attribute 198\nDevice: \/dev\/sda &#x5B;SAT], enabled SMART Automatic Offline Testing.\nDevice: \/dev\/sda &#x5B;SAT], is SMART capable. Adding to &quot;monitor&quot; list.\nDevice: \/dev\/sda &#x5B;SAT], state read from \/var\/lib\/smartmontools\/smartd.Samsung_SSD_860_PRO_1TB-S5G8NS0NB01379X.ata.state\nDevice: \/dev\/sdb, type changed from 'scsi' to 'sat'\nDevice: \/dev\/sdb &#x5B;SAT], opened\nDevice: \/dev\/sdb &#x5B;SAT], Samsung SSD 860 PRO 1TB, S\/N:S5G8NS0NB00206K, WWN:5-002538-e30b0cef3, FW:RVM02B6Q, 1.02 TB\nDevice: \/dev\/sdb &#x5B;SAT], found in smartd database 7.3\/5528: Samsung based SSDs\nDevice: \/dev\/sdb &#x5B;SAT], enabled SMART Attribute Autosave.\nDevice: \/dev\/sdb &#x5B;SAT], can't monitor Current_Pending_Sector count - no Attribute 197\nDevice: \/dev\/sdb &#x5B;SAT], can't monitor Offline_Uncorrectable count - no Attribute 198\nDevice: \/dev\/sdb &#x5B;SAT], enabled SMART Automatic Offline Testing.\nDevice: \/dev\/sdb &#x5B;SAT], is SMART capable. Adding to &quot;monitor&quot; list.\nDevice: \/dev\/sdb &#x5B;SAT], state read from \/var\/lib\/smartmontools\/smartd.Samsung_SSD_860_PRO_1TB-S5G8NS0NB00206K.ata.state\nDevice: \/dev\/sdc, type changed from 'scsi' to 'sat'\nDevice: \/dev\/sdc &#x5B;SAT], opened\nDevice: \/dev\/sdc &#x5B;SAT], TOSHIBA HDWE140, S\/N:708BK08NFBRG, WWN:5-000039-a2bc00405, FW:FP1R, 4.00 TB\nDevice: \/dev\/sdc &#x5B;SAT], found in smartd database 7.3\/5528: Toshiba X300\nDevice: \/dev\/sdc &#x5B;SAT], enabled SMART Attribute Autosave.\nDevice: \/dev\/sdc &#x5B;SAT], enabled SMART Automatic Offline Testing.\nDevice: \/dev\/sdc &#x5B;SAT], is SMART capable. Adding to &quot;monitor&quot; list.\nDevice: \/dev\/sdc &#x5B;SAT], state read from \/var\/lib\/smartmontools\/smartd.TOSHIBA_HDWE140-708BK08NFBRG.ata.state\nDevice: \/dev\/nvme0, opened\nDevice: \/dev\/nvme0, Samsung SSD 980 PRO 250GB, S\/N:S5GZNG0N921943P, FW:1B2QGXA7, 250 GB\nDevice: \/dev\/nvme0, is SMART capable. Adding to &quot;monitor&quot; list.\nDevice: \/dev\/nvme0, state read from \/var\/lib\/smartmontools\/smartd.Samsung_SSD_980_PRO_250GB-S5GZNG0N921943P.nvme.state\nMonitoring 3 ATA\/SATA, 0 SCSI\/SAS and 1 NVMe devices\n\nNext scheduled self tests (at most 5 of each type per device):\nDevice: \/dev\/nvme0, will do test 1 of type S at Fri May 22 12:56:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 1 of type S at Sat May 23 02:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 1 of type S at Sat May 23 02:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 1 of type S at Sat May 23 02:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 2 of type S at Sat May 23 02:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 1 of type L at Sat May 23 03:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 1 of type L at Sat May 23 03:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 1 of type L at Sat May 23 03:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 1 of type L at Sat May 23 03:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 2 of type S at Sun May 24 02:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 2 of type S at Sun May 24 02:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 2 of type S at Sun May 24 02:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 3 of type S at Sun May 24 02:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 3 of type S at Mon May 25 02:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 3 of type S at Mon May 25 02:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 3 of type S at Mon May 25 02:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 4 of type S at Mon May 25 02:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 4 of type S at Tue May 26 02:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 4 of type S at Tue May 26 02:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 4 of type S at Tue May 26 02:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 5 of type S at Tue May 26 02:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 5 of type S at Wed May 27 02:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 5 of type S at Wed May 27 02:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 5 of type S at Wed May 27 02:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 2 of type L at Sat May 30 03:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 2 of type L at Sat May 30 03:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 2 of type L at Sat May 30 03:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 2 of type L at Sat May 30 03:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 3 of type L at Sat Jun  6 03:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 3 of type L at Sat Jun  6 03:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 3 of type L at Sat Jun  6 03:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 3 of type L at Sat Jun  6 03:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 4 of type L at Sat Jun 13 03:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 4 of type L at Sat Jun 13 03:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 4 of type L at Sat Jun 13 03:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 4 of type L at Sat Jun 13 03:26:34 2026 +05\nDevice: \/dev\/sda &#x5B;SAT], will do test 5 of type L at Sat Jun 20 03:26:34 2026 +05\nDevice: \/dev\/sdb &#x5B;SAT], will do test 5 of type L at Sat Jun 20 03:26:34 2026 +05\nDevice: \/dev\/sdc &#x5B;SAT], will do test 5 of type L at Sat Jun 20 03:26:34 2026 +05\nDevice: \/dev\/nvme0, will do test 5 of type L at Sat Jun 20 03:26:34 2026 +05\n\nTotals &#x5B;Fri May 22 12:26:34 2026 +05 - Thu Aug 20 12:26:34 2026 +05]:\nDevice: \/dev\/sda &#x5B;SAT], will do  13 tests of type L\nDevice: \/dev\/sda &#x5B;SAT], will do  90 tests of type S\nDevice: \/dev\/sda &#x5B;SAT], will do   0 tests of type C\nDevice: \/dev\/sda &#x5B;SAT], will do   0 tests of type O\nDevice: \/dev\/sdb &#x5B;SAT], will do  13 tests of type L\nDevice: \/dev\/sdb &#x5B;SAT], will do  90 tests of type S\nDevice: \/dev\/sdb &#x5B;SAT], will do   0 tests of type C\nDevice: \/dev\/sdb &#x5B;SAT], will do   0 tests of type O\nDevice: \/dev\/sdc &#x5B;SAT], will do  13 tests of type L\nDevice: \/dev\/sdc &#x5B;SAT], will do  90 tests of type S\nDevice: \/dev\/sdc &#x5B;SAT], will do   0 tests of type C\nDevice: \/dev\/sdc &#x5B;SAT], will do   0 tests of type O\nDevice: \/dev\/nvme0, will do  13 tests of type L\nDevice: \/dev\/nvme0, will do  91 tests of type S\nDevice: \/dev\/nvme0, will do   0 tests of type C\nDevice: \/dev\/nvme0, will do   0 tests of type O\n\n<\/pre><\/div>\n\n<p data-start=\"5377\" data-end=\"5397\"><em><strong>The output displays:<\/strong><\/em><\/p>\n<ul data-start=\"5399\" data-end=\"5492\">\n<li data-section-id=\"whrph5\" data-start=\"5399\" data-end=\"5423\">scheduled SMART tests,<\/li>\n<li data-section-id=\"n3cyxl\" data-start=\"5424\" data-end=\"5437\">test types,<\/li>\n<li data-section-id=\"3ozpww\" data-start=\"5438\" data-end=\"5456\">execution times,<\/li>\n<li data-section-id=\"l8s07w\" data-start=\"5457\" data-end=\"5492\">planned runs for upcoming months.<\/li>\n<\/ul>\n<p data-start=\"5494\" data-end=\"5553\">Usually the schedule is shown approximately 3 months ahead.<\/p>\n<p data-start=\"5570\" data-end=\"5577\"><em><strong>Ensure:<\/strong><\/em><\/p>\n<ul data-start=\"5579\" data-end=\"5707\" data-is-last-node=\"\" data-is-only-node=\"\">\n<li data-section-id=\"fbim83\" data-start=\"5579\" data-end=\"5603\">Short tests run daily,<\/li>\n<li data-section-id=\"u9ozqw\" data-start=\"5604\" data-end=\"5646\">Long tests follow the expected schedule,<\/li>\n<li data-section-id=\"1x42794\" data-start=\"5647\" data-end=\"5677\">execution times are correct,<\/li>\n<li data-section-id=\"15y0xi7\" data-start=\"5678\" data-end=\"5707\" data-is-last-node=\"\">no conflicting rules exist.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>This guide explains how to: monitor disk SMART status, run automatic SMART self-tests, receive email alerts, integrate smartd with msmtp, use your own SMTP server. Suitable for: Ubuntu Server 22\/24, NAS systems, home servers, mini-PC, KVM\/Proxmox hosts. 1. Install msmtp 2. Configure SMTP (Example configuration): 3. Test email sending 4. Check smartd service and enable &hellip; <a href=\"https:\/\/itgen.itbumper.com\/?page_id=1069\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SMART Disk Monitoring and Email Alerts with msmtp + smartd (Ubuntu Server)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1069"}],"collection":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1069"}],"version-history":[{"count":9,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1069\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=\/wp\/v2\/pages\/1069\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itgen.itbumper.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}