mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36: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, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let cfg = config.custom.services.monit;
|
||||||
cfg = config.custom.services.monit;
|
in {
|
||||||
in
|
|
||||||
{
|
|
||||||
options.custom.services.monit = {
|
options.custom.services.monit = {
|
||||||
enable = mkEnableOption "monit";
|
enable = mkEnableOption "monit";
|
||||||
|
|
||||||
|
|
@ -48,7 +46,7 @@ in
|
||||||
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
|
||||||
if swap usage > 25% then alert
|
if swap usage > 50% then alert
|
||||||
|
|
||||||
check filesystem root with path /
|
check filesystem root with path /
|
||||||
if SPACE usage > 90% then alert
|
if SPACE usage > 90% then alert
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue