Ad Widget

Collapse

zabbix for ubuntu 21.04

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • secooonder
    Junior Member
    • Jul 2021
    • 7

    #1

    zabbix for ubuntu 21.04

    Hi

    My Ubuntu version 21.04


    i can not install from source package
    i can not install from deb package too

    when i work to setup it , i took an zabbix log

    HTML Code:
    153020:20210912:223041.977 Web monitoring: YES
    153020:20210912:223041.977 VMware monitoring: YES
    153020:20210912:223041.977 SMTP authentication: YES
    153020:20210912:223041.977 ODBC: YES
    153020:20210912:223041.977 SSH support: YES
    153020:20210912:223041.977 IPv6 support: YES
    153020:20210912:223041.977 TLS support: YES
    153020:20210912:223041.977 ******************************
    153020:20210912:223041.977 using configuration file: /etc/zabbix/zabbix_server.conf
    153020:20210912:223041.981 cannot use database "zabbix": its "users" table is empty (is this the Zabbix proxy database?)
    ----------------------------
    HTML Code:
    root@--------:/usr/share/zabbix-server-mysql# ls -l
    total 1668
    -rw-r--r-- 1 root root 562338 Şub 1 2021 data.sql.gz
    -rw-r--r-- 1 root root 127 Şub 1 2021 double.sql.gz
    -rw-r--r-- 1 root root 1093235 Şub 1 2021 images.sql.gz
    -rw-r--r-- 1 root root 14524 Şub 1 2021 schema.sql.gz
    -rw-r--r-- 1 root root 48 Nis 28 2018 zabbix
    -rw-r--r-- 1 root root 21400 Şub 1 2021 zabbix_server.conf

    No create.sql.gz


    HTML Code:
    root@---:/usr/share/zabbix-server-mysql# locate create.sql.gz
    root@---:/usr/share/zabbix-server-mysql#
    So , i imported schema.sql.gz.And than i took an error
    cannot use database "zabbix": its "users" table is empty


    I have no hope anymore for ubuntu 21.04

    can you help me please ?

    Thank you very much
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you are using the Zabbix official repository package, there is a file called create.sql.gz. However, there will be no package for Ubuntu 21.04 in the official Zabbix repository. If you installed it as a package, I think you installed it from the official Ubuntu repository.
    It seems that there are data.sql.gz, images.sql.gz, and schema.sql.gz as files, so please load them into the database in the following order.

    1. schema.sql.gz
    2. images.sql.gz
    3. data.sql.gz

    ex.
    Code:
    $ zcat schema.sql.gz | mysql -uzabbix -p zabbix
    $ zcat images.sql.gz | mysql -uzabbix -p zabbix
    $ zcat data.sql.gz | mysql -uzabbix -p zabbix
    If you installed from source, unpack the source tarball and use data.sql, images.sql, schema.sql under the database/mysql directory.

    Comment

    Working...