Windows 使用sendmail发送smartd邮件
首先,我为我的英语感到抱歉 我正在尝试监视许多Windows机器的硬盘,我已经看到smartd可以做到这一点。我已经阅读了手册页,我发现在发生错误时可以发送邮件。我做了一些测试,在谷歌搜索信息。。。但是我不能让它工作,smartd守护进程不运行邮件程序 我在smartd.conf中对此进行了测试:Windows 使用sendmail发送smartd邮件,windows,monitoring,sendmail,hard-drive,Windows,Monitoring,Sendmail,Hard Drive,首先,我为我的英语感到抱歉 我正在尝试监视许多Windows机器的硬盘,我已经看到smartd可以做到这一点。我已经阅读了手册页,我发现在发生错误时可以发送邮件。我做了一些测试,在谷歌搜索信息。。。但是我不能让它工作,smartd守护进程不运行邮件程序 我在smartd.conf中对此进行了测试: DEVICESCAN /dev/hda -m UserName@SomeHost.com -M test -M exec c:\sendmail.cmd sendmail.cmd是一个测试脚本,有一
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”进行了测试,并显示了驱动器信息
我做错了什么
谢谢 修正了。。。问题是“设备扫描”。如果运行该命令,将忽略所有其他命令。就连我也发现了一个安装程序,可以在很多PC机上以静默和配置的方式安装