Skip to content

Commit

Permalink
Tune Monit settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arg committed Apr 25, 2024
1 parent fc3b5bf commit 25edc92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions freebsd/server/etc/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set httpd
check system "Polaris"
if loadavg (1min) per core > 2 for 5 cycles then alert
if loadavg (5min) per core > 1.5 for 10 cycles then alert
if cpu usage > 95% for 10 cycles then alert
if cpu usage > 95% for 3 cycles then alert
if memory usage > 75% then alert

check process "SSH" with pidfile /var/run/sshd.pid
Expand All @@ -43,8 +43,8 @@ check process "Samba" with pidfile /var/run/samba4/smbd.pid
check process "Nginx" with pidfile /var/run/nginx.pid
start program = "/usr/local/etc/rc.d/nginx start"
stop program = "/usr/local/etc/rc.d/nginx stop"
if failed port 80 for 2 cycles then restart
if failed port 443 for 2 cycles then restart
if failed port 80 then restart
if failed port 443 then restart

check process "Plex" with pidfile /var/run/plex/plex.pid
start program = "/usr/local/etc/rc.d/plexmediaserver_plexpass start"
Expand All @@ -63,7 +63,7 @@ check process "Prowlarr" with pidfile /var/run/prowlarr/prowlarr_daemon.pid
stop program = "/usr/local/etc/rc.d/prowlarr stop"

check program "IPMI health check" with path "/usr/local/bin/ipmi_health.sh"
if status != 0 then alert
if status != 0 for 2 cycles then alert

check program "ZFS health check" with path "/usr/local/bin/zfs_health.sh"
every 10 cycles
Expand Down

0 comments on commit 25edc92

Please sign in to comment.