Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed this

set daemon 20
set logfile /var/log/monit.log

set mailserver port 587
        username "myemail" password "mypswd"
        using tlsv1
        with timeout 30 seconds

set alert myemail

set httpd port 2812 and
        use address
        allow admin:monit

check system localhost
        if loadavg (1min) > 4 then alert
        if loadavg (5min) > 2 then alert
        if memory usage > 75% then alert
        if cpu usage (user) > 70% then alert
        if cpu usage (system) > 30% then alert
        if cpu usage (wait) > 20% then alert

check process apache2 with pidfile /var/run/
        group www
        start program = "/etc/init.d/apache2 start"
        stop program  = "/etc/init.d/apache2 stop"
        if children > 250 then restart
        if loadavg(5min) greater than 10 for 8 cycles then stop
        if 3 restarts within 5 cycles then timeout

when i run

 sudo /etc/init.d/monit start

start deamon comes but i am not able to acces gui panel on 2812 port

share|improve this question

The error log can display notifications as well. Does the intended task actually work as you want it to, even with this message? For example, Apache says stuff like "Apache started on port 80" and "starting child threads" and such. Not a big deal, since it's only notifying you.

share|improve this answer

Your Answer


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.