Use consistent connection with other checks
This commit is contained in:
parent
6c9abb2abe
commit
9805681f94
|
@ -78,7 +78,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||||
# Check the Metadata database (primary)
|
# Check the Metadata database (primary)
|
||||||
try:
|
try:
|
||||||
conn_metadata = connect(
|
conn_metadata = connect(
|
||||||
host='127.0.0.1',
|
host=self.this_node.name,
|
||||||
port=self.config["metadata_postgresql_port"],
|
port=self.config["metadata_postgresql_port"],
|
||||||
dbname=self.config["metadata_postgresql_dbname"],
|
dbname=self.config["metadata_postgresql_dbname"],
|
||||||
user=self.config["metadata_postgresql_user"],
|
user=self.config["metadata_postgresql_user"],
|
||||||
|
@ -101,7 +101,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||||
# Check the PowerDNS database (secondary)
|
# Check the PowerDNS database (secondary)
|
||||||
try:
|
try:
|
||||||
conn_pdns = connect(
|
conn_pdns = connect(
|
||||||
host='127.0.0.1',
|
host=self.this_node.name,
|
||||||
port=self.config["pdns_postgresql_port"],
|
port=self.config["pdns_postgresql_port"],
|
||||||
dbname=self.config["pdns_postgresql_dbname"],
|
dbname=self.config["pdns_postgresql_dbname"],
|
||||||
user=self.config["pdns_postgresql_user"],
|
user=self.config["pdns_postgresql_user"],
|
||||||
|
|
Loading…
Reference in New Issue