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

## It is possible to include additional configuration parts from other files or ## directories. include /etc/monit.d/*

mkdir /etc/monit.d

filesystems
check filesystem Data with path /data
     if space usage > 90% then alert

check filesystem Deposito with path /deposito
     if space usage > 90% then alert

check filesystem Root with path /
     if space usage > 90% then alert
services
check process sonarr with pidfile /var/run/sonarr.pid
    start program = "/bin/bash -c 'rc-service sonarr start'"
    stop program  = "/bin/bash -c 'rc-service sonarr stop'"

check process radarr with pidfile /var/run/radarr.pid
    start program = "/bin/bash -c 'rc-service radarr start'"
    stop program  = "/bin/bash -c 'rc-service radarr stop'"

check process readarr with pidfile /var/run/readarr.pid
    start program = "/bin/bash -c 'rc-service readarr start'"
    stop program  = "/bin/bash -c 'rc-service readarr stop'"

check process readarr-audiobooks with pidfile /var/run/readarr-audiobooks.pid
    start program = "/bin/bash -c 'rc-service readarr-audiobooks start'"
    stop program  = "/bin/bash -c 'rc-service readarr-audiobooks stop'"

check process lidarr with pidfile /var/run/lidarr.pid
    start program = "/bin/bash -c 'rc-service lidarr start'"
    stop program  = "/bin/bash -c 'rc-service lidarr stop'"

check process prowlarr with pidfile /var/run/prowlarr.pid
    start program = "/bin/bash -c 'rc-service prowlarr start'"
    stop program  = "/bin/bash -c 'rc-service prowlarr stop'"

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