Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Zabbix monitoring switch

Shulou Source: shulou.com Published: 2022-06-01 08:42:07 10月03日 Update

Configure the switch

System-view

[Quidway] interfacevlan 1

[Quidway-Vlanif1] ipaddress 192.168.1.111 255.255.255.0

[Quidway] snmp-agent

[Quidway] snmp-agentcommunity read public123

[Quidway] snmp-agentcommunity write private123

[Quidway] snmp-agentsys-info version all

two。 Extract device OID

In Linux, you can directly use the snmpwalk command to get

Yum-y install net-snmp-utils

Snmpwalk 192.168.1.111-v1-c public123 | grep-I ifInOctets (get port serial number)

Snmpget-v1-c public-On 192.168.1.111 ifInOctets.256 (get OID value with serial number 256)

.1.3.6.1.2.2.2.1.10.256 this is OID

Here, you can get the downloaded OID, get the uploaded OID and change the ifInOctets to ifOutOctets directly.

3. Create a template on zabbix

Log in to zabbix, select configuration, then select templates, and click create application in the upper right corner to create a template.

After the creation, click applications to create an interfere application.

After the application is created, click items to create a monitoring project.

Here is the monitoring of creating download traffic. If you want to monitor upload traffic, just change the OID in it to upload.

Finally, create the image. Select graphs to create the diagram of LAN1, and click add in the items below to add the project you just created.

4.zabbix create host

Click create host in the upper right corner of hosts in configuration

Then select templates to associate the template you just created

Finally, check whether the host snmp turns green, which means the monitoring is successful.

Tags: Monitoring selection template host that is serial number traffic project application switch success command image port green device build association login configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Tech Info OPPO Reno Docker vpn