Using Centos 6.4, using a yum installed Monit 5.5.
I have 2 servers with monit installed - same version, same config - but one binds on all addresses and the other only binds on the localhost.
Problem server:
# service monit restart
Stopping monit: [ OK ]
Starting monit: Starting monit daemon with http interface at [localhost:8080]
[ OK ]
Good server:
# service monit restart
Stopping monit: [ OK ]
Starting monit: Starting monit daemon with http interface at [*:8080]
[ OK ]
The config is this:
set httpd port 8080
allow fofo:sdad
allow fdgdfg:dsfsdf
SSL ENABLE
PEMFILE /var/certs/monit.pem
signature disable
I am guessing the issue is some network misconfiguration of the problem server - hence it cant bind on the external port - but then other things are working ok - http, ssh etc...
UPDATE Some more info - thanks for the comments: Problem box:
# 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 <shuff@vecna.org>
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.
Working box:
# 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 <shuff@vecna.org>
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 looks pretty similar between them, like this:
cat /etc/hosts
# Automatically generated by ptisp cloud
127.0.0.1 localhost
x.x.x.x [hostname]
Problem box:
# netstat -tln | grep ":8080"
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
Working box:
# netstat -tln | grep ":8080"
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
Also ran 'ip addr' and its output looks pretty similar between a working and non-working box.
UPDATE 2
Just added M/monit to the mix tonight and this box strangely shows up twice, once inactive. I am thinking this is because the m/monit server cannot ping the client back...
Thanks in advance for any ideas. Chris