Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Software] Daily Email Report from smartd

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
labzilla
Posts: 5
Joined: 2024-02-18 20:17

[Software] Daily Email Report from smartd

#1 Post by labzilla »

I wan to receive daily email reports of my HDD. I've add

Code: Select all

/dev/sda -a -d sat -o on -S on -s (S/../.././02) -m user@xxxx.com -M exec /usr/share/smartmontools/smartd-runner
to /etc/smartd.conf I have this on an Ubuntu server that sends a detailed report on Sunday, and a short report on Monday-Saturday.
I have smartmontools service running. What am I missing?

arzgi
Posts: 1198
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 32 times

Re: [Software] Daily Email Report from smartd

#2 Post by arzgi »

labzilla wrote: 2024-03-10 15:30 Ubuntu server
Better ask from Ubuntu forums.

User avatar
labzilla
Posts: 5
Joined: 2024-02-18 20:17

Re: [Software] Daily Email Report from smartd

#3 Post by labzilla »

I am trying to replicate the configuration from my Ubuntu server to my Debian 12 server.

User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: [Software] Daily Email Report from smartd

#4 Post by fabien »

Hello, welcome to the forums!

Have you tested if smartd sends emails correctly?
man 5 smartd.conf wrote:To test that email is being sent correctly, use the '-M test' Directive described below to send one test email message on smartd startup.
[...]
-M TYPE
[...]
test - send a single test email immediately upon smartd startup. This allows one to verify that email is delivered correctly.

User avatar
labzilla
Posts: 5
Joined: 2024-02-18 20:17

Re: [Software] Daily Email Report from smartd

#5 Post by labzilla »

Yes, I did receive an Email message

User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: [Software] Daily Email Report from smartd

#6 Post by fabien »

Where did you place your line in /etc/smartd.conf? I ask because in the header of this file you can read

Code: Select all

# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices.  DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found.  Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.
DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner

User avatar
labzilla
Posts: 5
Joined: 2024-02-18 20:17

Re: [Software] Daily Email Report from smartd

#7 Post by labzilla »

I'm placing all my customization at the last line of /etc/smartd.conf. I tested with DEVICESCAN and then removed that line.
All other lines of /etc/smartd.conf have been commented out.
Looking at /var/log/syslog I don't see any error.

Code: Select all

2024-03-12T02:08:50.771309-04:00 debian smartd[107569]: Device: /dev/sda [SAT], starting scheduled Short Self-Test.
2024-03-12T02:38:50.938507-04:00 debian smartd[107569]: Device: /dev/sda [SAT], previous self-test completed without error
It's running the scheduled short test, I just don't receive a Email report.

Post Reply