Zabbix 3.0 Monitoring Switch (1)--Port traffic monitoring

Source: Internet
Author: User
Tags snmp snmp oid switches

First, switching on the SNMP service

Cisco: Enter the following command in global mode

Snmp-server Community public ro #启动snmp服务, and set the read-only community character to public;

Snmp-server Enable traps #启动所有traps;

Huawei: Enter the following command in the system view

Snmp-agent #启动snmp服务

Snmp-agent Community Read cipher public #设置只读团体字符为public;

Snmp-agent sys-info version All #允许所有snmp版本, default is v1;

SNMP commands, Cisco is unified, and Huawei may be slightly different depending on the version of the switch software.

Second, get the OID of the switch port

Need to use getif this software, please download it yourself.

2.1 Open the software and connect the switch.

Note: Windows 7/8/8.1 system needs to right-click, choose to run as Administrator, or the software will error.

①host name #填写要连接获取端口ID编号的交换机IP.

②snmp Parameters/read #设置SNMP协议的读团体字符, must be consistent with the settings on the switch.

③ Click Start and wait for the result.

④ appears sysinfo variables OK, indicating a successful connection.

650) this.width=650; "title=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px "style="; padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" src= "http://s3.51cto.com /wyfs02/m01/7f/f8/wkiom1cy74qx7zxqaaazbakuzlk729.jpg "height=" 137 "/>

2.2 Get the switch port ID number

Interfaces->start, record the port number with the previous port ID number. You only need to know the ID number of the switch port, because the Zabbix 3.0 has built in the front part of the OID for Cisco, Huawei switches.

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m01/7f/f6/wkiol1cy8gqw9guyaaa8dbo_j8w001.jpg "height=" 137 "/>

Third, add the switch

The specific steps are ① set up host group (hosts groups), ② create template (Templates), ③ build project (items), ④ build host (hosts).

3.1 Creating host Groups

There are many devices in a company that need to be monitored, switches, servers, printers and the like. Devices of the same type or business will have multiple units, so devices of the same type or business need to be placed in the same group for easy management.

Open the Create host group Interface Configuration->host Groups->create host group.

650) this.width=650; "title=" 1 "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=" 1 "src=" http://s3.51cto.com/ Wyfs02/m00/7f/f6/wkiol1cy8gvxqa6daaaufqef6vc793.jpg "height=" 101 "/>

Create host Group

①group name #输入设备群组名, I'm going to create some new switches here, so I'm named Switch.

②hosts #如果之前有新建好的交换机, you can select this group from the Options box on the right. Generally in the new host when the host group is selected, so the main role here is to switch the host group, that is, you can switch the host from one group to another group.

③ Click Add to create the complete.

650) this.width=650; "title=" 2 "style=" border-right-width:0px;background-image:none;border-bottom-width:0px; padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt=" 2 "src=" http:// S3.51cto.com/wyfs02/m02/7f/f6/wkiol1cy8gzsgfyzaaayiy72lf4106.jpg "width=" 244 "height=" 104 "/>

Create a group for Templates in the same way, named Switch Templates.

650) this.width=650; "title=" 3 "style=" border-right-width:0px;background-image:none;border-bottom-width:0px; padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt=" 3 "src=" http:// S3.51cto.com/wyfs02/m00/7f/f8/wkiom1cy743auc-uaaa0waeog8a818.jpg "width=" 191 "height=" 244 "/>

3.2 Creating templates

Templates The role of the same type or model of the switch, server, printer, host, etc. to establish a unified template, in the future when the host, reference to this template, all of the template under the application, Items, graphs, etc. will be automatically established under the host.

Open the Create Templates interface configuration->templates->create template.

650) this.width=650; "title=" 4 "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=" 4 "src=" http://s3.51cto.com/ Wyfs02/m02/7f/f8/wkiom1cy747jagy4aaas6cis2uq787.jpg "height="/>

Create template

①template name #给模板取一个名字, it is recommended to use the model name of the switch.

②groups #选择这个模拟所属的群组, here's the switch Templates we built earlier.

③ Click Add to create the complete.

650) this.width=650; "title=" 5 "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=" 5 "src=" http://s3.51cto.com/ Wyfs02/m01/7f/f8/wkiom1cy74_s2-kjaaawf4hxg7c151.jpg "height=" 221 "/>

I also created the templates of the other switch models, noting that the following items are to be created immediately, and that the created items will be automatically created on the new host that you create later.

650) this.width=650; "title=" 6 "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=" 6 "src=" http://s3.51cto.com/ Wyfs02/m00/7f/f8/wkiom1cy75ditdjyaaa92k9f4mm953.jpg "height=" 244 "/>

3.3 Creating items

Open the Create Project interface configuration->templates-> Select a template in the list->items->create item.

650) this.width=650; "title=" 7 "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=" 7 "src=" http://s3.51cto.com/ Wyfs02/m01/7f/f6/wkiol1cy8hcjlv-5aaay01ngxcm294.jpg "height="/>

Create item, create port item

①name #以端口号为Item Name and the callout is in or out.

②type #交换机, printers and other devices do not support the installation of Zabbix agent, so to select the SNMP protocol, generally select the V2 version, please confirm in advance that your device supports the SNMP protocol.

③key #这个Key值可以从SNMP OID is copied up, which is the contents of the last two fragments of the SNMP oid.

④snmp OID #修改interfaces. Iftable.ifentry.ifinoctets.1 the last numeric value 1 is the port ID number. If it is out of traffic, the ifinoctests can be changed to ifoutoctets, that is, interfaces.iftable.ifentry.ifoutoctets.1.

⑤SNMP community #设置SNMP协议的读团体字符, must be consistent with the settings on the switch.

⑥units #设置端口流量的单位.

⑦use Custom Multiplier # tick, and set the value to 8, if not set, units Unit is bps.

⑧update interval #根据服务器的性能和监控的设备数量来设置, the default is also available.

650) this.width=650; "title=" 8 "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=" 8 "src=" http://s3.51cto.com/ Wyfs02/m01/7f/f6/wkiol1cy8hgixee2aaaihea2-om500.jpg "height=" 158 "/>

⑨store value #设置为Delta.

⑩ other settings by default, and finally hook on enabled, click Add, Create complete.

650) this.width=650; "title=" 9 "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=" 9 "src=" http://s3.51cto.com/ Wyfs02/m02/7f/f6/wkiol1cy8hkcxfx3aaaio-0wl5e787.jpg "height=" 201 "/>

The same port has in the traffic will also have out traffic, this model of the switch all ports are newly completed item, the result is as follows.

650) this.width=650, "title=", "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=" "src=" http://s3.51cto.com /wyfs02/m00/7f/f8/wkiom1cy75oq3ilhaaac8n3lyck334.jpg "height="/>

3.4 Creating the Hosts

Open the Create host interface Configuration->hosts->create host.

650) this.width=650; "title=" one "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=" src= "http://s3.51cto.com /wyfs02/m02/7f/f6/wkiol1cy8hpbpqpaaaaripizo9a056.jpg "height=" "/>"

Create host

①host name #主机名称, preferably in the same name as the switch, and can be brought back to the IP of the switch.

②group #选择交换机所属的群组.

③SNMP interfaces #填写交换机的IP.

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m00/7f/f8/wkiom1cy75wyp811aaae90khtsy287.jpg "height=" 143 "/>

④monitored by proxy Select No proxy and activate this host.

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m01/7f/f9/wkiom1cy75xro0qoaaatovyos4m060.jpg "height="/>

⑤ Select the Templates option next to host selection to select the template to which you belong.

⑥ Click Select to enter the template selection screen.

650) this.width=650; "title=" "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=" "src=" http://s3.51cto.com /wyfs02/m01/7f/f6/wkiol1cy8hwbm9xqaaaxr6gstps724.jpg "height="/>

⑦group Here Select the previously established switch Templates.

⑧ Select the template that the host belongs to, that is, the switch model, because my template is differentiated by the switch model. Click Select to return to the templates interface of host.

650) this.width=650, "title=", "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=" src= "http://s3.51cto.com /wyfs02/m02/7f/f9/wkiom1cy75echawlaaans_iwcp4947.jpg "height=" "/>"

⑨ Click Add to make sure to add this template to this host, this step is important.

650) this.width=650; "title=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px "style="; padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" src= "http://s3.51cto.com /wyfs02/m02/7f/f6/wkiol1cy8hfzbhrjaaavusje8wo501.jpg "height=" 102 "/>

⑩ OK linked templates There is a template we just selected, click Add, Create complete.

650) this.width=650; "title=" "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=" "src=" http://s3.51cto.com /wyfs02/m00/7f/f9/wkiom1cy75jbsidpaaac5qfpbaw673.jpg "height="/>

When you create a completed state, for example, the item created for the template is automatically established for the host. Availablity in this column, SNMP is green, indicating successful monitoring and unsuccessful red.

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m01/7f/f9/wkiom1cy75makobvaaak-fpemzq832.jpg "height=" 102 "/>

Iv. Creating port Traffic monitoring

4.1 Creating graphs

Open the Create graphical interface configuration->hosts-> Select a host->graphs->create graph.

650) this.width=650; "title=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px "style="; padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" src= "http://s3.51cto.com /wyfs02/m01/7f/f6/wkiol1cy8hnbg1jkaaarerv3aua951.jpg "height="/>

Create graph

①name #设置这个监控图表的名称.

② Click Add to enter the port interface to select the monitor.

650) this.width=650; "title=" "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=" "src=" http://s3.51cto.com /wyfs02/m01/7f/f6/wkiol1cy8hrwbgokaaaxfohslwq468.jpg "height=" 138 "/>

Select the port to monitor traffic here

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m02/7f/f6/wkiol1cy8hurz2-eaaassd_mmug119.jpg "height="/>

③ Other default configurations, click Add to create the complete.

650) this.width=650; "title=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px "style="; padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" src= "http://s3.51cto.com /wyfs02/m00/7f/f6/wkiol1cy8hzwxvdiaaacvmyncis220.jpg "height=" 155 "/>

After the creation is complete, the state is as follows.

650) this.width=650; "title=" "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=" src= "http://s3.51cto.com /wyfs02/m02/7f/f9/wkiom1cy752bq7-oaaar8xhghu4780.jpg "height="/>

4.2 Viewing port traffic

Open the monitor port traffic interface Monitoring->graphs->group->host->graph

650) this.width=650; "title=" "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=" "src=" http://s3.51cto.com /wyfs02/m02/7f/f6/wkiol1cy8h3hlmevaaalyeod8e4566.jpg "height="/>

Zabbix traffic charts can be segmented to view the port traffic situation by the time period listed in the left-hand zoom list, the more accurate timephased view is temporarily not found, and may need to be implemented by two development.

Thank you for opening this blog post, and always adhere to see here, if you feel helpful, please do not stingy in the lower right corner of the praise on the point.

This article from "Bit Technology" blog, reproduced please contact the author!

Zabbix 3.0 Monitoring Switch (1)--Port traffic monitoring

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.