admin 管理员组

文章数量: 887021


2024年3月27日发(作者:magnitude记忆)

Zabbix部署流程

目 录

1、计划安排................................................................................................................................................................................ 1

2、环境准备................................................................................................................................................................................ 1

3、软件安装(lamp) ............................................................................................................................................................... 1

4、配置文件修改 ........................................................................................................................................................................ 2

5、web初始化及登陆 ................................................................................................................................................................ 4

6、监控项模板配置 .................................................................................................................................................................... 5

7、网络自动发现主机 ................................................................................................................................................................ 8

8、添加监控项的触发器及对应的动作 .................................................................................................................................. 13

9、在zabbix-server端配置简单的邮件postfix服务 ............................................................................................................. 19

10、用户与报警媒介关联 ........................................................................................................................................................ 21

1、计划安排

2、环境准备

Zabbix-server端(10.21.X.X): 操作系统:centos7.1 硬件:4c/8G 80G 安

装图形化

Mysql数据库端(10.21.20.202): 操作系统:centos7.1 硬件:4c/8G 120G

3、软件安装(lamp)

(1)Zabbix-Server组件:

yum –y install net-snmp* gcc

下载包并进行编译安装(./configure –prefix=/usr/local/zabbix

--enable –server --enable-agent --with-mysql --with-net-snmp) ---- make

(注编译时若出现报错,按照报错解决依赖包问题)

(2)web 组件(注意php的软件版本一定要保持一致5.4)

yum -y install httpd php php-mysql

yum -y localinstall zabbix-web-3.2.0 zabbix-web-mysql-3.2.0 php-mbstring

php-bcmath

(3)数据库端

yum -y install mariadb-server或者编译安装mysql

4、配置文件修改

(1)数据库

systemctl start mariadb

mysql -e "create database zabbix default charset utf8"(创建时注意添加default

charset utf8,否则有可能出现中文乱码问题)

mysql zabbix <


本文标签: 报错 注意 安装 编译