debian 12 zabbix 6.0LTS部署

数据库要求

数据库版本不对,zabbix-server启动不起来

|-----------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| MySQL/Percona | 8.0.X | Required if MySQL (or Percona) is used as Zabbix backend database. InnoDB engine is required. We recommend using the MariaDB Connector/C library for building server/proxy. |
| MariaDB | 10.5.00-10.6.X | InnoDB engine is required. We recommend using the MariaDB Connector/C library for building server/proxy. |

  1. 数据库安装mysql debian apt 装 mysql8-CSDN博客
    mysql Ver 8.0.35 for Linux on x86_64 (MySQL Community Server - GPL)

  2. 部署Zabbix 6.0 LTS - 不羁的罗恩 - 博客园 (cnblogs.com)

Choose your platform

ZABBIX VERSION
debian 12 zabbix 6.0LTS
5.

Install and configure Zabbix for your platform
a. Install Zabbix repository

Documentation
# wget https://repo.zabbix.com/zabbix/6.0/debian/pool/main/z/zabbix-release/zabbix-release_6.0-5+debian12_all.deb
`

dpkg -i zabbix-release_6.0-5+debian12_all.deb`

`

apt update`

b. Install Zabbix server, frontend, agent

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

c. Create initial database

Documentation

Make sure you have database server up and running.

Run the following on your database host.
# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

Disable log_bin_trust_function_creators option after importing database schema.
# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

d. Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password

e. Start Zabbix server and agent processes

Start Zabbix server and agent processes and make it start at system boot.
# systemctl restart zabbix-server zabbix-agent apache2
`

systemctl enable zabbix-server zabbix-agent apache2`

f. Open Zabbix UI web page

The default URL for Zabbix UI when using Apache web server is http://host/zabbix
6.

Start using Zabbix
相关推荐
陈译2 天前
Zabbix进阶2--接入DeepSeek分析问题并提供解决方案
linux·运维·服务器·ai·zabbix
陈译9 天前
Zabbix——监控Nginx
运维·nginx·zabbix
陈译13 天前
Zabbix-自动注册服务器到Zabbix的三种方式介绍
运维·服务器·zabbix
微风◝15 天前
2. grafana插件安装并接入zabbix
前端·zabbix·grafana
forestqq17 天前
全网首个详细案例:zabbix7.2 对比老版本API认证方法更新适配实战说明
运维·docker·zabbix
forestqq18 天前
zabbix v7.2.3容器运行Proxy代理服务器启用IPV6访问
运维·docker·zabbix
forestqq21 天前
docker单机运行环境的zabbix升级实战(从6.2.6升级到7.2.3)
docker·容器·zabbix
Tassel_YUE25 天前
Zabbix 推送告警 消息模板 美化(钉钉Webhook机器人、邮件)
机器人·钉钉·zabbix
wy_hhxx1 个月前
RHEL封闭环境部署zabbix
运维·服务器·zabbix
Tassel_YUE1 个月前
获取snmp oid的小方法1(随手记)
zabbix·snmp