当前位置:网站首页>ZABBIX proxy server and ZABBIX SNMP monitoring
ZABBIX proxy server and ZABBIX SNMP monitoring
2022-07-06 22:06:00 【Cute Chu】
Image download 、 Domain name resolution 、 Time synchronization please click Alibaba cloud open source image station
One 、 Deploy zabbix proxy server
The role of distributed monitoring :
- Share responsibility server Centralized pressure
- Solve the problem of network delay between multiple computer rooms

bsystemctl disable --now firewalldsetenforce 0hostnamectl set-hostname zbx-proxy


1.1、 Set up zabbix Download source , install zabbix-proxy
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm cd /etc/yum.repos.dsed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repoyum install -y zabbix-proxy-mysql zabbix-get

1.2、 install zabbix The required database
yum install -y mariadb-server mariadbsystemctl enable --now mariadbmysql_secure_installation # Initialize database , And set the password , Such as abc123

1.3、 Add database users , as well as zabbix Required database information
mysql -u root -pabc123CREATE DATABASE zabbix_proxy character set utf8 collate utf8_bin;GRANT all ON zabbix_proxy.* TO 'zabbix'@'%' IDENTIFIED BY 'zabbix';flush privileges;
1.4、 Import database information
rpm -ql zabbix-proxy-mysql # Inquire about sql The location of the file zcat /usr/share/doc/zabbix-proxy-mysql-5.0.15/schema.sql.gz | mysql -uroot -pabc123 zabbix_proxy

1.5、 modify zabbix-proxy The configuration file
vim /etc/zabbix/zabbix_proxy.confServer=192.168.80.20 #30 That's ok , Appoint zabbix Server side IP Address Hostname=zbx-proxy #49 That's ok , Specify the current zabbix The host name of the proxy server DBPassword=zabbix #196 That's ok , Specify the current database zabbix User's password 


1.6、 start-up zabbix-proxy
systemctl start zabbix-proxysystemctl enable zabbix-proxy1.7、 Configure on all hosts hosts analysis
vim /etc/hosts192.168.80.20 zbx-server192.168.80.30 zbx-agent01192.168.80.13 zbx-proxy
1.8、 stay Web Configuration page agent agent
Click on the left menu bar 【 To configure 】 Medium 【 action 】, Check the automatic registration rules , Click on Disable clicking on the left menu bar 【 To configure 】 Medium 【 host 】, Check the original client host , Click on Delete 

Click on the left menu bar 【 management 】 Medium 【agent agent 】, Click on 【 To create the agent 】【agent Agent name 】 Set to zbx-proxy【 System agent mode 】 choice Active 【 Agency address 】 Set to 192.168.130.131 Click on 【 add to 】


Two 、 To configure agent Use proxy
2.1、 Modify... On the client side agent2 The configuration file
vim /etc/zabbix/zabbix_agent2.conf......Server=192.168.80.13 #80 That's ok , Appoint zabbix Proxy server IP Address ServerActive=192.168.80.13 #120 That's ok , Appoint zabbix Proxy server IP Address 

2.2、 stay Web Configuration page
Click on the left menu bar 【 To configure 】 Medium 【 host 】, Click on 【 Create a host 】【 Host name 】 Set to zbx-agent01【 Visible name 】 Set to zbx-agent01【 group 】 choice Linux server【Interfaces】 Of 【IP Address 】 Set to 192.168.80.30【 from agent Agent monitoring 】 choice zbx-proxy Then click on the menu bar above 【 Templates 】【Link new tamplates】 Search for Linux , choice Template OS Linux by Zabbix agent Click on 【 add to 】

2.3、 Restart the service on the client and proxy server respectively
systemctl restart zabbix-agent2systemctl restart zabbix-proxy Click on the left menu bar 【 To configure 】 Medium 【 host 】 Refresh , Check the monitoring status of the client host and check the log on the server tail -f /var/log/zabbix/zabbix_proxy.log
3、 ... and 、 Set up zabbix-snmp monitor
SNMP, Simple network management protocol
3.1、 Server installation snmp Monitoring program
yum install -y net-snmp net-snmp-utils

3.2、 modify snmp Configuration file for , And start the service
vim /etc/snmp/snmpd.conf......view systemview included .1 #57 That's ok , Add this configuration systemctl start snmpd


3.3、 Use snmp Command test
snmpwalk -v 2c -c public 127.0.0.1 sysnameSNMPv2-MIB::sysName.0 = STRING: zbx-server-------------------------------------------------------–v 1|2c|3: Appoint SNMP Protocol version –c: Specify the community string sysname: by snmp Of key-------------------------------------------------------3.4、 stay Web Configuration page snmp Mode monitoring
Click on the left menu bar 【 To configure 】 Medium 【 host 】, Click on Zabbix server【Interfaces】 Click on 【 add to 】 choice SNMP , The port is set to 161 Click on the menu bar above 【 Templates 】,【 Linked templates 】 All in agent Select unlink and clean the template, and then 【Link new templates】 Mid search Linux SNMP, choice Template OS Linux SNMP Click on 【 to update 】, Wait a while Zabbix server The availability of becomes SNMP Monitoring mode .




In this paper, from :https://juejin.cn/post/7116473286535413797
边栏推荐
- GPS從入門到放弃(十三)、接收機自主完好性監測(RAIM)
- GPS从入门到放弃(十九)、精密星历(sp3格式)
- GPS从入门到放弃(十一)、差分GPS
- 设置状态栏样式Demo
- Shell product written examination related
- 414. The third largest digital buckle
- Four data streams of grpc
- Microsoft technology empowerment position - February course Preview
- Qt | UDP广播通信、简单使用案例
- [Yu Yue education] reference materials for surgical skills teaching in Tongji University
猜你喜欢

Why rdd/dataset is needed in spark

Shell product written examination related

The golden age of the U.S. technology industry has ended, and there have been constant lamentations about chip sales and 30000 layoffs

Search element topic (DFS)

Aggregate function with key in spark
![[Yu Yue education] higher mathematics of Nanchang University (2) reference materials](/img/ae/a76f360590061229076d00d749b35f.jpg)
[Yu Yue education] higher mathematics of Nanchang University (2) reference materials

GPS from entry to abandonment (XVII), tropospheric delay
![Leetcode topic [array] -118 Yang Hui triangle](/img/77/d8a7085968cc443260b4c0910bd04b.jpg)
Leetcode topic [array] -118 Yang Hui triangle
![关于char[]数组通过scanf赋值使用上的一些问题。。](/img/cf/d85a3172c5d29ac00377f9c30dbc4f.png)
关于char[]数组通过scanf赋值使用上的一些问题。。

LeetCode学习记录(从新手村出发之杀不出新手村)----1
随机推荐
Vit paper details
Method return value considerations
经纪xx系统节点VIP案例介绍和深入分析异常
Explain ESM module and commonjs module in simple terms
From campus to Tencent work for a year of those stumbles!
Mongodb (III) - CRUD
GPS from entry to abandonment (XVII), tropospheric delay
Kohana 数据库
基于LM317的可调直流电源
LeetCode学习记录(从新手村出发之杀不出新手村)----1
Record the process of cleaning up mining viruses
Embedded common computing artifact excel, welcome to recommend skills to keep the document constantly updated and provide convenience for others
Unity3D学习笔记6——GPU实例化(1)
LeetCode:1189. The maximum number of "balloons" -- simple
GPS from getting started to giving up (XIII), receiver autonomous integrity monitoring (RAIM)
20 large visual screens that are highly praised by the boss, with source code templates!
GPS从入门到放弃(十九)、精密星历(sp3格式)
美国科技行业结束黄金时代,芯片求售、裁员3万等哀声不断
GPS from getting started to giving up (19), precise ephemeris (SP3 format)
NPM run dev start project error document is not defined