smartd用sendmail邮寄

首先我很抱歉我的英语。

我试图监视很多Windows机器的硬盘,我已经看到可以用smartd来完成。 我已经阅读了man page,而且我发现在发生错误时可以发送邮件。 我已经做了一些testing,在谷歌search信息…但我不能让它的工作,smartd守护进程不运行邮件程序。

我在smartd.conf中testing过这个:

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

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

 "C:\sendEmail.exe" -f UserName@SomeHost.com -m "Hi There" -lc:\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" -lc:\log.log -t UserName@SomeHost.com -s SomeHost.com -xu UserName@SomeHost.com -xp PassWord 

但不要工作。

Windows日志显示了smartd守护程序如何启动并运行“DEVICESCAN”命令,但是没有任何关于其他行的信息。 我已经用“smartctl -a / dev / hda”进行了testing,并显示了驱动器信息。

我做错了什么?

谢谢!!

固定…问题是“DEVICESCAN”。 如果你运行这个命令,所有其他的都被忽略。 即使我发现一个安装程序安装在很多PC的安静和配置。