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: Nestor Urquiza
Subject: Re: monit not showing up in a browser
Date: Sun, 23 Oct 2011 11:23:09 -0400

Were you able to get a response from:
telnet 192.168.1.34 2812

If yes then from any machine where you can ping that IP you should be
able to access the monit interface. Any issues from that point on are
network related and they depend on your environment (firewall,
iptables, routing etc)

Best,
-Nestor

On Sun, Oct 23, 2011 at 10:37 AM, Tim Dunphy <address@hidden> wrote:
> Hi Rory,
>
>  Thanks for your reply.. I have changed the configuration to read:
>
> set httpd port 2812 and
>    use address 192.168.1.34  # only accept connection from localhost
>    allow 192.168.1.0        # allow localhost to connect to the server and
>    allow admin:secret      # 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
>
>
> I am attempting to limit the connections to the local network (192.168.1.0). 
> But it is producing the same exact result. Any other thoughts?
>
> thanks
> tim
>
> ----- Original Message -----
> From: "Rory Toma" <address@hidden>
> To: "This is the general mailing list for monit" <address@hidden>
> Sent: Sunday, October 23, 2011 12:27:04 AM
> Subject: Re: monit not showing up in a browser
>
> 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
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>



reply via email to

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