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
相关推荐
码上上班5 天前
一文学会zabbix
zabbix
乐维_lwops5 天前
利用Zabbix监控指定IP列表的ping
网络·tcp/ip·zabbix
何以不说话12 天前
zabbix部署及nginx的监控
运维·nginx·zabbix
成为你的宁宁13 天前
【Zabbix + 睿象云实现电话告警(附图文教程):从监控项与触发器配置到睿象云电话报警通道部署全流程】
zabbix·电话报警
成为你的宁宁13 天前
【Zabbix 监控 Redis 实战教程(附图文教程):从 Zabbix-Server 部署、Agent2 安装配置到自带监控模板应用全流程】
数据库·redis·zabbix
释怀不想释怀19 天前
Zabbix框架(含相关的面试题)
zabbix
释怀不想释怀19 天前
Zabbix(安装模式)
运维·云原生·zabbix
何以不说话19 天前
记录一下学习日常⑨(ansible、Open-V、zabbix)
学习·ansible·zabbix
成为你的宁宁20 天前
【Zabbix运维监控实战(附图文教程):Nginx 服务可用性、连接请求状态、CPU 内存占用与 JVM(Jar 包 / Tomcat)全维度监控】
运维·jvm·nginx·zabbix
释怀不想释怀20 天前
Zabbix入门介绍和与BMC比较(面试回答)
zabbix