Network devices are multi-port multiple monitoring projects, if one is added, it can be tiring. I started playing Zabbix is also a port to add a port, after a long time to add a switch. Suddenly think that there is a method of automatic monitoring and exchange, through a search of Baidu, found a lot of articles, according to the relevant article view, finally realized the method of automatic monitoring network equipment
Implementation process: Create templates-definition discovery-create item,graphs in discovery-
1, first create the template, the steps are as follows: configuration-templates-create template
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F5/ Wkiol1coff7qvhahaabkn6cessi948.png "" 244 "height="/>
2, simple configuration, the name of the template, belong to the group are filled out, and then click: ADD
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofurrsmhtaabutk639ca922.png "" 244 "height=" 228 "/>
3.Templates main interface, select the newly created template, click: Discovery
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F5/ Wkiol1cofghzqk1qaaaehq2lkfy011.png "" 244 "height="/>
4. Enter the discovery interface and select: Create Discovery rule
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/wKiom1cOFUuinecvAAAx9_ Y2jji889.png "" 244 "height="/>
5. Enter the Create Discovery rule interface, as
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F8/ Wkiom1cofuzwigmjaabldxzzww8920.png "" 244 "height="/>
Fill in the contents as follows:
Name #Discovery names: Network interface
Type #选择agent的模式 Choose to use the Agent:snmpv2 agent
Key #填写所需的Key值, because it is auto-discovery, fill in the KEY:IFDESCR
SNMP OID #填写SNMP所需的OID值, fill in the SNMPOID:IFDESCR
SNMP Community # SNMP Community names, most of which are custom names, where I use the default public
Complete completion such as:
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F8/ Wkiom1cofu2xkvtqaaa9dwru7ws075.png "" 244 "height=" "/>
OK, now we need to create item, English: Item prototypes Chinese translation: Original project
PS: When looking at the data, there is no detail to create the item prototypes under Discovery rule. The configuration failed, then a comparison to find the problem, here is a hint to create the item is created in the item prototypes.
6. Click Open: Item Prototypes
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F5/ Wkiol1cofgti4zknaaavvuyqbiw596.png "244" height= "Wuyi"/>
7, go to the Item prototypes interface and select: Create Item prototype
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofu7ahox8aaas9bc-r4o717.png "" 244 "height="/>
8, enter the item prototype interface
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofvccgolsaabjgsk5mqg944.png "" 206 "height=" 193 "/>
For traffic in and out, refer to the option of in-flow configuration out traffic
Item prototype Name |
Name Description |
Fill in the content |
Name |
Item Name |
In traffic on interface {#SNMPVALUE} |
Type |
Agent working mode |
SNMPV2 Agent |
Key |
Monitor key value |
ifinoctets[{#SNMPVALUE}] |
SNMP OID |
SNMP OID Key value |
If-mib::ifinoctets. {#SNMPINDEX} |
SNMP communtiy |
SNMP Community Name |
Public |
Type of information |
Get the usage type of the data |
Numeric (unsigned) |
Units |
Gets the unit of data |
BPS (Zabbix defaults to byte) |
Usecustommultiplier |
Multiples of units |
8 (Byte converted to bps by 8) |
Store value |
How values are stored |
Delta (speed per second) |
Description |
Item description |
Null |
For a description of the three variable values, please refer to:
This version is: 2.4.6
Https://www.zabbix.com/documentation/2.4/manual/appendix/macros/supported_by_location?s[]=snmpvalue
Inoctets templates
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F8/ Wkiom1cofvksccqfaab7r6trmrm383.png "" 244 "height=" 228 "/>
Outoctets templates
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F8/ Wkiom1cofvpdmdb4aab748blwhi249.png "" 244 "height=" 228 "/>
9, create graph prototype monitor traffic graph, click: Graph prototype
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F5/ Wkiol1cofgrqwitoaaa0my5tmr4484.png "" 244 "height="/>
10, click: Create graph prototype
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofvtdfnx6aaarc6hxaco100.png "" 244 "height="/>
11, enter Create graph prototype interface
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F5/ Wkiol1cofgzczkpiaabjiaylpwo137.png "" 244 "height=" 135 "/>
Required Configuration items:
Name:traffic on interface {#SNMPVALUE}
Items
These two projects, the configuration process such as
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F5/ Wkiol1cofgyr0kphaabbscbayck428.png "" 244 "height=" 109 "/>
To the items location, click: Add prototype adding items prototype
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F8/ Wkiom1cofvbhbjmraaapoabyfws644.png "" 244 "height="/>
Tick, and click: SELECT
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F8/ Wkiom1cofveyobodaaanc9fgs10151.png "" 244 "height="/>
Configure complete as, and then click: add
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofvirvzisaabohjlt2do706.png "" 244 "height="/>
The above is the auto-send template configuration complete, now add the host and associate the corresponding template
Add Host: Configuration-hosts-create host
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F5/wKioL1cOFhCwYx_ Laabz20bofks681.png "" 244 "height=" 201 "/>
After filling out the basic information, select click: Templates
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F5/ Wkiol1cofhhbvz4xaaa2rb9gvm0722.png "" 244 "height="/>
Click again: Select to enter the template selection screen
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F8/ Wkiom1cofvvjdftvaabjfxl7j-k703.png "" 244 "height=" 135 "/>
Tick the template that we just created, drop-down: Select or double-click to return to the template
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F5/wKioL1cOFhKg086MAAA_ Mjnytlw897.png "" 244 "height=" 111 "/>
At the link new templates location, you can already see the name of the template we selected, so be sure to click: add
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F8/ Wkiom1cofvyal2ttaaallszyipo049.png "" 244 "height="/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/7E/F5/ Wkiol1cofhpjhybjaaatwnlgq-g841.png "" 244 "height="/>
Last click: Add to return to the host interface
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/7E/F5/ Wkiol1cofhpwyt1eaaap9fch-jg460.png "" 244 "height="/>
Wait a while to discover the original item 0, there are many projects
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F8/ Wkiom1cofv6hn9xyaaanmkmhpye359.png "" 244 "height=" "/>
Then check out the network traffic map.
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/7E/F5/ Wkiol1cofhxy81ptaabpsrjmr2g982.png "" 244 "height=" 123 "/>
By this end, the automatic addition of port traffic monitoring for network devices
Zabbix Chinese reference website: https://www.ttlsa.com/monitor/zabbix/
In this site I learned a lot of knowledge, such as PHP nginx personal preferred, here thanks to the site's creation team.
002-zabbix-Network device automatic monitoring (Cisco)