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

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word 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.

Host Your Own Website at $97 Discount + One Free Domain Using our Promo Code 'Tec97' (Enter this code during Signup) - Signup with DreamHost Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

31 Responses

  1. Abhishek says:

    Hi,

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

    Thanks

  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:

      @Stefan,
      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

    • Ravi Saive says:

      The given instructions also works on Ubuntu 12.04 32-bit Desktop. Have you tried these instructions?

  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/mysqld.pid
    group mysql
    start program = “/etc/init.d/mysqld start”
    stop program = “/etc/init.d/mysqld stop”
    if failed host 127.0.0.1 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 172.16.172.200 # only accept connection from localhost
    allow 172.16.172.200 # 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.

    http://techinfozone.net/install-configure-monit-linux-server/
    http://techinfozone.net/install-configure-mmonit-rhel-x86_64-step-setp/

  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 http://www.abasc.com:2812 nothing happes just keep on loading

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 70000+ Linux Users
  1. 48590
  2. 2375
  3. 13200
Enter your email to get latest Linux Howto's