1、环境准备
系统版本 | CentOS Linux release 7.3.1611 (Core) | @H_403_10@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
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配置
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
下一步
下一步
输入zabbix数据库的密码
输入zabbix server的name,例如zabbis-server
完成
1)在控制面板中找到一个字体,例如黑体
2)上传到/usr/share/zabbix/fonts
注:可以用lrzsz工具上传。
3)把大写字体改为小写
mvSIMHEI.TTFsimhei.ttf
sed-i's#graphfont#simhei#g'/usr/share/zabbix/include/defines.inc.PHP
2.9 打开zabbix-server本机监控
#########################################################################
完成zabbix3.2的安装!