dalibo / temboard

PostgreSQL Remote Control
https://labs.dalibo.com/temboard
Other
455 stars 54 forks source link

Message error when adding the metric replication_lag #1491

Open Hindossa opened 2 months ago

Hindossa commented 2 months ago

Hello,

We have an error message after adding the metric replication_lag in temboard-agent.conf. The agent try to connect to the primary server using the default port 5432.However , the port of the database is 9418 and it's correctly configured in temboard-agent.conf and postgresql.conf.

temboard-agent[11837]: Is the server running on that host and accepting TCP/IP connections? temboard-agent[11837]: Traceback (most recent call last): temboard-agent[11837]: File "/usr/lib/python3.6/site-packages/temboardagent/plugins/monitoring/probes.py", line 737, in run temboard-agent[11837]: dsn, connection_factory=PhysicalReplicationConnection temboard-agent[11837]: File "/usr/lib64/python3.6/site-packages/psycopg2/init.py", line 130, in connect temboard-agent[11837]: conn = _connect(dsn, connection_factory=connection_factory, *kwasync) temboard-agent[11837]: File "/usr/lib64/python3.6/site-packages/psycopg2/extras.py", line 501, in init temboard-agent[11837]: super(PhysicalReplicationConnection, self).init(args, **kwargs) temboard-agent[11837]: psycopg2.OperationalError: connection to server at "test-x1" (10.118.162.120), port 5432 failed: Connection refused temboard-agent[11837]: Is the server running on that host and accepting TCP/IP connections?

The replication tool used is repmgr .

Could you help us to resolve this issue?

Thank you.

Best Regards

Hindossa commented 1 month ago

Hello,

Could you help us to resolve this issue ?

Thank you.

Best Regards,

Hindossa commented 1 month ago

Hello ,

Any suggestion to resolve this problem?

Thanks.

BR,

Hindossa commented 1 month ago

Hello,

Could you help us to resolve this issue please ?

Thank you.

BR,

Hindossa commented 1 week ago

Hello,

Any help please ?

Best Regards,