How to Install and Setup Monit (Linux Process and Services Monitoring) Program

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

45 Responses

  1. Abhishek says:


    Can you please tell me how to send alert through monit if someone ssh server.


  2. Stefan says:

    Is monit able to monitor logging of services?

    For instance, if a service hangs (stops logging) but the process is still running so it still has a pid. Will it be able to monitor that and force a kill on the pid and initiate a restart?

    • Ravi Saive says:

      It’s just a monitoring tool that monitors and alerts about the services which are in critical state, it doesn’t take any actions like you saying, you’ve to kill and restart manually..

  3. ejaz says:

    can you send me step by step installation monit. on Ubuntu 12.04 32 desktop

  4. Jean says:

    Hi Ravi,

    Thx for this post. It really helps. i’m using Ubuntu 12.10 server, and i was wondering if it should be “mysql” instead of “mysqld” on the third and fourth row for the MySql monitoring services :

    check process mysqld with pidfile /var/run/mysqld/
    group mysql
    start program = “/etc/init.d/mysqld start”
    stop program = “/etc/init.d/mysqld stop”
    if failed host port 3306 then restart
    if 5 restarts within 5 cycles then timeout

    Because when i use “mysqld” an error occur.

    thx a lot

  5. Al says:

    I am unable to access the webUI page and the message I am getting is “The connection was interrupted”and firewall is disabled already. below is my configuration:

    set httpd port 2812 and
    use address # only accept connection from localhost
    allow # 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

    Any help would be appreciated

  6. Mann says:

    check system is not working for the remote host neither the running services are showing up in Monit window

  7. Mann says:

    how to monitor windows machine with monit ???

  8. Brent says:

    Very nice. I’m quite new to linux and this tutorial got me through the basics without getting bogged down in all the different things that you can use monit for.
    I appreciated you specifying the commands for the different linux versions. Often tutorials on websites assume you are using a certain flavor of linux, but never mention what that flavor is.

  9. imran says:

    I have written an article for moit and mmonit, to control your monit instance through web interface. hope this will help some one.

  10. feroz says:

    how to install it on server i have logged into my server using ssh, installed the monit , the monit status command showing everything fine in the ssh console,but i am unable to access the web panel from browser as nothing happes just keep on loading

Leave a Reply to Ravi Saive Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.