monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit not showing up in a browser


From: Rory Toma
Subject: Re: monit not showing up in a browser
Date: Sat, 22 Oct 2011 21:27:04 -0700

You have it configured to only listen on localhost.

On Oct 22, 2011, at 9:19 PM, Tim Dunphy <address@hidden> wrote:

> Hello list!!
> 
> Why isn't monit showing up in a browser on port 2812?
> 
> monit is clearly running:
> 
> address@hidden:/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 
> 
> address@hidden:/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)
> 
> 
> address@hidden:/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
> 
> address@hidden:/etc/httpd/conf.d] #cat /etc/redhat-release 
> CentOS release 5.6 (Final)
> 
> address@hidden:/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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]