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
相关推荐
悠悠121382 天前
告别Zabbix?我用Netdata只花10分钟就搞定了50台服务器的秒级监控(保姆级实战)
运维·服务器·zabbix
RUNNING123!2 天前
RedHat 7.9 docker 安装 zabbix
docker·容器·zabbix
天生励志1233 天前
【Linux系统运维】软件安装部署实战--软件安装4-运维监控
运维·zabbix·grafana
心一信息7 天前
通过 Grafana 与 Zabbix 实现水暖 / 空调系统控制的详细步骤
zabbix·grafana
siriuuus8 天前
Ubuntu Zabbix 安装部署及简单使用
zabbix·grafana
!chen10 天前
Zabbix 配置中文界面、监控告警以及Windows、Linux主/被监控模板
linux·windows·zabbix
tianshiyeben11 天前
WGCLOUD监控系统使用指南 - 告警消息整理完整版
linux·运维·服务器·系统安全·zabbix
2301_8075832313 天前
zabbix监控ES集群健康状态并触发钉钉告警
linux·zabbix
牛奶咖啡1315 天前
zabbix结合grafana打造自定义炫酷监控界面实战
zabbix·grafana·grafana的安装配置·grafana的插件安装配置·grafana仪表盘的搜索导入·grafana监控zabbix·grafana配置图表
MichaelCoCoQ16 天前
Zabbix监控K8S的PV卷
容器·kubernetes·负载均衡·zabbix·运维开发