Greetings,
I am facing a problem with the Zabbix agent with Template DB PostgreSQL. I've been trying to solve the problem, but I've run out of ideas.
Basic information:
Zabbix version: 5.0.19
PostgreSQL version: 13.5
Message: Preprocessing failed for: psql: error: FATAL: password authentication failed for user "zbx_monitor"
1 Failed: cannot extract value from json by path "$.buffers_checkpoint": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'psql: error: FATAL: password authentication failed for user 'zbx_monitor''
Description: The agent is on a separate machine, along with the database. The database and the agent connect remotely to the server. I followed the instructions from here https://www.zabbix.com/documentation...x/zabbix_agent
I checked the password in the .pgpass file, also using the psql -h 127.0.0.1 --username=zbx_monitor postgres command I found that I was connecting to the database without a problem, no password needed. The problem is specifically with this template. I would like to have a detailed view of the database. When it comes to information from the machine it goes to Zabbix without any problem. I didn't notice the error logs. I also entered the password in macro just in case - didn't help. Has anyone encountered a problem of this type? Any suggestions? From what I've read it hasn't been tested with PostgreSQL 13. Maybe that's the reason? Has anyone tried it?
I am facing a problem with the Zabbix agent with Template DB PostgreSQL. I've been trying to solve the problem, but I've run out of ideas.
Basic information:
Zabbix version: 5.0.19
PostgreSQL version: 13.5
Message: Preprocessing failed for: psql: error: FATAL: password authentication failed for user "zbx_monitor"
1 Failed: cannot extract value from json by path "$.buffers_checkpoint": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'psql: error: FATAL: password authentication failed for user 'zbx_monitor''
Description: The agent is on a separate machine, along with the database. The database and the agent connect remotely to the server. I followed the instructions from here https://www.zabbix.com/documentation...x/zabbix_agent
I checked the password in the .pgpass file, also using the psql -h 127.0.0.1 --username=zbx_monitor postgres command I found that I was connecting to the database without a problem, no password needed. The problem is specifically with this template. I would like to have a detailed view of the database. When it comes to information from the machine it goes to Zabbix without any problem. I didn't notice the error logs. I also entered the password in macro just in case - didn't help. Has anyone encountered a problem of this type? Any suggestions? From what I've read it hasn't been tested with PostgreSQL 13. Maybe that's the reason? Has anyone tried it?
Seems there is mistake in whole syntax. I personally would change Userparameters, as it seems to fix whole syntax. and removes extra parameters ($5)
Comment