diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-17 01:15:04 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-17 01:15:04 +0100 |
commit | 71a2425ed95120a6de3a41bb233b1066779d4c26 (patch) | |
tree | 007f2756abab644604577352da28b1fd4c20df44 /modules/private/monitoring/objects_eldiron.nix | |
parent | 981fa80354fd6f00f49446777c38f77bd8a65f65 (diff) | |
download | Nix-71a2425ed95120a6de3a41bb233b1066779d4c26.tar.gz Nix-71a2425ed95120a6de3a41bb233b1066779d4c26.tar.zst Nix-71a2425ed95120a6de3a41bb233b1066779d4c26.zip |
Add e-mail checks monitoring
Diffstat (limited to 'modules/private/monitoring/objects_eldiron.nix')
-rw-r--r-- | modules/private/monitoring/objects_eldiron.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/private/monitoring/objects_eldiron.nix b/modules/private/monitoring/objects_eldiron.nix index bee4645..92f997f 100644 --- a/modules/private/monitoring/objects_eldiron.nix +++ b/modules/private/monitoring/objects_eldiron.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { lib, hostFQDN, ... }: | 1 | { lib, hostFQDN, emailCheck, ... }: |
2 | let | 2 | let |
3 | defaultPassiveInfo = { | 3 | defaultPassiveInfo = { |
4 | filter = lib.attrsets.filterAttrs | 4 | filter = lib.attrsets.filterAttrs |
@@ -24,5 +24,8 @@ in | |||
24 | use = "local-service"; | 24 | use = "local-service"; |
25 | check_command = ["check_mailq"]; | 25 | check_command = ["check_mailq"]; |
26 | } | 26 | } |
27 | (emailCheck "eldiron" hostFQDN // { | ||
28 | passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-email"; freshness_threshold = "1350"; }; | ||
29 | }) | ||
27 | ]; | 30 | ]; |
28 | } | 31 | } |