diff --git a/modules/monit.nix b/modules/monit.nix index adae29d..42cba30 100644 --- a/modules/monit.nix +++ b/modules/monit.nix @@ -42,6 +42,9 @@ in set mail-format { from: monit@banditlair.com } 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 if cpu usage > 95% for 10 cycles then alert if memory usage > 75% for 5 times within 15 cycles then alert