Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I specify an actual domain in my monitrc file like so:

set httpd port 2812 and
    use address domain.com # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and
    allow USER:PASS        # require user 'USER' with password 'PASS'
    allow @monit           # allow users of group 'monit' to connect (rw)
    allow @users readonly  # allow users of group 'users' to connect readonly

I'm not able to connect to monit locally through telnet or view any output using the 'monit summary' command.

When I change domain.com to localhost everything works fine. I'd like to have external access to monit especially since I'm using m/monit.

share|improve this question
    
Did you try "use address IP" where IP is the IP address of the host? –  cjc May 4 '12 at 22:47
add comment

1 Answer 1

If I'm reading the monit documentation correctly:

If you use this method together with a host list, then only clients from the listed hosts will be allowed to connect to the Monit http server and each client will be asked to provide a username and a password.

the allow localhost line will prevent anyone from connecting that isn't connecting from localhost.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.