Zabbix SNMP monitoring switch traffic

Source: Internet
Author: User
Tags snmp snmp oid snmpwalk

ZabbixIt is very easy to monitor a vswitch.SNMPAnd then connectSNMPTemplate to complete monitoring. What is easier than this configuration?


1. Configure the SNMP of the switch
SNMP-server community Yang Ro # configure the password for reading SNMP-server community Yangrong RW # configure the writable SNMP password. For security reasons, it is best not to enable it.

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

# Snmpwalk-V 2C-C Yang 14.1.8.1 1.3.6.1.2.1.2.2.1.10.2 # view port 2 count iso.3.6.1.2.1.2.2.1.10.2 = counter32: 3497833695

 

2. Configure the zabbix community variable

In [management] à [general] à [huge set], configure the SNMP password variable so that you can call 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

Use 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 the Default SNMP Template

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. After the configuration is complete, zabbix can complete automatic monitoring.

 

4. Modify the template's exploration rules

Because there are 48 vswitches on the vswitch, there are 8 monitoring items in the default exploration rule, that is, 48*8 = 384 monitoring items will be generated at last, which puts a lot of pressure on the zabbix server.

Modify the discovery rule to only monitor the incoming traffic, outgoing traffic, and port status. Delete all others. For example, only the parts in the red box are retained.

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4B/01/wKiom1Qnr36S529GAAHAquQBlYE772.jpg "Title =" 4 "style =" float: none; "alt =" wkiom1qnr36s529gaahaquqblye772.jpg "/>

 

5. automatically discover results

For example, the number of items automatically detected has changed to 187, but the number of items under normal control is still quite large.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4B/01/wKiom1Qnr37ikYlGAAJxhnLZ15g667.jpg "Title =" 5 "style =" float: none; "alt =" wkiom1qnr37ikylgaajxhnlz15g667.jpg "/>

 

6. Nic Monitoring Chart

After a while, the metric item has data and you can view the graph.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4B/03/wKioL1Qnr6ejSySOAAF29ANHlsE473.jpg "Title =" 6 "style =" float: none; "alt =" wkiol1qnr6ejsysoaaf29anhlse473.jpg "/>

7. Description of common SNMP OID

The following values can be manually connected to obtain data:

Snmpwalk-V 2C-C test ip1.3.6.1.2.1.2.2.1.2 # obtain the port list and description snmpwalk-V 2C-C test ip1.3.6.1.2.1.2.2.1.8 # obtain the snmpwalk-V 2C-C test ip1.3.6.1.2.1.2.2.1.10 # obtain the port inbound traffic (byte) snmpwalk-V 2C-C test ip1.3.6.1.2.1.2.2.1.16 # obtain port outbound traffic (byte) snmpwalk-V 2C-C test ip1.3.6.1.4.1.9.2.1.56.0 # obtain the CPU load (percentage) in the past 5 seconds) snmpwalk-V 2C-C test ip1.3.6.1.4.1.9.2.1.57.0 # obtain the CPU load in the past 10 seconds (percentage) snmpwalk-V 2C-C test IP 1.3.6.1.4.1.9.2.1.58.0 # obtain the CPU load in the past 15 seconds (percentage) snmpwalk-V 2C-C test ip1.3.6.1.4.1.9.48.1.1.1.5 # obtain memory usage snmpwalk-V 2C-C test ip1.3.6.1.4.1.9.48.1.1.1.6 # obtain memory idle status


 


This article is from the "Yang Yun" blog and will not be reproduced!

Zabbix SNMP monitoring 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.