diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 17:30:47 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-10-03 17:30:47 +0100 |
commit | a343439315023ecf7409748ef07d86fc007d388e (patch) | |
tree | 3e5a9ee3c334f813126e379bc27ea2851816def0 | |
parent | Add running kernel version check (diff) | |
download | config-a343439315023ecf7409748ef07d86fc007d388e.tar.bz2 config-a343439315023ecf7409748ef07d86fc007d388e.tar.xz config-a343439315023ecf7409748ef07d86fc007d388e.zip |
Add PostgreSQL replication check
-rw-r--r-- | nagios/objects/cluster.cfg | 6 | ||||
-rw-r--r-- | nagios/objects/commands.cfg | 5 |
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 } |