mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Reduce the number of alerts sent for failed services
This commit is contained in:
parent
e7590da701
commit
1f4bbd96aa
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ in {
|
|||
set alert alerts@banditlair.com with reminder on 120 cycles
|
||||
|
||||
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
|
||||
if cpu usage > 95% for 10 cycles then alert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue