pippozq / zabbix-ansible

Install zabbix server and agent with ansible
Apache License 2.0
7 stars 3 forks source link

error while running init_zabbix_server.yml #1

Open vinaysaiadepu opened 6 years ago

vinaysaiadepu commented 6 years ago

ansiblezabbixserver

Hi, I am facing an issue while running init_zabbix_server.yml, could you please help me here. Below is the error:

TASK [init_zabbix_server : Install python expect] ** ok: [192.168.56.110]

TASK [init_zabbix_server : Init Zabbix Server Postgres Database] *** fatal: [192.168.56.110]: FAILED! => {"changed": true, "cmd": "/bin/bash -c \"zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | psql -U zabbix -h 192.168.56.110 zabbix\"", "delta": "0:00:00.116910", "end": "2018-08-31 08:16:48.232396", "msg": "non-zero return code", "rc": 2, "start": "2018-08-31 08:16:48.115486", "stdout": "psql: could not connect to server: Connection refused\r\n\tIs the server running on host \"192.168.56.110\" and accepting\r\n\tTCP/IP connections on port 5432?\r\n\r\ngzip: stdout: Broken pipe", "stdout_lines": ["psql: could not connect to server: Connection refused", "\tIs the server running on host \"192.168.56.110\" and accepting", "\tTCP/IP connections on port 5432?", "", "gzip: stdout: Broken pipe"]}

PLAY RECAP ***** 192.168.56.110 : ok=10 changed=0 unreachable=0 failed=1

pippozq commented 6 years ago

with the error message,"psql: could not connect to server: Connection refused",i think you need check the postgres service