Zabbix SNMP Monitor Switch traffic

Source: Internet
Author: User
Tags snmp snmp oid snmpwalk

Zabbix monitoring the switch is very simple, just know the switch SNMP Password and then link it to your own SNMP template, you can complete the monitoring, what's more simple than this configuration?


1, configure the switchSnmp
12 snmp-server community yang ro   #配置读取snmp的密码  snmp-server community yangrong rw   #配置可写的snmp密码,为安全起见,最好别开启

Install the NET-SNMP net-snmp-utils package on Linux to test SNMP access

12 #snmpwalk -v 2c -c yang 14.1.8.1   1.3.6.1.2.1.2.2.1.10.2  #查看端口2的计数iso.3.6.1.2.1.2.2.1.10.2 = Counter32: 3497833695

2, ConfigurationZabbix Communityvariables

in the [ Management ] à [ General ] à [ Macro ] , configure the SNMP password variable so that you can invoke the SNMP template that comes with Zabbix .

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4B/03/wKioL1Qnr6byGtXfAACE1QChcYk857.jpg "style=" float: none; "title=" 1 "alt=" wkiol1qnr6bygtxfaace1qchcyk857.jpg "/>


3, create a host

using SNMP monitoring

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/4B/01/wKiom1Qnr32Q4muLAAD66Jkq-Xo614.jpg "title=" 2 " Style= "Float:none;" alt= "wkiom1qnr32q4mulaad66jkq-xo614.jpg"/>

link to default SNMP templates

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4B/03/wKioL1Qnr6bDL5-cAAC477Wzz7s758.jpg "title=" 3 " Style= "Float:none;" alt= "wkiol1qnr6bdl5-caac477wzz7s758.jpg"/>

OK, the configuration is complete,Zabbix can complete automatic monitoring.

4, modify the template's exploration rules

since the switch has a port switch on it, there are 8 controls in the default discovery rule , which means that the 48*8=384 is eventually generated , which is a lot of pressure for Zabbix server.

Modify the exploration rules to only monitor the ingress traffic, egress traffic, port status, and all the others are removed. For example, keep only the red box part.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4B/01/wKiom1Qnr36S529GAAHAquQBlYE772.jpg "title=" 4 " Style= "Float:none;" alt= "wkiom1qnr36s529gaahaquqblye772.jpg"/>

5, auto-discovery results

For example, the Autodiscover item becomes a 187 item, but it is still a lot more normal to see the control.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/4B/01/wKiom1Qnr37ikYlGAAJxhnLZ15g667.jpg "title=" 5 " Style= "Float:none;" alt= "wkiom1qnr37ikylgaajxhnlz15g667.jpg"/>

6, network card monitoring diagram

After a while, the monitoring item has data to view the graphics.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4B/03/wKioL1Qnr6ejSySOAAF29ANHlsE473.jpg "title=" 6 " Style= "Float:none;" alt= "wkiol1qnr6ejsysoaaf29anhlse473.jpg"/>

7, CommonSNMP OIDDescription

The following values can be manually connected to obtain data:

123456789 snmpwalk -v 2c -c testIP1.3.6.1.2.1.2.2.1.2 #获取端口列表及描述snmpwalk -v2c -c testIP1.3.6.1.2.1.2.2.1.8  #获取端口UP/DOWN 情况snmpwalk -v2c -c test IP1.3.6.1.2.1.2.2.1.10  #获取端口入流量(byte)snmpwalk -v2c -c testIP1.3.6.1.2.1.2.2.1.16  #获取端口出流量(byte)snmpwalk -v2c -c testIP1.3.6.1.4.1.9.2.1.56.0  #获取过去5 秒内的cpu load(百分比)snmpwalk -v2c -c testIP1.3.6.1.4.1.9.2.1.57.0  #获取过去10 秒内的cpu load(百分比)snmpwalk -v2c -c testIP 1.3.6.1.4.1.9.2.1.58.0  #获取过去15 秒内的cpu load(百分比)snmpwalk -v 2c -c testIP1.3.6.1.4.1.9.9.48.1.1.1.5  #获取内存使用情况snmpwalk -v2c -c testIP1.3.6.1.4.1.9.9.48.1.1.1.6  #获取内存空闲情况



This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1704691

Zabbix SNMP Monitor Switch traffic

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.