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
相关推荐
江南风月6 小时前
WGCLOUD如果使用SQL Server数据库推荐哪个版本
运维·网络·zabbix·运维开发·prometheus
日取其半万世不竭3 天前
用 Netdata 实时监控服务器,比 Prometheus + Grafana 轻量得多
linux·服务器·网络·系统架构·负载均衡·zabbix·grafana
m0_737539379 天前
Zabbix企业级项目实战
zabbix
遇见火星11 天前
Zabbix自动化监控:自动发现+自动注册实战,告别手动添加主机!
网络·自动化·zabbix
杨了个杨898220 天前
Zabbix告警通知设置
zabbix
lvbinemail25 天前
动环方案实践:温湿度传感器+串口服务器+Zabbix+Grafana
zabbix·监控·机房·动环
乐维_lwops1 个月前
Zabbix分布式监控体系架构设计与实战优化
分布式·zabbix
七七powerful1 个月前
运维养龙虾--用 AI 驾驭 Zabbix:zabbix-mcp-server 深度指南
人工智能·zabbix·zabbix mcp
tianyuanwo1 个月前
Zabbix 演进史与版本选型指南:从1998到8.0
zabbix·版本管理策略·版本选型
last demo1 个月前
企业级开源监控zabbit
运维·开源·zabbix