aboutsummaryrefslogtreecommitdiff
path: root/flakes/private
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-12-28 15:18:44 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2025-03-14 00:57:49 +0100
commitee99bd561bcb5cb0d8f18c5290840280018c35db (patch)
treefda41fcf2628d41d9e51e52efdbaebaba2baca9b /flakes/private
parent31e6906d71fb5e2133dd91d55196048fcc387ea0 (diff)
downloadNix-ee99bd561bcb5cb0d8f18c5290840280018c35db.tar.gz
Nix-ee99bd561bcb5cb0d8f18c5290840280018c35db.tar.zst
Nix-ee99bd561bcb5cb0d8f18c5290840280018c35db.zip
Add docker monitoring
Diffstat (limited to 'flakes/private')
-rw-r--r--flakes/private/monitoring/myplugins.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/flakes/private/monitoring/myplugins.nix b/flakes/private/monitoring/myplugins.nix
index bb3a383..eb2fbd1 100644
--- a/flakes/private/monitoring/myplugins.nix
+++ b/flakes/private/monitoring/myplugins.nix
@@ -3,6 +3,9 @@ let
3 cfg = config.myServices.monitoring; 3 cfg = config.myServices.monitoring;
4in 4in
5{ 5{
6 base = {
7 debianPackages = [ "perl" "naemon-core" ];
8 };
6 notify-secondary = { 9 notify-secondary = {
7 resources = { 10 resources = {
8 USER200 = config.myEnv.monitoring.status_url; 11 USER200 = config.myEnv.monitoring.status_url;
@@ -18,6 +21,8 @@ in
18 pkgs.curl pkgs.jq 21 pkgs.curl pkgs.jq
19 ]} 22 ]}
20 ''; 23 '';
24 debianScript = "${./plugins}/send_nrdp.sh";
25 debianPackages = [ "curl" "jq" ];
21 }; 26 };
22 notify-primary = { 27 notify-primary = {
23 resources = { 28 resources = {
@@ -53,6 +58,8 @@ in
53 pkgs.iproute pkgs.bc 58 pkgs.iproute pkgs.bc
54 ]} 59 ]}
55 ''; 60 '';
61 debianScript = "${./plugins}/check_bandwidth";
62 debianPackages = [ "bc" "iproute2" ];
56 }; 63 };
57 command = { 64 command = {
58 commands = { 65 commands = {
@@ -283,6 +290,8 @@ in
283 pkgs.gnugrep pkgs.gawk pkgs.procps 290 pkgs.gnugrep pkgs.gawk pkgs.procps
284 ]} 291 ]}
285 ''; 292 '';
293 debianScript = "${./plugins}/check_mem.sh";
294 debianPackages = [ "grep" "mawk" "procps" ];
286 }; 295 };
287 smartctl = { 296 smartctl = {
288 commands = { 297 commands = {