I am trying to download zabbix onto Ubuntu 18.04.1. I have followed the instructions from the website for this but have been unable to get past the configure DB connection when configuring the frontend. I have the error "Cannot connect to the database - unable to select configuration". I have tried the following with these results.
caroline@zabbix:/$ ls -1 /usr/share/doc/zabbix-server-mysql*/
changelog.Debian.gz
copyright
create.sql.gz
caroline@zabbix:/$ cat /var/log/zabbix/zabbix_server.log
17625:20180925:110411.498 Starting Zabbix Server. Zabbix 3.4.14 (revision 84877).
17625:20180925:110411.498 ****** Enabled features ******
17625:20180925:110411.498 SNMP monitoring: YES
17625:20180925:110411.498 IPMI monitoring: YES
17625:20180925:110411.498 Web monitoring: YES
17625:20180925:110411.498 VMware monitoring: YES
17625:20180925:110411.498 SMTP authentication: YES
17625:20180925:110411.498 Jabber notifications: YES
17625:20180925:110411.498 Ez Texting notifications: YES
17625:20180925:110411.498 ODBC: YES
17625:20180925:110411.498 SSH2 support: YES
17625:20180925:110411.498 IPv6 support: YES
17625:20180925:110411.498 TLS support: YES
17625:20180925:110411.498 ******************************
17625:20180925:110411.498 using configuration file: /etc/zabbix/zabbix_server.conf
17625:20180925:110411.501 cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)
From what I have seen - the only solution was to recreate the database making sure to use create.sql.gz and not schema.sql.gz however I have done this and am definitely using this command:
# zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix I have also had problems trying to start the server using:
# service zabbix-server start and receive:
ESCOD
● zabbix-server.service - Zabbix Server
Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor pr
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-09-25 14
Process: 21128 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, st
Main PID: 17653 (code=exited, status=1/FAILURE)
Sep 25 14:54:25 zabbix systemd[1]: zabbix-server.service: Failed with result 'ex
Sep 25 14:54:25 zabbix systemd[1]: Failed to start Zabbix Server.
Any help is appreciated!
Thanks
caroline@zabbix:/$ ls -1 /usr/share/doc/zabbix-server-mysql*/
changelog.Debian.gz
copyright
create.sql.gz
caroline@zabbix:/$ cat /var/log/zabbix/zabbix_server.log
17625:20180925:110411.498 Starting Zabbix Server. Zabbix 3.4.14 (revision 84877).
17625:20180925:110411.498 ****** Enabled features ******
17625:20180925:110411.498 SNMP monitoring: YES
17625:20180925:110411.498 IPMI monitoring: YES
17625:20180925:110411.498 Web monitoring: YES
17625:20180925:110411.498 VMware monitoring: YES
17625:20180925:110411.498 SMTP authentication: YES
17625:20180925:110411.498 Jabber notifications: YES
17625:20180925:110411.498 Ez Texting notifications: YES
17625:20180925:110411.498 ODBC: YES
17625:20180925:110411.498 SSH2 support: YES
17625:20180925:110411.498 IPv6 support: YES
17625:20180925:110411.498 TLS support: YES
17625:20180925:110411.498 ******************************
17625:20180925:110411.498 using configuration file: /etc/zabbix/zabbix_server.conf
17625:20180925:110411.501 cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)
From what I have seen - the only solution was to recreate the database making sure to use create.sql.gz and not schema.sql.gz however I have done this and am definitely using this command:
# zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix I have also had problems trying to start the server using:
# service zabbix-server start and receive:
ESCOD
● zabbix-server.service - Zabbix Server
Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor pr
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-09-25 14
Process: 21128 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, st
Main PID: 17653 (code=exited, status=1/FAILURE)
Sep 25 14:54:25 zabbix systemd[1]: zabbix-server.service: Failed with result 'ex
Sep 25 14:54:25 zabbix systemd[1]: Failed to start Zabbix Server.
Any help is appreciated!
Thanks
Comment