您的位置:首页 > 运维架构 > Linux

zabbix3.0-CentOS7

2018-03-21 17:58 211 查看
----------系统环境:CentOS7----------

----------server部署:10.0.0.61    server端的端口是10051----------

rpm -i http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm ## 使用官方的源安装
yum clean all
yum install zabbix-server-mysql zabbix-web-mysql -y

yum -y install mariadb-server
systemctl start mariadb.service 

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

zcat /usr/share/doc/zabbix-server-mysql-3.0.13/create.sql.gz|mysql -uzabbix -pzabbix zabbix

sed -i.ori '115a DBPassword=zabbix' /etc/zabbix/zabbix_server.conf
sed -i.ori '18a php_value date.timezone  Asia/Shanghai' /etc/httpd/conf.d/zabbix.conf

systemctl start zabbix-server
systemctl start httpd
systemctl enable zabbix-server.service httpd.service mariadb.service

浏览器访问  http://10.0.0.61/zabbix/
浏览器访问后看这个连接的下面部分 http://blog.csdn.net/qq_41833774/article/details/79558634
----------agent部署:agent端的端口是10050----------
##服务端也需要下载agent包,因为本身也需要监控,而且下面的测试也会用到

rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
yum clean all
yum install zabbix-agent -y 

sed -i.ori 's#Server=127.0.0.1#Server=172.16.1.61#' /etc/zabbix/zabbix_agentd.conf
systemctl start zabbix-agent.service

官方文档 https://www.zabbix.com/download?zabbix=3.0&os_distribution=centos&os_version=7&db=MySQL
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: