diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-02 01:33:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-02 01:33:08 +0100 |
commit | eb071dd42518cb40d629e5bde29c6aed72e4d4df (patch) | |
tree | f9a109801d540ef8fc4c1b0656436f560ad1f6b7 /modules/private/monitoring/objects_eldiron.nix | |
parent | 9f2025235d888eb4a7822024a5fad2e288388814 (diff) | |
download | Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.tar.gz Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.tar.zst Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.zip |
Use nix expressions to build monitoring list
Diffstat (limited to 'modules/private/monitoring/objects_eldiron.nix')
-rw-r--r-- | modules/private/monitoring/objects_eldiron.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/private/monitoring/objects_eldiron.nix b/modules/private/monitoring/objects_eldiron.nix new file mode 100644 index 0000000..897fc15 --- /dev/null +++ b/modules/private/monitoring/objects_eldiron.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | { ... }: | ||
2 | { | ||
3 | service = [ | ||
4 | { | ||
5 | service_description = "Postgresql replication for backup-2 is up to date"; | ||
6 | use = "local-service"; | ||
7 | check_command = ["check_postgresql_replication" "backup-2" "/run/postgresql" "5432"]; | ||
8 | } | ||
9 | { | ||
10 | service_description = "mailq is empty"; | ||
11 | use = "local-service"; | ||
12 | check_command = ["check_mailq"]; | ||
13 | } | ||
14 | ]; | ||
15 | } | ||