mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Monitor all failed units
This commit is contained in:
parent
85ae50d263
commit
d493a25329
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ in
|
||||||
set mail-format { from: monit@banditlair.com }
|
set mail-format { from: monit@banditlair.com }
|
||||||
set alert alerts@banditlair.com with reminder on 120 cycles
|
set alert alerts@banditlair.com with reminder on 120 cycles
|
||||||
|
|
||||||
|
check program failed-untis with path "${pkgs.systemd}/bin/systemctl --failed"
|
||||||
|
if content != "0 loaded units listed" 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
|
||||||
if memory usage > 75% for 5 times within 15 cycles then alert
|
if memory usage > 75% for 5 times within 15 cycles then alert
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue