mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
network monitoring
This commit is contained in:
parent
8af7b683b6
commit
8b18d407d7
21 changed files with 434 additions and 53 deletions
39
modules/suboptions/netInterfaceOptions.nix
Normal file
39
modules/suboptions/netInterfaceOptions.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
warningThresholdSentBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Sent bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
criticalThresholdSentBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Sent bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
warningThresholdRecvBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Received bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
criticalThresholdRecvBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Received bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
warningThresholdCombBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Combined (sent + received) bytes per second threshold for a warning alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
criticalThresholdCombBytes = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.ints.positive;
|
||||
default = null;
|
||||
description = "Combined (sent + received) bytes per second threshold for a critical alert to be sent. If null, this threshold is disabled and not checked.";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue