Rogelio
2011-Mar-19 14:37 UTC
[CentOS] httpd cannot serve web page on port 2812 (for Monit)
Might there be anything CentOS related on why I cannot access the
Monit GUI system on http://box-running-monit.com:2812 ?
I am using a very basic /etc/monit.conf config, but I cannot get it
serve the web page on my box
The service start and stops fine (e.g. "/etc/init.d/monit start"), and
I have it set to listen to port 2812 in the "/etc/monit.conf file" (so
far, kept the default)
e.g. in "/etc/monit.d/monitrc" file
set daemon 60
set logfile syslog facility log_daemon
set mailserver localhost
set mail-format { from: monit at server1.example.com }
set alert me at mydomain.com
set httpd port 2812
check process sshd with pidfile /var/run/sshd.pid
start program "/etc/init.d/sshd start"
stop program "/etc/init.d/sshd stop"
if failed port 22 protocol ssh then restart
if 5 restarts within 5 cycles then timeout
(I also enabled the 2812 port using CentOS's
"system-config-securitylevel" command, which added the right IPtables
entries, which I see okay on "iptables -L")
--
Also on LinkedIn?? Feel free to connect if you too are an open
networker: scubacuda at gmail.com
Eero Volotinen
2011-Mar-19 14:50 UTC
[CentOS] httpd cannot serve web page on port 2812 (for Monit)
2011/3/19 Rogelio <scubacuda at gmail.com>:> Might there be anything CentOS related on why I cannot access the > Monit GUI system on http://box-running-monit.com:2812 ? > > I am using a very basic /etc/monit.conf config, but I cannot get it > serve the web page on my box > > The service start and stops fine (e.g. "/etc/init.d/monit start"), and > I have it set to listen to port 2812 in the "/etc/monit.conf file" (so > far, kept the default) > > e.g. in "/etc/monit.d/monitrc" file > > set daemon ?60 > set logfile syslog facility log_daemon > set mailserver localhost > set mail-format { from: monit at server1.example.com } > set alert me at mydomain.com > set httpd port 2812 > > check process sshd with pidfile /var/run/sshd.pid > ?start program ?"/etc/init.d/sshd start" > ?stop program ?"/etc/init.d/sshd stop" > ?if failed port 22 protocol ssh then restart > ?if 5 restarts within 5 cycles then timeout > > (I also enabled the 2812 port using CentOS's > "system-config-securitylevel" command, which added the right IPtables > entries, which I see okay on "iptables -L")what netstat -tupln says from root prompt? what is status of selinux? -- Eero
Rogelio
2011-Mar-19 18:50 UTC
[CentOS] httpd cannot serve web page on port 2812 (for Monit)
On Sat, Mar 19, 2011 at 11:37 AM, Rogelio <scubacuda at gmail.com> wrote:> Might there be anything CentOS related on why I cannot access the > Monit GUI system on http://box-running-monit.com:2812 ?I had forgotten to put "allow login:password" in the "/etc/monit.d/monitrc" file. :b Problem solved!