CentOS7.3yum安装zabbix3.2

前端之家收集整理的这篇文章主要介绍了CentOS7.3yum安装zabbix3.2前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、环境准备

系统版本 CentOS Linux release 7.3.1611 (Core)
IP 192.168.10.60

2、zabbix安装

2.1 安装阿里云yum配置文件

rpm-ivhhttps://mirrors.aliyun.com/zabbix/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm


2.2 安装zabbix-server、zabbix-agent、mariadb

yuminstallzabbix-serverzabbix-getzabbix-agentzabbix-webzabbix-server-MysqLzabbix-web-MysqLmariadb-servermariadb-y


2.3 修改PHP时区

sed-i's@#PHP_valuedate.timezoneEurope/Riga@PHP_valuedate.timezoneAsia/Shanghai@g'/etc/httpd/conf.d/zabbix.conf


2.4 创建zabbix数据库

启动mariadb,并创建zabbix数据库

systemctlstartmariadb
MysqL
MariaDB[(none)]>createdatabasezabbixcharactersetuft8collateutf8_bin;
ERROR1115(42000):Unknowncharacterset:'uft8'
MariaDB[(none)]>createdatabasezabbixcharactersetutf8collateutf8_bin;
QueryOK,1rowaffected(0.00sec)
MariaDB[(none)]>grantallonzabbix.*tozabbix@'localhost'identifiedby'123456';
QueryOK,0rowsaffected(0.00sec)
MariaDB[(none)]>exit;
cd/usr/share/doc/zabbix-server-MysqL-3.2.6/
zcatcreate.sql.gz|MysqL-uzabbix-p123456zabbix



2.5 修改zabbix配置

修改zabbix数据库密码

sed-i'116aDBPassword=123456'/etc/zabbix/zabbix_server.conf


2.6 启动zabbix和httpd

systemctlstartzabbix-server
systemctlstartzabbix-agent
systemctlstarthttpd


2.7 web界面安装

浏览器中输入http://192.168.10.60/zabbix/setup.php

下一步

wKioL1kvlCjz0efFAABiIWT-B10004.png-wh_50


下一步

wKiom1kvlFnBgjvFAACJ2mtpkoI762.png-wh_50


输入zabbix数据库的密码

wKioL1kvlFmjwppIAABzMXk5uvk913.png-wh_50


输入zabbix server的name,例如zabbis-server

wKiom1kvlFnwG-B5AABWDO24Tbg487.png-wh_50


完成

wKioL1kvlFqBFTi3AABenZMorT8516.png-wh_50



登录用户名密码为Admin/zabbix

wKioL1kvlPuSwuJNAAAxs6DgWto109.png-wh_50



2.8 修改中文字体,防止监控图乱码

1)在控制面板中找到一个字体,例如黑体

wKioL1kvlauBzaKaAAIyigXi69k878.png-wh_50

2)上传到/usr/share/zabbix/fonts

注:可以用lrzsz工具上传


3)把大写字体改为小写

mvSIMHEI.TTFsimhei.ttf


4)修改defines.inc.PHP

sed-i's#graphfont#simhei#g'/usr/share/zabbix/include/defines.inc.PHP


2.9 打开zabbix-server本机监控

wKioL1kvln3AYB_rAABqJPJOJb8673.png-wh_50


2.10 修改中文


wKioL1kvlprAw1b-AAARbMAZWR4114.png-wh_50

wKiom1kvlpvz690uAAA8AQePtfE545.png-wh_50


#########################################################################

完成zabbix3.2的安装!

原文链接:https://www.f2er.com/centos/377401.html

猜你在找的CentOS相关文章