0

为了获取有关我的 HDD 驱动器状况的信息,我配置了 smartmontools 守护程序(通过 smartd.conf),如下所示:

dev/sdb -I 194 -a -o on -S on -s (S/../.././03|L/../../6/04) \
    -m sys@example.com -M exec /usr/share/smartmontools/smartd-runner

此外,通过添加“-M test”,我测试了电子邮件通知并收到了测试电子邮件。

如您所见,每天早上我的硬盘都会进行简短测试,但我没有收到任何有关测试结果的电子邮件通知。

可能会在出现问题时发送通知,我在这一点上是对的吗?我的意思是,如果测试通过了,没有收到任何东西是正常的吗?

现在我的驱动器通过smartctl -H命令报告 OK 状态。我使用 Debian Etch 和 Sendmail。

非常感谢。

4

1 回答 1

2

既然您知道-M test,您显然已经-M在文档中找到了有关该选项的章节。在同一章中,您会发现:

exec  PATH  -  run the executable PATH instead of the default mail command,
               when smartd needs to send email.  PATH must point to an
               executable binary file or script.

重要的词是“代替”。如果smartd-runner不自己发送邮件,您将不会收到任何消息。

到底有什么作用smartd-runner?我不熟悉那个脚本。

回答您的问题:当没有要报告的错误时不会发送邮件:

once - send only one warning email for each type of disk problem detected.
       This is the default.
于 2009-02-18T11:15:33.973 回答