首页 > 网站 > 帮助中心 > 正文

Centos7.3安装部署最新版Zabbix3.4的方法(图文)

2024-07-09 22:40:36
字体:
来源:转载
供稿:网友

 一、系统环境

cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

关闭防火墙及selinux

systemctl stop firewalld.servicesystemctl disable firewalld.servicesed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/configgrep SELINUX=disabled /etc/selinux/configsetenforce 0

二、数据库安装及配置

1、MariaDB概述

MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。
开发这个分支的原因是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。

MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。

2、安装mariadb

yum install mariadb-server mariadb -y

mariadb数据库的相关命令是:

systemctl start mariadb #启动MariaDBsystemctl stop mariadb #停止MariaDBsystemctl restart mariadb #重启MariaDBsystemctl enable mariadb #设置开机启动

三、Zabbix3.4安装及配置

1、Zabbix3.4新功能概述

Remote command support through proxies Parallel processing of alerts Being notified on problem acknowledgement Item value preprocessing New preprocessing options Configurable JMX endpoints JMX low-level discovery PCRE library for regular expressions URL-encoding support in web monitoring Automatic URL-encoding Flexible URL-encoding for variables Unicode support in domain names Support of macros and time suffixes in time periods Host macro support in event tags Frontend improvements Dropping IE9 and IE10 support Full cloning of screens and maps Unified style for radio buttons and checkboxes Applying same permissions to nested host groups Increased field sizes Miscellaneous Daemon improvements IPMI polling Configuration parameters More information on agent metric thread crashes Item changes/improvements Low-level discovery Return code check for scripts and commands

zabbixe中文文档 https://www.zabbix.com/documentation/3.4/zh/manual

2、Zabbix3.4安装

rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpmyum install zabbix-server-mysql zabbix-web-mysql -y

3、创建数据库

create database zabbix character set utf8 collate utf8_bin;grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';

4、导入数据

复制代码 代码如下:
zcat /usr/share/doc/zabbix-server-mysql-3.4.0/create.sql.gz | mysql -uzabbix -pzabbix zabbix

5、配置数据库用户及密码

grep -n '^'[a-Z] /etc/zabbix/zabbix_server.conf38:LogFile=/var/log/zabbix/zabbix_server.log49:LogFileSize=072:PidFile=/var/run/zabbix/zabbix_server.pid99:DBName=zabbix115:DBUser=zabbix123:DBPassword=zabbix314:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log432:Timeout=4474:AlertScriptsPath=/usr/lib/zabbix/alertscripts484:ExternalScripts=/usr/lib/zabbix/externalscripts520:LogSlowQueries=3000
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表