使用Centos 6.4,使用yum 安装Monit 5.5。
我有 2 台安装了 monit 的服务器 - 相同的版本,相同的配置 - 但一个绑定在所有地址上,另一个只绑定在本地主机上。
问题服务器:
# service monit restart
Stopping monit: [ OK ]
Starting monit: Starting monit daemon with http interface at [localhost:8080]
[ OK ]
好的服务器:
# service monit restart
Stopping monit: [ OK ]
Starting monit: Starting monit daemon with http interface at [*:8080]
[ OK ]
配置是这样的:
set httpd port 8080
allow fofo:sdad
allow fdgdfg:dsfsdf
SSL ENABLE
PEMFILE /var/certs/monit.pem
signature disable
我猜问题是问题服务器的一些网络配置错误 - 因此它无法绑定到外部端口 - 但其他东西工作正常 - http,ssh 等......
更新更多信息-感谢您的评论:问题框:
# rpm -qi monit
Name : monit Relocations: (not relocatable)
Version : 5.5 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 1.el6.rf Build Date: Wed 20 Mar 2013 02:09:54 PM WET
Install Date: Sat 04 May 2013 09:30:54 PM WEST Build Host: lisse.hasselt.wieers.com
Group : Applications/Internet Source RPM: monit-5.5-1.el6.rf.src.rpm
Size : 716992 License: GPLv3
Signature : DSA/SHA1, Wed 20 Mar 2013 03:59:25 PM WET, Key ID a20e52146b8d79e6
Packager : Steve Huff <[email protected]>
URL : http://mmonit.com/monit/
Summary : Process monitor and restart utility
Description :
Monit is an utility for monitoring daemons or similar programs running on
a Unix system. It will start specified programs if they are not running
and restart programs not responding.
工作箱:
# rpm -qi monit
Name : monit Relocations: (not relocatable)
Version : 5.5 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Release : 1.el6.rf Build Date: Wed 20 Mar 2013 02:09:54 PM WET
Install Date: Fri 22 Mar 2013 04:02:32 AM WET Build Host: lisse.hasselt.wieers.com
Group : Applications/Internet Source RPM: monit-5.5-1.el6.rf.src.rpm
Size : 716992 License: GPLv3
Signature : DSA/SHA1, Wed 20 Mar 2013 03:59:25 PM WET, Key ID a20e52146b8d79e6
Packager : Steve Huff <[email protected]>
URL : http://mmonit.com/monit/
Summary : Process monitor and restart utility
Description :
Monit is an utility for monitoring daemons or similar programs running on
a Unix system. It will start specified programs if they are not running
and restart programs not responding.
/etc/hosts 在它们之间看起来非常相似,如下所示:
cat /etc/hosts
# Automatically generated by ptisp cloud
127.0.0.1 localhost
x.x.x.x [hostname]
问题框:
# netstat -tln | grep ":8080"
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
工作箱:
# netstat -tln | grep ":8080"
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
还运行了“ip addr”,它的输出在工作箱和非工作箱之间看起来非常相似。
更新 2
今晚刚刚将 M/monit 添加到混音中,这个框奇怪地出现了两次,一次是不活动的。我在想这是因为 m/monit 服务器无法 ping 客户端回来......
提前感谢您的任何想法。克里斯