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@server1.example.com } set alert me@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")
2011/3/19 Rogelio scubacuda@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@server1.example.com } set alert me@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
On Sat, Mar 19, 2011 at 11:50 AM, Eero Volotinen eero.volotinen@iki.fi wrote:
what netstat -tupln says from root prompt? what is status of selinux?
SELinux is disabled
netstat results below
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2514/sendmail: acce tcp 0 0 :::8080 :::* LISTEN 2490/java tcp 0 0 :::22 :::* LISTEN 2446/sshd tcp 0 0 :::42424 :::* LISTEN 2490/java tcp 0 0 :::42426 :::* LISTEN 2490/java udp 0 0 0.0.0.0:35717 0.0.0.0:* 2604/avahi-daemon: udp 0 0 0.0.0.0:5353 0.0.0.0:* 2604/avahi-daemon: udp 0 0 74.80.219.215:123 0.0.0.0:* 2465/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 2465/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 2465/ntpd udp 0 0 :::40730 :::* 2485/java udp 0 0 :::162 :::* 2485/java udp 0 0 :::47830 :::* 2604/avahi-daemon: udp 0 0 :::5353 :::* 2604/avahi-daemon: udp 0 0 fe80::20c:29ff:fee7:123 :::* 2465/ntpd udp 0 0 ::1:123 :::* 2465/ntpd udp 0 0 :::123 :::* 2465/ntpd
2011/3/19 Rogelio scubacuda@gmail.com:
On Sat, Mar 19, 2011 at 11:50 AM, Eero Volotinen eero.volotinen@iki.fi wrote:
what netstat -tupln says from root prompt? what is status of selinux?
SELinux is disabled
netstat results below
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2514/sendmail: acce tcp 0 0 :::8080 :::* LISTEN 2490/java tcp 0 0 :::22 :::* LISTEN 2446/sshd tcp 0 0 :::42424 :::* LISTEN 2490/java tcp 0 0 :::42426 :::* LISTEN 2490/java udp 0 0 0.0.0.0:35717 0.0.0.0:* 2604/avahi-daemon: udp 0 0 0.0.0.0:5353 0.0.0.0:* 2604/avahi-daemon: udp 0 0 74.80.219.215:123 0.0.0.0:* 2465/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 2465/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 2465/ntpd udp 0 0 :::40730 :::* 2485/java udp 0 0 :::162 :::* 2485/java udp 0 0 :::47830 :::* 2604/avahi-daemon: udp 0 0 :::5353 :::* 2604/avahi-daemon: udp 0 0 fe80::20c:29ff:fee7:123 :::* 2465/ntpd udp 0 0 ::1:123 :::* 2465/ntpd udp 0 0 :::123 :::* 2465/ntpd
monit is not running or not listening ports. what is output of monit logfile ?
-- Eero
On Sat, Mar 19, 2011 at 11:37 AM, Rogelio scubacuda@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!