diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-02 12:56:25 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-02 12:56:25 +0200 |
commit | 2d7caffb06095924f324870a30b119246c6f9913 (patch) | |
tree | 20d8f910918545489a916f9bbfe6ebfd7b5e5307 /modules/private/monitoring/default.nix | |
parent | 34a1646140866e0dfaa90b6f9e26ff6562a24136 (diff) | |
download | Nix-2d7caffb06095924f324870a30b119246c6f9913.tar.gz Nix-2d7caffb06095924f324870a30b119246c6f9913.tar.zst Nix-2d7caffb06095924f324870a30b119246c6f9913.zip |
Adjust monitoring resources and add bandwidth checks
Diffstat (limited to 'modules/private/monitoring/default.nix')
-rw-r--r-- | modules/private/monitoring/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/private/monitoring/default.nix b/modules/private/monitoring/default.nix index 316c2dd..8f8b6c0 100644 --- a/modules/private/monitoring/default.nix +++ b/modules/private/monitoring/default.nix | |||
@@ -70,20 +70,26 @@ let | |||
70 | wrapProgram $out/check_ovh_sms --prefix PATH : ${lib.makeBinPath [ | 70 | wrapProgram $out/check_ovh_sms --prefix PATH : ${lib.makeBinPath [ |
71 | (pkgs.python3.withPackages (ps: [ps.ovh])) | 71 | (pkgs.python3.withPackages (ps: [ps.ovh])) |
72 | ]} | 72 | ]} |
73 | wrapProgram $out/check_bandwidth --prefix PATH : ${lib.makeBinPath [ | ||
74 | pkgs.iproute pkgs.bc | ||
75 | ]} | ||
73 | ''; | 76 | ''; |
74 | toObjects = pkgs.callPackage ./to_objects.nix {}; | 77 | toObjects = pkgs.callPackage ./to_objects.nix {}; |
75 | commonConfig = { | 78 | commonConfig = { |
76 | eldiron = { | 79 | eldiron = { |
77 | processWarn = "250"; processAlert = "400"; | 80 | processWarn = "250"; processAlert = "400"; |
78 | loadWarn = "8.0"; loadAlert = "10.0"; | 81 | loadWarn = "8.0"; loadAlert = "10.0"; |
82 | interface = "eth0"; | ||
79 | }; | 83 | }; |
80 | backup-2 = { | 84 | backup-2 = { |
81 | processWarn = "60"; processAlert = "70"; | 85 | processWarn = "60"; processAlert = "70"; |
82 | loadWarn = "1.0"; loadAlert = "2.0"; | 86 | loadWarn = "1.0"; loadAlert = "2.0"; |
87 | interface = "ens3"; | ||
83 | }; | 88 | }; |
84 | monitoring-1 = { | 89 | monitoring-1 = { |
85 | processWarn = "50"; processAlert = "60"; | 90 | processWarn = "50"; processAlert = "60"; |
86 | loadWarn = "1.0"; loadAlert = "2.0"; | 91 | loadWarn = "1.0"; loadAlert = "2.0"; |
92 | interface = "ens3"; | ||
87 | }; | 93 | }; |
88 | }; | 94 | }; |
89 | masterPassiveObjects = let | 95 | masterPassiveObjects = let |