debian 12 zabbix 6.0LTS部署

本文介绍了如何在Zabbix6.0LTS中部署ZabbixServer,包括检查数据库版本(推荐MySQL8.0或MariaDB10.5+),使用MariaDBConnector/C,设置InnoDB引擎,以及在Debian12上安装、配置Zabbix服务器、前端和代理,包括数据库安装、初始数据导入和设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 数据库要求

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

  1. MySQL/Percona8.0.XRequired 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.
    MariaDB10.5.00-10.6.XInnoDB engine is required. We recommend using the MariaDB Connector/C library for building server/proxy.
  2. 数据库安装mysql debian apt 装 mysql8-CSDN博客
    mysql  Ver 8.0.35 for Linux on x86_64 (MySQL Community Server - GPL)

     
  3. 部署Zabbix 6.0 LTS - 不羁的罗恩 - 博客园 (cnblogs.com)
  4. 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

windows zabbix agent 安装

zabbix_agent-6.0.25-windows-amd64-openssl

【免费】zabbix-agent-6.0.25-windows-amd64-openssl.msi资源-CSDN文库

C:\Program Files\Zabbix Agent\zabbix_agentd.conf

Server=192.168.1.x

ServerActive=192.168.1.x

 解决部分中文乱码问题
查看zabbix已有字体文件:
 cd /usr/share/zabbix/assets/fonts/

graphfont.ttf
 将C:\Windows\Fonts\simhei.ttf 文件上传到 /usr/share/zabbix/assets/fonts/  目录下;
将graphfont.ttf 重命名为  graphfont.ttf.bak
将simhei.ttf 重命名为graphfont.ttf
ls
graphfont_back.ttf  graphfont.ttf
刷新刚才的页面,发现乱码消失,已经显示正常;

systemctl restart zabbix-server zabbix-agent2 nginx php-fpm
systemctl enable zabbix-server zabbix-agent2 nginx php-fpm
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值