From 25edc9207b5cfee0f6c2f83609766aa2853263f5 Mon Sep 17 00:00:00 2001 From: Andrii Gladkyi Date: Thu, 25 Apr 2024 08:09:06 +0200 Subject: [PATCH] Tune Monit settings --- freebsd/server/etc/monitrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/freebsd/server/etc/monitrc b/freebsd/server/etc/monitrc index 159c4d4..676875d 100644 --- a/freebsd/server/etc/monitrc +++ b/freebsd/server/etc/monitrc @@ -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 @@ -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" @@ -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