【问题标题】:smartd Mailing with sendmailsmartd 使用 sendmail 发送邮件
【发布时间】:2014-12-10 19:36:54
【问题描述】:

首先对不起我的英语。

我正在尝试监视许多 Windows 机器的硬盘驱动器,并且我已经看到可以使用 smartd 来完成。我已经阅读了手册页,并且看到在发生错误时可以发送邮件。我已经做了一些测试,在 google 中搜索信息......但我无法让它工作,smartd 守护进程不运行邮件程序。

我在 smartd.conf 中对此进行了测试:

DEVICESCAN
/dev/hda -m UserName@SomeHost.com -M test -M exec c:\sendmail.cmd

sendmail.cmd 是一个简单的测试脚本:

"C:\sendEmail.exe" -f UserName@SomeHost.com -m "Hi There" -l c:\log.log -t UserName@SomeHost.com -s SomeHost.com -xu UserName@SomeHost.com -xp PassWord

cmd 脚本运行良好,但我不知道为什么 smartd 不运行该脚本...

即使我尝试过混合动力车:

/dev/hda -m UserName@SomeHost.com -M test -M exec "C:\sendEmail.exe" -f UserName@SomeHost.com -m "Hi There" -l c:\log.log -t UserName@SomeHost.com -s SomeHost.com -xu UserName@SomeHost.com -xp PassWord

但也不行。

Windows 日志显示 smartd 守护程序如何启动和运行“DEVICESCAN”命令,但没有关于另一行的内容。 我已经使用“smartctl -a /dev/hda”进行了测试,并显示了驱动器信息。

我做错了什么?

谢谢!!

【问题讨论】:

    标签: windows monitoring sendmail hard-drive


    【解决方案1】:

    已修复...问题是“设备扫描”。如果您运行该命令,则所有其他命令都将被忽略。即使我找到了一个安装程序,可以在很多 PC 上静默安装并进行配置。

    【讨论】:

      猜你喜欢
      • 2018-11-14
      • 1970-01-01
      • 1970-01-01
      • 2013-11-22
      • 2013-10-21
      • 2017-01-20
      • 2018-07-22
      • 2013-05-28
      • 2012-12-02
      相关资源
      最近更新 更多