Hello Guys, I have the following problem:
Environment: Zabbix Server: CentOS Linux 7 / Zabbix 4.4.3 / MySQL
Zabbix Agent: CentOS Linux 7 / Zabbix 4. 4.1 / PostgreSQL
I installed the PostgreSQL template provided for the zabbix.com page:
After that I received the following error message:
I checked the zabbix.log and I received the following error message:
30268:20191204:080038.911 Failed to execute command " psql -qtAX -h "127.0.0.1" -p "5432" -U "zbx_monitor" -d "postgres" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"": Timeout while executing a shell script.
After that I tested the command and I received the following output:
******************************
[zavatec@linuxzabbix]$ psql -qtAX -h "127.0.0.1" -p "5432" -U "zbx_monitor" -d "postgres" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"
Password for user zbx_monitor:
1271135
[zavatec@VM-EMSSANAR-DBMASTER-IFX zabbix]$
*******************************
Nota: I think that the command couldn't find the .pgpass on the server. ( The file was created on the /var/lib/zabbix directory)
Can you help me with this issue?
Thanks in advance.
Regards.
Environment: Zabbix Server: CentOS Linux 7 / Zabbix 4.4.3 / MySQL
Zabbix Agent: CentOS Linux 7 / Zabbix 4. 4.1 / PostgreSQL
I installed the PostgreSQL template provided for the zabbix.com page:
After that I received the following error message:
| 2019-12-04 09:35:22 | Password for user zbx_monitor: psql: fe_sendauth: no password supplied |
I checked the zabbix.log and I received the following error message:
30268:20191204:080038.911 Failed to execute command " psql -qtAX -h "127.0.0.1" -p "5432" -U "zbx_monitor" -d "postgres" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"": Timeout while executing a shell script.
After that I tested the command and I received the following output:
******************************
[zavatec@linuxzabbix]$ psql -qtAX -h "127.0.0.1" -p "5432" -U "zbx_monitor" -d "postgres" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"
Password for user zbx_monitor:
1271135
[zavatec@VM-EMSSANAR-DBMASTER-IFX zabbix]$
*******************************
Nota: I think that the command couldn't find the .pgpass on the server. ( The file was created on the /var/lib/zabbix directory)
Can you help me with this issue?
Thanks in advance.
Regards.
Comment