Reduce the number of alerts sent for failed services

This commit is contained in:
Paul-Henri Froidmont 2023-09-30 05:25:40 +02:00
parent e7590da701
commit 1f4bbd96aa
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -41,7 +41,7 @@ in {
set alert alerts@banditlair.com with reminder on 120 cycles set alert alerts@banditlair.com with reminder on 120 cycles
check program failed-units with path "${pkgs.systemd}/bin/systemctl --failed" check program failed-units with path "${pkgs.systemd}/bin/systemctl --failed"
if content != "0 loaded units listed" then alert if content != "0 loaded units listed" for 20 times within 60 cycles then alert
check system $HOST check system $HOST
if cpu usage > 95% for 10 cycles then alert if cpu usage > 95% for 10 cycles then alert