mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
network monitoring
This commit is contained in:
parent
8af7b683b6
commit
8b18d407d7
21 changed files with 434 additions and 53 deletions
|
|
@ -60,6 +60,15 @@ package:
|
|||
warning_percentage = warningPercentage;
|
||||
critical_percentage = criticalPercentage;
|
||||
};
|
||||
|
||||
net.interfaces = lib.mapAttrs (_: interfaceCfg: {
|
||||
warning_threshold_sent_bytes = interfaceCfg.warningThresholdSentBytes;
|
||||
critical_threshold_sent_bytes = interfaceCfg.criticalThresholdSentBytes;
|
||||
warning_threshold_recv_bytes = interfaceCfg.warningThresholdRecvBytes;
|
||||
critical_threshold_recv_bytes = interfaceCfg.warningThresholdRecvBytes;
|
||||
warning_threshold_comb_bytes = interfaceCfg.warningThresholdCombBytes;
|
||||
critical_threshold_comb_bytes = interfaceCfg.criticalThresholdCombBytes;
|
||||
}) cfg.checks.net.interfaces;
|
||||
};
|
||||
};
|
||||
in lib.mkIf cfg.enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue