我有一个戴尔PowerEdge R415和R515,并想知道如何在任何一台服务器上的硬盘出现故障时通过远程提醒。 两者都在运行RAID,所以我需要得到通知,所以我可以换出驱动器。 两台服务器只有基本的底板pipe理控制器。 这是可能的第三方工具/软件?
戴尔OpenManage软件将为您做到这一点。 我想可以把它和你的服务器一起发货,否则你可以从戴尔网站上下载
如果在服务器中有可以发出警报的DRAC卡,并且与服务器中安装的操作系统无关。 如果你还没有这些卡,那么这些卡只有几百美元左右,并且给你很多远程function,比如基于networking的KVM,远程开机/关机等等。
Dell OpenManage软件可以向控制台发送警报,并将消息广播到networking。 我更喜欢电子邮件,因为我监视多个客户端,所以OpenManage软件中的另一个选项是运行一个应用程序。 有一个简单的电子邮件程序叫做bmail,我使用并设置了一个batch file来运行。
所以我在C:盘上设置了一个名为bmail的文件夹,并将bmail.exe复制到这个文件夹中。 然后用以下代码创build一个名为email.cmd的batch file:
REM Created by Jerod Hammerstein REM This is called via the Dell System Administrator in case of storage alerts REM using bmail to send logs via email to the recipients listed in toaddress REM when calling email.cmd, use first parameter "%1" as subject REM use second paramater as full path to log file then alter command line to include -m "%2". REM Put SMTP server address here and make sure it allows Relay from 127.0.0.1 SET SMTP="192.168.1.200" SET toaddress="[email protected],[email protected]" SET fromaddress="[email protected]" c:\bmail\bmail -s %SMTP% -t %toaddress% -f %fromaddress% -h -a %1
在OpenManage Server Administrator中,转到“警报pipe理”,然后单击要通过电子邮件发送的系统事件。 选中“Excecute application”并在“应用程序的绝对path”中input以下内容:
c:\bmail\email.cmd "Put the name of the System Event here"
而已。
我使用戴尔Openmanage服务器pipe理员pipe理节点与Nagios和check_openmanage插件( http://folk.uio.no/trondham/software/check_openmanage.html )。 然后通过SMTP检查。