From 9805681f94f37892a72b712da88cc8c0f189df66 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 22 Feb 2023 13:45:21 -0500 Subject: [PATCH] Use consistent connection with other checks --- node-daemon/plugins/psql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-daemon/plugins/psql b/node-daemon/plugins/psql index ec37a4e3..bd4e9e69 100644 --- a/node-daemon/plugins/psql +++ b/node-daemon/plugins/psql @@ -78,7 +78,7 @@ class MonitoringPluginScript(MonitoringPlugin): # Check the Metadata database (primary) try: conn_metadata = connect( - host='127.0.0.1', + host=self.this_node.name, port=self.config["metadata_postgresql_port"], dbname=self.config["metadata_postgresql_dbname"], user=self.config["metadata_postgresql_user"], @@ -101,7 +101,7 @@ class MonitoringPluginScript(MonitoringPlugin): # Check the PowerDNS database (secondary) try: conn_pdns = connect( - host='127.0.0.1', + host=self.this_node.name, port=self.config["pdns_postgresql_port"], dbname=self.config["pdns_postgresql_dbname"], user=self.config["pdns_postgresql_user"],