Ad Widget

Collapse

DBSocket Variable ignored

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garg
    Junior Member
    • Jun 2013
    • 1

    #1

    DBSocket Variable ignored

    I installed zabbix 2.0.6 server on centos 6 from the epel repository using

    zabbix20-web-pgsql and zabbix20-server-pgsql

    Everything works great but only if the postgresql socket is at /tmp/.s.PGSQL.5432

    However, I wanted to move the socket to /var/run/postgresql so I did that by editing the postgresql.conf file and that worked.

    But when I edited, zabbix_server.conf and changed the DBSocket variable to
    'DBSocket=/var/run/postgresql' (I also tried /var/run/postgresql/.s.PGSQL.5432), I got the following messages in /var/log/zabbix/zabbix_server.log:

    Code:
      2046:20130618:103134.854 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Permission denied
            Is the server running locally and accepting
            connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
    Is there a reason why DBSocket is being ignored?
Working...