diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /modules/private/monitoring/objects_quatresaisons.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'modules/private/monitoring/objects_quatresaisons.nix')
-rw-r--r-- | modules/private/monitoring/objects_quatresaisons.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/modules/private/monitoring/objects_quatresaisons.nix b/modules/private/monitoring/objects_quatresaisons.nix deleted file mode 100644 index f30cf81..0000000 --- a/modules/private/monitoring/objects_quatresaisons.nix +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | { lib, hostFQDN, emailCheck, openldap, ... }: | ||
2 | let | ||
3 | defaultPassiveInfo = { | ||
4 | filter = lib.attrsets.filterAttrs | ||
5 | (k: v: builtins.elem k ["service_description"] || builtins.substring 0 1 k == "_"); | ||
6 | use = "external-passive-service"; | ||
7 | freshness_threshold = "450"; | ||
8 | retry_interval = "1"; | ||
9 | servicegroups = "webstatus-resources"; | ||
10 | host_name = hostFQDN; | ||
11 | }; | ||
12 | in | ||
13 | { | ||
14 | resources = { | ||
15 | USER212 = "{{ .monitoring.quatresaisons.naemon_ldap }}"; | ||
16 | }; | ||
17 | activatedPlugins = [ "megaraid" "command" "postgresql" ]; | ||
18 | service = [ | ||
19 | { | ||
20 | passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-resources"; }; | ||
21 | service_description = "No RAID device is degraded"; | ||
22 | use = "local-service"; | ||
23 | check_command = ["check_megaraid"]; | ||
24 | } | ||
25 | { | ||
26 | passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-resources"; }; | ||
27 | service_description = "LDAP is running"; | ||
28 | use = "local-service"; | ||
29 | check_command = [ "check_command_status" "${openldap}/bin/ldapwhoami -D uid=naemon,ou=services,dc=salle-s,dc=org -w $USER212$" "0" ""]; | ||
30 | } | ||
31 | { | ||
32 | passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-resources"; }; | ||
33 | service_description = "Postgresql is running"; | ||
34 | use = "local-service"; | ||
35 | check_command = [ "check_postgresql_database_count" "/run/postgresql" "5432" "3" ]; | ||
36 | } | ||
37 | ]; | ||
38 | } | ||