OS CentiOS 7. I Install Zabbix 4.2 according to instructions - Download and install Zabbix and Postgres 11 - Linux downloads (Red Hat family).
=================================================
In short, it turns out like this:
# rpm -Uvh https://repo.zabbix.com/zabbix/4.2/r...el7.noarch.rpm
# yum clean all
# yum -y install zabbix-server-pgsql zabbix-web-pgsql zabbix-agent
# yum install https://download.postgresql.org/pub/...est.noarch.rpm
# yum install postgresql11
# yum install postgresql11-server
# /usr/pgsql-11/bin/postgresql-11-setup initdb
# systemctl enable postgresql-11
# systemctl start postgresql-11
# sudo -u postgres createuser --pwprompt zabbix
# sudo -u postgres createdb -O zabbix zabbix
# zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbix psql zabbix
# systemctl enable zabbix-server zabbix-agent httpd
# systemctl restart zabbix-server zabbix-agent httpd
==========================================
postgresql.conf
listen_addresses = '*'
pg_hba.conf (I already allowed everything that is possible)
local all all peer
host all all 127.0.0.1/32 md5
local replication all peer
host replication all 127.0.0.1/32 ident
host replication all ::1/128 ident
host all all 0.0.0.0/0 md5
zabbix_server.conf
DBHost=
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
When I try to install the frontend, in step «Configure DB connection», I get an error all the time: Cannot connect to the database (see pic.)
I CAN connect to the database from my computer, but installer localy cannot.
Why can't the installer connect to the database? Maybe it problem package - zabbix-web-pgsql?
=================================================
In short, it turns out like this:
# rpm -Uvh https://repo.zabbix.com/zabbix/4.2/r...el7.noarch.rpm
# yum clean all
# yum -y install zabbix-server-pgsql zabbix-web-pgsql zabbix-agent
# yum install https://download.postgresql.org/pub/...est.noarch.rpm
# yum install postgresql11
# yum install postgresql11-server
# /usr/pgsql-11/bin/postgresql-11-setup initdb
# systemctl enable postgresql-11
# systemctl start postgresql-11
# sudo -u postgres createuser --pwprompt zabbix
# sudo -u postgres createdb -O zabbix zabbix
# zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbix psql zabbix
# systemctl enable zabbix-server zabbix-agent httpd
# systemctl restart zabbix-server zabbix-agent httpd
==========================================
postgresql.conf
listen_addresses = '*'
pg_hba.conf (I already allowed everything that is possible)
local all all peer
host all all 127.0.0.1/32 md5
local replication all peer
host replication all 127.0.0.1/32 ident
host replication all ::1/128 ident
host all all 0.0.0.0/0 md5
zabbix_server.conf
DBHost=
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
When I try to install the frontend, in step «Configure DB connection», I get an error all the time: Cannot connect to the database (see pic.)
I CAN connect to the database from my computer, but installer localy cannot.
Why can't the installer connect to the database? Maybe it problem package - zabbix-web-pgsql?
Comment