How to install Monit and Munin in Debian 8 / Nginx and configure in ISPConfig 3.1

Discussion in 'Installation/Configuration' started by Rafael Santana, Jun 11, 2017.

  1. Rafael Santana

    Rafael Santana New Member

    I have seen some tutorials on HowtoForge about the installation of these two systems and I saw that ISPConfig has native support for them.
    But the question is. Both systems run via Apache. If I use Nginx, can not I install them and configure them to monitor my VPS in ISPConfig?
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is possible and I actually use them both in my Ubuntu 16.04 + Nginx.
     
  3. tivanov

    tivanov New Member

    Steps to install Monit
    Code:
    $ sudo apt-get install monit
    
    Configure Monit by
    Code:
    $ sudo vi /etc/monit/monitrc
    
    Polling frequency (This is the interval (in seconds) at which Monit runs its tests.)
    Code:
    set daemon 120
    
    Edit (Uncomment following)
    Code:
    set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server 
    allow admin:monit      # require user 'admin' with password 'monit'
    allow @monit           # allow users group 'monit' to connect (rw)
    allow @users readonly  # allow users group 'users' to connect (r)
    
    Add monitoring service for Nginx
    Code:
    check process nginx with pidfile /var/run/nginx.pid
    start program = "/etc/init.d/nginx start"
    stop program = "/etc/init.d/nginx stop"
    
    Check for syntax errors
    Code:
    $ sudo monit -t
    
    When there are no errors and shows message like “Control file syntax OK“ then
    Restart Monit
    Code:
    $ sudo /etc/init.d/monit restart
    
    Verify Monit running by checking the logs
    Code:
    $ sudo tail -f /var/log/monit.log
    
     

Share This Page