• 欢迎访问显哥博客,本网站纯属学习技术,绝无商业用途,欢迎小伙伴们共同学习!研究技术!QQ:52249909 加我QQ
  • 世界75亿人,这么小的概率,能认识你,是我一生的幸运,不妨加个QQ接触一下:52249909 加我QQ

企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】

Zabbix监控 lixian 5年前 (2020-05-26) 21699次浏览 2个评论 扫描二维码
文章目录[隐藏]

一、zabbix代理端配置

1.安装代理

[root@sh_proxy ~]# yum install -y https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-proxy-mysql-4.0.20-1.el7.x86_64.rpm

2.创建代理数据库

[root@sh_proxy~]# mysql -uroot -p
MariaDB [(none)]> create database zabbix_proxy character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all on zabbix_proxy.* to zabbix_proxy@'localhost' identified by '123';

3.导入数据库

[root@sh_proxy ~]# zcat /usr/share/doc/zabbix-proxy-mysql-4.0.20/schema.sql.gz | mysql -uzabbix_proxy -p123 zabbix_proxy

4.编辑配置文件

[root@sh_proxy ~]# grep -E '^DB|^Ser|^Host' /etc/zabbix/zabbix_proxy.conf
Server=172.16.1.110
Hostname=sh_proxy
DBHost=localhost
DBName=zabbix_proxy
DBUser=zabbix_proxy
DBPassword=123

5.启动代理服务

[root@sh_proxy ~]# systemctl  start zabbix-proxy.service 
[root@sh_proxy ~]# systemctl  enable  zabbix-proxy.service

二、zabbix客户端配置

[root@tomcat ~]# grep -E '^Ser|^Host' /etc/zabbix/zabbix_agentd.conf
Server=172.16.1.7
ServerActive=172.16.1.7
Hostname=tomcat
[root@tomcat ~]# systemctl   restart   zabbix-agent

三、zabbix服务端配置

1.创建代理

企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】

2.填写代理信息

企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】

3.查看代理后生成的主机

企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】

企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】


本站博主 , 版权所有丨如未注明 , 均为原创
转载请注明原文链接:企业级zabbix监控实战——zabbix分布式企业应用场景实战【显哥出品,必为精品】
喜欢 (1)

您必须 登录 才能发表评论!

(2)个小伙伴在吐槽
  1. Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I'll keep an eye out for your answers.
  2. I am a website designer. Recently, I am designing a website template about gate.io. The boss's requirements are very strange, which makes me very difficult. I have consulted many websites, and later I discovered your blog, which is the style I hope to need. thank you very much. Would you allow me to use your blog style as a reference? thank you!