Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error agent info #87

Open
Dozentz opened this issue Sep 28, 2021 · 2 comments
Open

Error agent info #87

Dozentz opened this issue Sep 28, 2021 · 2 comments
Labels

Comments

@Dozentz
Copy link

Dozentz commented Sep 28, 2021

PostgreSQL 13
Zabbix 5.4

database zabbixdb
user zbx_monitor

pointed out in pg_hba.conf
host zabbixdb zbx_monitor 127.0.0.1/32 trust

Agent info
Preprocessing failed for: Password zbx_monitor: .psql: error: fe_sendauth: no password supplied

  1. Failed: cannot extract value from json by path "$.deadlocks": cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'password zbx_monitor:
    psql: error: fe_sendauth: no password supplied'

When entering a command, it asks for a password
sudo -u zabbix psql -h 127.0.0.1 -p 5432 -U zbx_monitor -d zabbixdb -l

@stephankn
Copy link
Collaborator

you have to check your PostgreSQL setup to enable access for the agent. Please confirm that you are using IPv4 for connection. It might be that you are using a domain socket or IPv6 instead, so your setting won't work. Check postgres logs for further details. So either configure access without password prompt or provide a password.

@Dozentz
Copy link
Author

Dozentz commented Sep 29, 2021

Everything worked, thanks. The error was in the pg_hba.conf file, I indicated at the very end, which contradicts all the rules.
Tell me where to put the .pgpass file for alternative authorization. And also tell me the output key the size of the base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants