network monitoring

This commit is contained in:
Alex Tau 2025-06-07 15:59:05 +03:00
parent 8af7b683b6
commit 8b18d407d7
21 changed files with 434 additions and 53 deletions

View 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.";
};
};
}