summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nagios/objects/cluster.cfg6
-rw-r--r--nagios/objects/commands.cfg5
2 files changed, 11 insertions, 0 deletions
diff --git a/nagios/objects/cluster.cfg b/nagios/objects/cluster.cfg
index aa4db76..e65b9e6 100644
--- a/nagios/objects/cluster.cfg
+++ b/nagios/objects/cluster.cfg
@@ -208,6 +208,12 @@ define service {
}
define service {
use local-service
+ host_name virtualip
+ service_description PostgreSQL replication
+ check_command check_pg_repl
+}
+define service {
+ use local-service
hostgroup_name linux-servers
service_description MySQL
check_command check_mysql
diff --git a/nagios/objects/commands.cfg b/nagios/objects/commands.cfg
index 4a0fdee..5e1fa15 100644
--- a/nagios/objects/commands.cfg
+++ b/nagios/objects/commands.cfg
@@ -140,6 +140,11 @@ define command {
}
define command {
+ command_name check_pg_repl
+ command_line $USER1$/check_pgactivity -h firebrand,defiant -s hot_standby_delta -U postgres
+}
+
+define command {
command_name check_mysql
command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P 13306 -S -w 10 -c 60 -u nagios -p r3pl
}