mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-24 21:26:59 +01:00
Increase swap usage alert threshold to 50%
This commit is contained in:
parent
2188449951
commit
caf03b5ea6
1 changed files with 4 additions and 6 deletions
|
|
@ -1,9 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.services.monit;
|
||||
in
|
||||
{
|
||||
let cfg = config.custom.services.monit;
|
||||
in {
|
||||
options.custom.services.monit = {
|
||||
enable = mkEnableOption "monit";
|
||||
|
||||
|
|
@ -48,7 +46,7 @@ in
|
|||
check system $HOST
|
||||
if cpu usage > 95% for 10 cycles then alert
|
||||
if memory usage > 75% for 5 times within 15 cycles then alert
|
||||
if swap usage > 25% then alert
|
||||
if swap usage > 50% then alert
|
||||
|
||||
check filesystem root with path /
|
||||
if SPACE usage > 90% then alert
|
||||
|
|
@ -56,7 +54,7 @@ in
|
|||
check file daily-backup-done with path /nix/var/data/backup/backup-ok
|
||||
if changed timestamp then alert
|
||||
if timestamp > 26 hours then alert
|
||||
|
||||
|
||||
${cfg.additionalConfig}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue