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
相关推荐
牛奶咖啡135 天前
zabbix实现监控Apache、Nginx、php-fpm应用的实操保姆级流程
nginx·apache·zabbix·php-fpm·zabbix监控apache·zabbix监控nginx·zabbix监控php-fpm
小小的木头人6 天前
APT 安装方式(适合生产环境)Zabbix 6.4 LTS
运维·zabbix
MOYIXIAOWEIWEI7 天前
rocky 9.5系统安装zabbix监控实现邮件告警
ubuntu·zabbix·rocky
牛奶咖啡138 天前
zabbix实现配置监控Windows设备、SNMP协议设备的全流程实操教程
zabbix·配置监控windows设备·使用snmp协议监控群晖nas·snmp监控项oid·群晖nas监控模板·配置agent端自主自动注册
牛奶咖啡138 天前
zabbix自动发现与自动注册的实操保姆级教程
zabbix·zabbix的自动网络发现·zabbix的自动发现原理·zabbix的自动注册·zabbix客户端的主动模式·zabbix客户端的被动模式·zabbix的低级别发现
奥尔特星云大使9 天前
zabbix安装部署
zabbix
奥尔特星云大使9 天前
CentOS 7 上通过 RPM 包安装 Zabbix 4.x
linux·centos·zabbix
心一信息13 天前
grafana及zabbix在linux上的部署
linux·zabbix·grafana
xx.ii15 天前
Zabbix模板,监控项,图形的使用方法
服务器·网络·zabbix
半梦半醒*16 天前
zabbix安装
linux·运维·前端·网络·zabbix