You have it configured to only listen on localhost. On Oct 22, 2011, at 9:19 PM, Tim Dunphy <[email protected]> wrote:
> Hello list!! > > Why isn't monit showing up in a browser on port 2812? > > monit is clearly running: > > [root@VIRTCENT11:/etc/httpd/conf.d] #ps -ef | grep monit > root 775 1 0 00:01 ? 00:00:00 /usr/local/bin/monit -d 60 -v > -c /etc/monitrc -p /var/run/monit.pid -l /var/log/monit.log > root 2223 19946 0 00:06 pts/3 00:00:00 grep monit > > > and listening on the right port > > [root@VIRTCENT11:/etc/httpd/conf.d] #lsof -i :2812 > COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME > monit 775 root 4u IPv4 5480520 TCP localhost.localdomain:atmtcp > (LISTEN) > > > [root@VIRTCENT11:/etc/httpd/conf.d] #netstat -ant | grep 2812 > tcp 0 0 127.0.0.1:2812 0.0.0.0:* > LISTEN > > BUT if you visit servername:2812 in a browser this is what you will see: > > Firefox can't establish a connection to the server at mon1:2812. > > Machine info > > [root@VIRTCENT11:/etc/httpd/conf.d] #cat /etc/redhat-release > CentOS release 5.6 (Final) > > [root@VIRTCENT11:/etc/httpd/conf.d] #uname -a > Linux VIRTCENT11.example.com 2.6.18-238.el5xen #1 SMP Thu Jan 13 17:49:40 EST > 2011 i686 i686 i386 GNU/Linux > > > This is my monitrc file > > set daemon 60 # check services at 1-minute intervals > set httpd port 2812 and > use address localhost # only accept connection from localhost > allow localhost # allow localhost to connect to the server and > allow admin:monit # require user 'admin' with password 'monit' > #allow @monit # allow users of group 'monit' to connect (rw) > #allow @users readonly # allow users of group 'users' to connect readonly > > > Thanks in advance!! > > Tim > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
