aboutsummaryrefslogtreecommitdiff
path: root/flakes/private
diff options
context:
space:
mode:
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 = {