当前位置:网站首页>Solve the problem of inaccurate network traffic monitored by ZABBIX with SNMP
Solve the problem of inaccurate network traffic monitored by ZABBIX with SNMP
2022-07-03 17:54:00 【Brother Xing plays with the clouds】
The company has a new data center , Need to use zabbix Monitor the network traffic of Huasan switch .
Match well snmp After the agreement , Normal can recognize , But slowly found a problem , There is often a lack of data in the interface of telecommunications , But China Unicom and China Railway connect have no problems .
zabbix The drawing is intermittent , Sometimes the more magical thing is , There's a sudden drop in traffic , The decline is still outrageous , from 500 many Mbps Fall to 40 many Mbps, Once thought that there was a problem with the data returned by the switch .
Later on zabbix Grab bags on the machine , It is found that the data packet is not lost , There is nothing unusual about the data , But in my bag , There is one counter32 Draw attention .
Then read carefully snmp Documents , Find out snmp The agreement returned ifInOctets and ifOutOctets Are the total amount of traffic , And we all take the difference between two times , Then divide by the sampling interval , The average value obtained .
and counter32 The maximum value of the data type count of is 2 Of 32 The power minus 1, When more than 4G When , The counter will be cleared .
Later, it was analyzed that zabbix Of snmp interface The template of , Find out zabbix The sampling time is 1 minute , In our case, due to the large traffic , It will be cleared soon , And sometimes count the new value after clearing , Bigger than the last count ,zabbix I thought I hadn't cleared zero , Direct subtraction with time intervals , That's why “ The illusion of a steep drop in network traffic ”.
After finding out why , The rest is easy to handle , What we need , Use counter64 Of oid data .
stay zabbix Derived from template snmp interfaces Templates , Then change the name , Re import . Modify this new template :
stay “ Explore the rules ” Find “ Project prototype ”, Click on “Incoming traffic on interface {#SNMPVALUE}”,
1. Put it “ Key value ” Medium ifInOctets[{#SNMPVALUE}] It is amended as follows ifHCInOctets[{#SNMPVALUE}]
2. take “SNMP OID” Medium IF-MIB::ifInOctets.{#SNMPINDEX} It is amended as follows IF-MIB::ifHCInOctets.{#SNMPINDEX}
Again :“ Project prototype ” Medium “Outgoing traffic on interface {#SNMPVALUE}” Make similar changes .
Also is to ifInOctets and ifOutOctets Replace with ifHCInOctets and ifHCOutOctets.
Then delete the host , Re add the host , Everything is fresh this time , The drawings are continuous , There is no problem of steep rise and fall again .
边栏推荐
- How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?
- 1164 Good in C
- PHP MySQL preprocessing statement
- Draw some simple graphics with MFC
- win32:堆破坏的dump文件分析
- [Yu Yue education] family education SPOC class 2 reference materials of Shanghai Normal University
- c# . Net tool ecosystem
- Servlet specification Part II
- AcWing 271. 杨老师的照相排列【多维DP】
- PHP processing - watermark images (text, etc.)
猜你喜欢
基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition
面试官:值为 nil 为什么不等于 nil ?
Records of long objects and long judgments in the stream of list
Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13
STM32 realizes 74HC595 control
Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding
TensorBoard快速入门(Pytorch使用TensorBoard)
Notes on problems -- watching videos on edge will make the screen green
BFS - topology sort
互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
随机推荐
PHP MySQL inserts multiple pieces of data
The gbase 8A database does not support the DB2 function value (column_name, 0) cluster syntax
Internet hospital his management platform source code, online consultation, appointment registration smart hospital applet source code
毕业总结
TCP congestion control details | 3 design space
WebView module manages the application window interface to realize the logical control and management operation of multiple windows (Part 1)
Ssl/bio of OpenSSL_ get_ fd
解决Zabbix用snmp监控网络流量不准的问题
c# . Net tool ecosystem
Kotlin的協程:上下文
AcWing 4489. Longest subsequence
PHP MySQL preprocessing statement
Tensorboard quick start (pytoch uses tensorboard)
[combinatorics] generating function (shift property)
1146_ SiCp learning notes_ exponentiation
Wechat applet for the first time
一入“远程”终不悔,几人欢喜几人愁。| 社区征文
Postfix tips and troubleshooting commands
面试官:值为 nil 为什么不等于 nil ?
link preload prefetch