OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Database

  • Overview of the ecosystem
  • ORM frameworks
    • Java
      • Spring Boot
      • Spring Batch
      • Use Spring JDBC to connect to OceanBase Database
      • Spring Data JPA
      • Hibernate
      • MyBatis
      • jOOQ
    • Python
      • Use SQLAlchemy to connect to OceanBase Database
      • Connect to OceanBase Database by using peewee
      • Use Tortoise ORM to connect to OceanBase Database
    • Go
      • Connect to OceanBase Database by using GORM
      • beego ORM
    • Rust
      • SeaORM Connection to OceanBase Database
      • Diesel Connection to OceanBase Database
    • Ruby
      • Active Record
      • Sequel Connection to OceanBase Database
      • Connect to OceanBase Database by using Ruby on Rails
    • Node.js
      • Sequelize
      • TypeORM
      • Prisma
      • Drizzle
    • C#
      • Dapper
      • SqlSugar
      • FreeSQL
    • PHP
      • Connect to OceanBase Database by using the Yii 2.0 ORM
      • Connect to OceanBase Database by using Laravel Eloquent ORM
      • CakePHP
  • Database version management
    • Liquibase
    • Flyway
  • Data integration
    • Flink
      • Apache Flink
      • Flink DirectLoad
      • Flink Connector OceanBase
    • dbt
    • SeaTunnel
    • Maxwell
    • Debezium
    • Spark Catalog
    • NiFi
    • Qlik Replicate
    • RisingWave CDC
    • Flume
    • Migrate data from SQL Server to OceanBase Database by using MySQL Workbench
  • SQL development
    • WebLogic
    • DBeaver
    • Navicat
    • DataGrip
    • TablePlus
    • DMS
  • Orchestration and scheduling
    • Airflow
    • PowerJob
    • DolphinScheduler
    • Linkis
  • Visualization tools
    • Superset
    • Excel
    • Power BI
    • Quick BI
    • Tableau
    • GuanData
    • vividime
    • DataV
    • Metabase
    • Redash
    • FineReport
  • Database management
    • NineData
    • Bytebase
    • DataHub
    • Zabbix
  • AI
    • OpenAI
    • Qwen
    • LangChain
    • LlamaIndex
    • Dify
    • n8n
    • Trae
    • SpringAI
    • Cline
    • Cursor
    • Continue
    • MCP Toolbox
    • CamelAI
    • Firecrawl
    • Hugging Face
    • Ollama
    • Google Gemini
    • Cloudflare Workers AI
    • DB GPT
    • Jina AI
    • Augment Code
    • Claude Code
    • Kiro
    • GPT4All
  • Application
    • Ghost
    • Jira
    • Seata
    • SAP Crystal Reports
  • Middleware
    • Apache Pulsar

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Database
  3. master

Deploy Zabbix with OceanBase Database as the meta database

Last Updated:2026-09-04 07:40:45

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
Frequently Asked Questions
Q1: Cannot start Zabbix server due to an unsupported MySQL database version (5.06.25)
Q2: Timeout during initialization of the zabbix SQL script
References

Overview

Zabbix is an enterprise-level open-source solution that provides a web-based interface for monitoring distributed systems and networks. It monitors various network parameters to ensure the secure operation of server systems and offers flexible notification mechanisms to help system administrators quickly identify and resolve issues.

This topic describes how to deploy the Zabbix monitoring system using OceanBase Database as the meta 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.

Procedure

Step 1: Obtain the database connection string

Contact the OceanBase Database deployment personnel to obtain the connection string. Example:

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

Parameter description:

  • $host: the IP address for connection. For ODP connection, use the ODP address. For direct connection, use the OBServer IP.
  • $port: the port for connection. For ODP connection, the default value is 2883. For direct connection, the default value 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.

  • $user_name: the account for connection. For ODP connection, the format is user@tenant#cluster or cluster:tenant:user. For direct connection, the format is user@tenant.
  • $password: the password of the account.Example:
obclient -hxxx.xxx.xxx.xxx -P2883 -utest_user001@mysql001 -p****** -Dtest

Step 2: Install and configure Zabbix

This topic uses Ubuntu 22.04 as an example to install Zabbix 7.4.

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. Example: 10.10.10.1. DBPort specifies the ODP port of OceanBase. 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 when the system boots:

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

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

  1. On the Configure DB connection page, configure the database connection:
    • Database type: MySQL
    • Database host: the IP address of the OceanBase Database
    • Database port: the ODP port of the OceanBase Database
    • Database name: the name of the OceanBase Database
    • User: the username of the OceanBase Database
    • Password: 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 by 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.

Frequently Asked Questions

Q1: Cannot start Zabbix server due to an 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 the zabbix SQL script

Cause: The SQL script execution time is too long, exceeding 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
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
Frequently Asked Questions
Q1: Cannot start Zabbix server due to an unsupported MySQL database version (5.06.25)
Q2: Timeout during initialization of the zabbix SQL script
References