User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:monit [2024/02/22 13:13] willyservices:monit [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-[[https://mmonit.com/monit//|Monit]] is a... 
- 
-Check: [[https://wiki.gentoo.org/wiki/Monit|Gentoo Wiki Monit]] page 
- 
-<code bash> 
-emerge -v monit 
-</code> 
- 
-Start it: 
-<code bash> 
-/etc/init.d/monit start 
-</code> 
- 
-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 
- 
-<file - 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/; 
-    } 
-</file> 
- 
-<code> 
-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 
-</code> 
- 
- 
-## It is possible to include additional configuration parts from other files or 
-## directories. 
-include /etc/monit.d/* 
- 
-mkdir /etc/monit.d 
- 
-<file - 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 
-</file> 
- 
-<file - 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'" 
-</file> 
- 
- 
  

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