OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.4.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Deploy Zabbix with OceanBase Database as the meta database

    Last Updated:2026-04-09 08:31:39  Updated
    share
    What is on this page
    Overview
    Version compatibility
    Prerequisites
    Procedure
    Step 1: Obtain the database connection string
    Step 2: Install and configure Zabbix
    Step 3: Access the Zabbix web interface to complete the installation
    Step 4: Log in to and use Zabbix
    FAQ
    Q1: Zabbix server fails to start due to unsupported MySQL database version (5.06.25)
    Q2: Timeout during initialization of Zabbix SQL script
    References

    folded

    share

    Overview

    Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring capabilities through a web interface. It can monitor various network parameters, ensure the safe operation of server systems, and provide flexible notification mechanisms to help system administrators quickly locate and resolve various issues.

    This topic describes how to deploy the Zabbix monitoring system using OceanBase Database as the metadata database.

    Version compatibility

    • OceanBase Database version: ≥ V4.2.1
    • Zabbix version: ≥ 7.x

    Prerequisites

    Before you use Zabbix to monitor OceanBase Database, make sure that:

    You have deployed OceanBase Database and created a MySQL mode user tenant. For more information, see Create a tenant.

    Procedure

    Step 1: Obtain the database connection string

    Contact the OceanBase Database deployment personnel to obtain the connection string, for example:

    obclient -h$host -P$port -u$user_name -p$password -D$database_name
    

    Parameter description:

    • $host: the IP address for connecting to the database. For ODP connections, use the ODP address. For direct connections, use the OBServer IP address.
    • $port: the port for connecting to the database. For ODP connections, the default port is 2883. For direct connections, the default port is 2881.
    • $database_name: the name of the database.

      Notice

      The user used to connect to the tenant must have the CREATE, INSERT, DROP, and SELECT privileges on the database. For more information about user privileges, see Privilege types in MySQL mode.

    • $user_name: the username. For ODP connections, the format is user@tenant#cluster or cluster:tenant:user. For direct connections, the format is user@tenant.
    • $password: the password of the account.

    For more information about the connection string, see Connect to an OceanBase tenant by using OBClient.

    Example:

    obclient -hxxx.xxx.xxx.xxx -P2883 -utest_user001@mysql001 -p****** -Dtest
    

    Step 2: Install and configure Zabbix

    This example demonstrates how to install Zabbix 7.4 on Ubuntu 22.04.

    1. Add the Zabbix official repository

    wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu22.04_all.deb
    dpkg -i zabbix-release_latest_7.4+ubuntu22.04_all.deb
    apt update
    

    2. Install Zabbix server, web frontend, and agent

    apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
    

    3. Create a database user and grant privileges

    -- Connect to OceanBase Database
    -- mysql -h$host -P2883 -utest_user001@mysql001 -p****** -Dtest
    
    mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
    mysql> create user zabbix@'%' identified by '$zabbix_password';
    mysql> grant all privileges on zabbix.* to zabbix@'%';
    mysql> quit;
    

    4. Initialize the Zabbix SQL script in OceanBase Database

    zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql -h$host -P$odp_port -uzabbix@mysql001 -p$zabbix_password -D zabbix --default-character-set=utf8mb4
    

    5. Configure the database for Zabbix server

    Edit the configuration file /etc/zabbix/zabbix_server.conf:

    # DBHost=
    DBHost=$host
    # DBPassword=
    DBPassword=$zabbix_password
    # DBPort=
    DBPort=$odp_port
    

    DBHost specifies the IP address in the OceanBase connection string, for example, 10.10.10.1. DBPort specifies the ODP port of OceanBase Database, for example, 2883. DBPassword specifies the password of the zabbix database user.

    6. Start the Zabbix server and agent processes

    Start the Zabbix server and agent processes and set them to start automatically:

    systemctl restart zabbix-server zabbix-agent apache2
    systemctl enable zabbix-server zabbix-agent apache2
    
    # Verify whether the Zabbix server is started
    systemctl status zabbix-server.service
    

    Step 3: Access the Zabbix web interface to complete the installation

    Access the Zabbix service address in a browser: http://localhost/zabbix

    1. On the Configure DB connection page, configure the database connection:
      • Database type: select MySQL.
      • Database host: enter the IP address of the OceanBase Database.
      • Database port: enter the ODP port of OceanBase Database.
      • Database name: enter the name of the OceanBase Database.
      • User: enter the username of the OceanBase Database.
      • Password: enter the password of the OceanBase Database.
    2. Click Next step and then Finish to complete the installation.

    Step 4: Log in to and use Zabbix

    1. After the installation is complete, log in to Zabbix using the default credentials:
      • Username: Admin
      • Password: zabbix
    2. After the login is successful, click Monitoring/Hosts to view the metrics of the host where the Zabbix server is located.

    FAQ

    Q1: Zabbix server fails to start due to unsupported MySQL database version (5.06.25)

    Cause: Zabbix requires a specific version of MySQL compatibility.

    Solution: Modify the ODP parameters, log in to the sys tenant, and modify the mysql_version parameter:

    obclient --default-character-set=utf8mb4 -u$user_name -p$password -h$host -P$port
    
    alter proxyconfig set mysql_version='8.0.30';
    

    Q2: Timeout during initialization of Zabbix SQL script

    Cause: The SQL script execution time exceeds the default timeout setting.

    Solution: Increase the Global ob_query_timeout or query_timeout:

    obclient -h$host -P$port -uroot@mysql001 -p$password -e 'set global ob_query_timeout=1000000000;'
    

    References

    • Zabbix official documentation
    • Zabbix download address
    • OceanBase documentation center

    Previous topic

    DataHub
    Last

    Next topic

    OpenAI
    Next
    What is on this page
    Overview
    Version compatibility
    Prerequisites
    Procedure
    Step 1: Obtain the database connection string
    Step 2: Install and configure Zabbix
    Step 3: Access the Zabbix web interface to complete the installation
    Step 4: Log in to and use Zabbix
    FAQ
    Q1: Zabbix server fails to start due to unsupported MySQL database version (5.06.25)
    Q2: Timeout during initialization of Zabbix SQL script
    References