大佬教程收集整理的这篇文章主要介绍了zabbix+grafana搭建过程(一),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
一、zabbix-server端准备工作
1. 在主要服务器搭建LAMP环境
安装apache
yum install -y httpd@H_673_7@安装MysqL
yum install -y mariadb mariadb-server@H_673_7@安装PHP环境
yum install -y PHP PHP-MysqL@H_673_7@启动服务并设置开机自启
systemctl start httpd systemctl start mariadb-server systemctl start PHP-MysqL@H_673_7@systemctl enable httpd systemctl enable mariadb-server systemctl enable PHP-MysqL@H_673_7@2. 在主要服务器安装zabbix-server
yum install PHP-bcmath PHP-mbString -y@H_673_7@yum install zabbix-server-MysqL zabbix-web-MysqL -y@H_673_7@安装zabbix-server
rpm -ivh http://repo.zabbix.com/zabbix/3.5/rHel/7/x86_64/zabbix-release-3.5-1.el7.noarch.rpm@H_673_7@安装红帽软件集合
yum install centos-release-scl @H_673_7@安装zabbix前端
yum install zabbix-web-MysqL-scl zabbix-apache-conf-scl@H_673_7@2. 配置zabbix-server
①数据库配置
进入数据库
MysqL -uroot -p@H_673_7@MysqL> create database zabbix character set utf8 collate utf8_bin;
MysqL> create user zabbix@localhost identified by 'zabbix';
MysqL> grant all privileges on zabbix.* to zabbix@localhost;
MysqL> flush privileges;
MysqL> quit;
导入初始架构和数据
cd /usr/share/doc/zabbix-server-MysqL*/ gunzip create.sql.gz@H_673_7@进入MysqL执行下面的命令
use zabbix; source create.sql;@H_673_7@②配置zabbix server
vim /etc/zabbix/zabbix_server.conf@H_673_7@
配置PHP时间
vim /etc/opt/rh/rh-PHP72/PHP-fpm.d/zabbix.conf@H_673_7@PHP_value[date.timezone] = Asia/Shanghai@H_673_7@③启动zabbix服务,并设置开机自启
systemctl restart zabbix-server httpd rh-PHP72-PHP-fpm systemctl enable zabbix-server httpd rh-PHP72-PHP-fpm@H_673_7@④进入web页面
x.x.x.x/zabbix 服务端ip加/zabbix 例:192.168.1.119/zabiix @H_673_7@
大佬总结
以上是大佬教程为你收集整理的zabbix+grafana搭建过程(一)全部内容,希望文章能够帮你解决zabbix+grafana搭建过程(一)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。