Ad Widget

Collapse

Zabbix and PostgreSQL TLS error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JC_D
    Junior Member
    • Feb 2025
    • 2

    #1

    Zabbix and PostgreSQL TLS error

    Hello!

    I'm trying to set up Zabbix 7.0 with PostgreSQL 16 on two hosts with Debian 12. I set up TLS certificates to connect to the database. If I run the psql command on the host with the Zabbix server, I successfully connect to the database.

    Code:
    psql "host=zabbix-db.domain.local port=5432 user=zabbix dbname=zabbix sslmode=verify-full sslcert=zabbix.crt sslkey=zabbix.key sslrootcert=ca.crt"
    However, when setting up the connection in the web interface, I get the error:

    Code:
    "Cannot connect to the database."
    Click image for larger version

Name:	image.png
Views:	233
Size:	59.2 KB
ID:	498944
    ​In the database logs I see the message:

    Code:
    "[unknown]@[unknown] LOG: could not accept SSL connection: EOF detected"
    pg_hba.conf contains the following settings:

    Code:
    # IPv4 remote connections for authenticated users
    
    hostssl all zabbix [URL="http://192.168.0.31/32"]192.168.0.31/32[/URL]scram-sha-256 clientcert=verify-full
    Please tell me what the problem could be?
  • ivanmirandaf
    Junior Member
    • Feb 2021
    • 1

    #2
    Você conseguiu resolver? Também estou com o mesmo problema, o backend conecta mas o frontend não.

    Comment

    Working...