Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24591

zabbix doesn't connect to PSQL unix socket

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.30
    • None
    • None

      Steps to reproduce:

      1. Change DBHost to 
        DBHost=/var/run/postgresql
      2. Change postgresql.conf to listen_addresses = '' (no TCP, only unix socket)
      3. Restart zabbix

      Result:
      See the result in below screenshots.

      Zabbix server actually starts, but frontend says that zabbix wasn't able to conenct to the databse.

      If I change the postgresql config to listen on TCP (listen_addresses = '*'), zabbix starts normally, but traffic can be seen on loopback device - which obviously means that zabbix talks to PSQL via TCP.

      Expected:
      No traffic on loopback device, and zabbix being able to connect to postgresql when postgresql does not listen on any TCP port

      I am using version 6.2.3 which somehow isn't available to pick in the dropdown menu.

        1. zabbix1.png
          zabbix1.png
          277 kB
        2. zabbix2.png
          zabbix2.png
          7 kB

            azyla Arkadiusz Zyla
            gasperc gasperc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: