如何configurationarchttp软件以获取来自Areca 1880i RAID卡的电子邮件通知

我有一台带有Areca 1880i RAID卡的64位CentOS 6.0 Linux计算机。 RAID卡有自己的以太网端口,但现在没有连接任何东西。 而不是使用该以太网端口的电子邮件通知,我想从主板上的以太网端口发送电子邮件通知。 我猜想将RAID卡上的以太网端口直接连接到互联网是安全的,因为它运行着自己的基于固件的networking服务器。

在这个槟榔网页上:

http://www.areca.com.tw/support/s_linux/linux.htm

archttp软件的下载链接

http://www.areca.us/support/s_linux/http/x86_64/archttp64.zip

[root@server ~]# wget --quiet http://www.areca.us/support/s_linux/http/x86_64/archttp64.zip [root@server ~]# unzip archttp64.zip Archive: archttp64.zip inflating: archttp64 [root@server ~]# chmod 755 archttp64 [root@server ~]# ./archttp64 -h Usage: archttp32 [TCP Port#] To Terminate the archttp: Press CTRL-C Command for reconfiguring the archttp: kill -sHUP <archttp's pid> [root@server ~]# 

这里我注意到当我运行./archttp64 -h时创build了一个空的configuration文件

 [root@server ~]# ls -l archttpsrv.conf -rw-r--r-- 1 root root 0 2011-08-25 15:56 archttpsrv.conf 

我设法启动了networking服务器软件

 [root@server ~]# ./archttp64 80 Copyright (c) 2004-2009 Areca, Inc. All Rights Reserved. Areca HTTP proxy server, Version: V1.84, Arclib: 290, Date: Nov 2 2009 Starting HTTP Proxy Server...Please wait(MAX = 5 minutes) Controller(s) list ------------------------------------------------------- Controller[1](PCI) : Listen to port[80]. Cfg Assistant : Listen to port[81]. Binding IP: [0.0.0.0] Note: IP[0.0.0.0] stands for any ip bound to this host. ------------------------------------------------------- ############################## Press CTRL-C to exit program!! ############################## 

然后,我通过首先创build一个ssh隧道,从我的桌面计算机访问由archttp64提供的Web界面

 [user@desktop ~]$ ssh -N -L 8080:localhost:80 [email protected] 

然后在Chromium Web浏览器中打开URL http:// localhost:8080 。

在Web界面中,我configuration了SMTP服务器和电子邮件地址的字段,并select了信息通知作为事件级别,但是当我单击Web界面中的生成testing事件时,没有发送电子邮件。

我怎样才能让电子邮件通知工作?

尽pipe可以在Controller Web界面(这里selectTCP端口80)中编辑电子邮件设置,但这似乎不起作用。 相反,您应该编辑Cfg Assistant Web界面中的电子邮件设置(这里selectTCP端口81)。 创build一个SSH隧道到您的服务器

 [user@desktop ~]$ ssh -N -L 8081:localhost:81 [email protected] 

请注意,您需要在Firefox浏览器中打开URL http:// localhost:8081 。 最新的Chromium网页浏览器(截至2011年8月)只会显示一个空白屏幕。

也可以手动编辑文件archttpsrv.conf,并将其置于从启动archttp64的当前工作目录中,而不是通过Web浏览器configuration电子邮件设置。 该文件可能看起来像这样

 [GENERAL] BindingIp=127.0.0.1 HTTPPort=80 SMTPPort=25 ScanPci=YES ScanRs232=NO ScanInband=NO [MAIL] Server=130.237.98.104 Sender=arecaraid [email protected] Account= Password= MailToName1=arecaraid MailToName2= MailToName3= MailToName4= [email protected] MailAddr2= MailAddr3= MailAddr4= EvtLevel=4 NotifyForNoEvent=YES 

其中Server是SMTP服务器