diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-07 15:40:15 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-07 15:40:15 +0100 |
commit | 6015a3b52c3b155ac444aeb39950c38a5e653101 (patch) | |
tree | 47ab7a69ddeaedab40a20b0c5cb8a7cc98b0f1f1 /modules/private/monitoring/objects_common.nix | |
parent | dded66995529a0419cc56778f4ebb4247c2ab765 (diff) | |
download | Nix-6015a3b52c3b155ac444aeb39950c38a5e653101.tar.gz Nix-6015a3b52c3b155ac444aeb39950c38a5e653101.tar.zst Nix-6015a3b52c3b155ac444aeb39950c38a5e653101.zip |
Add mysql and redis monitoring
Diffstat (limited to 'modules/private/monitoring/objects_common.nix')
-rw-r--r-- | modules/private/monitoring/objects_common.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/private/monitoring/objects_common.nix b/modules/private/monitoring/objects_common.nix index 8466fdb..1ab9fc3 100644 --- a/modules/private/monitoring/objects_common.nix +++ b/modules/private/monitoring/objects_common.nix | |||
@@ -74,7 +74,9 @@ | |||
74 | check_memory = "$USER2$/check_mem.sh -w $ARG1$ -c $ARG2$"; | 74 | check_memory = "$USER2$/check_mem.sh -w $ARG1$ -c $ARG2$"; |
75 | check_command_output = "$USER2$/check_command -c \"$ARG1$\" -s 0 -o \"$ARG2$\" $ARG3$"; | 75 | check_command_output = "$USER2$/check_command -c \"$ARG1$\" -s 0 -o \"$ARG2$\" $ARG3$"; |
76 | check_ntp = "$USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org"; | 76 | check_ntp = "$USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org"; |
77 | check_mysql_replication = "${sudo} -u mysql $USER2$/check_mysql_replication \"$ARG1$\" \"$ARG2$\""; | ||
77 | check_postgresql_replication = "${sudo} -u postgres $USER2$/check_postgres_replication \"$ARG1$\" \"$ARG2$\" \"$ARG3$\""; | 78 | check_postgresql_replication = "${sudo} -u postgres $USER2$/check_postgres_replication \"$ARG1$\" \"$ARG2$\" \"$ARG3$\""; |
79 | check_redis_replication = "${sudo} -u redis $USER2$/check_redis_replication \"$ARG1$\""; | ||
78 | check_mailq = "$USER1$/check_mailq -s -w 1 -c 2"; | 80 | check_mailq = "$USER1$/check_mailq -s -w 1 -c 2"; |
79 | 81 | ||
80 | check_host_alive = "$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5"; | 82 | check_host_alive = "$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5"; |