首页 > 其他 > 详细

zabbix4.0安装

时间:2020-09-16 12:38:50      阅读:49      评论:0      收藏:0      [点我收藏+]

1.1    生命周期查看(这里使用的是长期支持版)

 技术分享图片

 技术分享图片

1.2    安装zabbix4.0

1.2.1       产品手册

 技术分享图片

1.2.2       安装(使用清华源安装)

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm

sed -i ‘s#repo.zabbix.com#mirrors.tuna.tsinghua.edu.cn\/zabbix#g‘  /etc/yum.repos.d/zabbix.repo

 

yum install zabbix-server-mysql  zabbix-web-mysql

1.2.3       安装mysql

yum install -y mariadb-server -y

systemctl enable mariadb.service

systemctl start mariadb.service

  

create database zabbix character set utf8 collate utf8_bin;

grant all privileges on zabbix.* to zabbix@localhost identified by "zabbix";

 

导入数据

gzip -d /usr/share/doc/zabbix-server-mysql-4.0.20/create.sql.gz

mysql -uzabbix -p123456 zabbix < /usr/share/doc/zabbix-server-mysql-4.0.20/create.sql

 

1.2.4       修改配置文件

vim /etc/zabbix/zabbix_server.conf

 

DBHost=localhost

DBName=Zabbix

DBUser=Zabbix

DBPassword=123456

 

启动服务

systemctl enable zabbix-server.service

systemctl start zabbix-server.service

 

 

配置zabbix-web

修改时区  vim /etc/httpd/conf.d/zabbix.conf

php_value date.timezone Asia/Shanghai

 

systemctl start httpd

systemctl enable httpd

 

1.2.5       页面配置

http://10.10.10.205/zabbix/

技术分享图片

 

默认用户名Admin    密码:zabbix

 

1.2.6       添加监控主机

安装客户端

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm

sed -i ‘s#repo.zabbix.com#mirrors.tuna.tsinghua.edu.cn\/zabbix#g‘  /etc/yum.repos.d/zabbix.repo

yum install zabbix-agent -y

systemctl enable zabbix-agent.service

 

 

vim /etc/zabbix/zabbix_agentd.conf

Server=127.0.0.1    #服务端

ServerActive=127.0.0.1   #服务端 ,主动模式监控

 

 

systemctl start zabbix-agent.service

systemctl enable zabbix-agent.service

 

 

1.2.7       创建主机,添加模板

 技术分享图片

 

 技术分享图片

 

 技术分享图片

 

zabbix4.0安装

原文:https://www.cnblogs.com/wangyong-blog/p/13677788.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!