I have upgraded my zabbix server from 5.2. to 5.4. when I tried to upgrade zabbix-agent2 from version 5.2.3 to 5.4.1 on a red hat 8 server with postgresql 13. It shows me these error messages with postgresql in the zabbix agent log:
2022/06/29 10:37:40.447001 [Postgres] Connection failed: failed to connect to `host=localhost user=zabbix_mon database=sonarqube`: hostname resolving error (lookup localhost: no such host).
2022/06/29 10:37:40.447069 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
2022/06/29 10:37:40.447116 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
2022/06/29 10:37:40.447130 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
I have tried to use a later version of the zabbix 2 agent such as 6.0.6, but it continues to give me the same error.
How can I solve this problem?
2022/06/29 10:37:40.447001 [Postgres] Connection failed: failed to connect to `host=localhost user=zabbix_mon database=sonarqube`: hostname resolving error (lookup localhost: no such host).
2022/06/29 10:37:40.447069 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
2022/06/29 10:37:40.447116 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
2022/06/29 10:37:40.447130 cannot accept incoming connection: accept tcp [::]:10050: accept4: too many open files
I have tried to use a later version of the zabbix 2 agent such as 6.0.6, but it continues to give me the same error.
How can I solve this problem?
Comment