Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Rename to check_postgresql_replication_lag.

Alex Vandivereaa99359b13b
diff --git a/docs/production/troubleshooting.md b/docs/production/troubleshooting.md
index 17a1d9160cc..bccdb5222e1 100644
--- a/docs/production/troubleshooting.md
+++ b/docs/production/troubleshooting.md
@@ -246,7 +246,7 @@ Database monitoring:
being processed properly or getting backlogged.
* `check_postgres`: General checks for database health.
* `check_postgresql_backup`: Checks status of Postgres backups.
-* `check_postgres_replication_lag`: Checks whether Postgres streaming
+* `check_postgresql_replication_lag`: Checks whether Postgres streaming
replication is up to date.
Standard server monitoring:
diff --git a/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgres_replication_lag b/puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag
similarity index 100%
rename from puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgres_replication_lag
rename to puppet/zulip/files/nagios_plugins/zulip_postgresql/check_postgresql_replication_lag
diff --git a/puppet/zulip_ops/files/nagios3/commands.cfg b/puppet/zulip_ops/files/nagios3/commands.cfg
index fb0e8464a0c..e97ca5d0992 100644
--- a/puppet/zulip_ops/files/nagios3/commands.cfg
+++ b/puppet/zulip_ops/files/nagios3/commands.cfg
@@ -157,8 +157,8 @@ define command {
}
define command {
- command_name check_postgres_replication_lag
- command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios -t 30 -i /var/lib/nagios/.ssh/id_ed25519 -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_postgresql/check_postgres_replication_lag'
+ command_name check_postgresql_replication_lag
+ command_line /usr/lib/nagios/plugins/check_by_ssh -l nagios -t 30 -i /var/lib/nagios/.ssh/id_ed25519 -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/zulip_postgresql/check_postgresql_replication_lag'
}
define command {
diff --git a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
index 770243664fe..2fdca6f1493 100644
--- a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
@@ -253,7 +253,7 @@ define service {
define service{
use generic-service
service_description Check Postgres replication lag
- check_command check_postgres_replication_lag
+ check_command check_postgresql_replication_lag
hostgroup postgresql
contact_groups admins
}