I have Windows Server 2012 install PostgreSQL, Zabbix agent 2 and I did steps below:
Create PostgreSQL user to monitor and inherit permissions from the default role pg_monitor:
CREATE USER zbx_monitor WITH PASSWORD '123456a@A' INHERIT;
GRANT pg_monitor TO zbx_monitor;
Edit pg_hba.conf to allow connections from Zabbix agent (C:\Program Files\PostgreSQL\<version>\data\pg_hba.conf):
Add these lines to the end:
host all zbx_monitor localhost md5
From my Zabbix Server (Ubuntu 20.04 LTS), I added the host and modify macro {$PG.URI}=tcp://myserverip:5432 {$PG.USER}=zbx_monitor {$PG.PASSWORD} = 123456a@A
However I still can not get the monitoring success, the result is "Unknown metric pgsql.ping"
Anyone please help me, is there any lack of setting?
Create PostgreSQL user to monitor and inherit permissions from the default role pg_monitor:
CREATE USER zbx_monitor WITH PASSWORD '123456a@A' INHERIT;
GRANT pg_monitor TO zbx_monitor;
Edit pg_hba.conf to allow connections from Zabbix agent (C:\Program Files\PostgreSQL\<version>\data\pg_hba.conf):
Add these lines to the end:
host all zbx_monitor localhost md5
From my Zabbix Server (Ubuntu 20.04 LTS), I added the host and modify macro {$PG.URI}=tcp://myserverip:5432 {$PG.USER}=zbx_monitor {$PG.PASSWORD} = 123456a@A
However I still can not get the monitoring success, the result is "Unknown metric pgsql.ping"
Anyone please help me, is there any lack of setting?
Comment