【发布时间】: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