User Tools

This is an old revision of the document!


Monit is a…

Check: Gentoo Wiki Monit page

emerge -v monit

Start it:

/etc/init.d/monit start

It is recommended to start monit through the /etc/inittab so that init itself launches the monit application, and will automatically relaunch it when monit would suddenly die. Starting monit through an init script would not provide this functionality. FILE /etc/inittabAuto restart monit in case of failure

# Run monit in standard runlevels mo:2345:respawn:/usr/bin/monit -Ic /etc/monitrc

After updating /etc/inittab, monit can be immediately started through telinit q.

reverse proxy

monit.conf
location /monit/ {
        rewrite ^/monit/(.*) /$1 break;
        proxy_ignore_client_abort on;
        proxy_pass   http://192.168.1.10:2812; 
        proxy_redirect  http://192.168.1.10:2812 /monit; 
        proxy_cookie_path / /monit/;
    }
set httpd port 2812 and
    use address localhost  # only accept connection from localhost (drop if you use M/Monit)
    allow localhost        # allow localhost to connect to the server and
#    allow admin:monit      # require user 'admin' with password 'monit'
    allow @users

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information