puppet: Update nagios check_postgres_replication_lag to be on DB hosts

7d4a370a57 attempted to move the replication check to on the
PostgreSQL hosts.  While it updated the _check_ to assume it was
running and talking to a local PostgreSQL instance, the configuration
and installation for the check were not updated.  As such, the check
ran on the nagios host for each DB host, and produced no output.

Start distributing the check to all apopdb hosts, and configure nagios
to use the SSH tunnel to get there.
This commit is contained in:
Alex Vandiver
2020-07-14 15:33:12 -07:00
committed by Tim Abbott
parent 56e8cca025
commit 31d80a77d4
2 changed files with 1 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ define command {
define command {
command_name check_postgres_replication_lag
command_line /usr/lib/nagios/plugins/zulip_nagios_server/check_postgres_replication_lag
command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_postgres_appdb/check_postgres_replication_lag'
}
define command {