Using Zabbix to realize the monitoring of the switch, the principle of using SNMP to realize monitoring is to obtain the required monitoring data through the OID. Different switch device OIDs may vary, and if you are unsure of the specific OID, you can perform a stepwise analysis by using the following command:
snmpwalk-v 2c-c homed 192.168.52.6 >oid.txt
The monitoring steps for the Dell switch are implemented via the Zabbix LLD:
First configure the public body name of the switch, the community name of all switches is best unified and easy to manage
Snmp-server community "homed" ro
Testing on the Zabbix server host
snmpwalk-v 2c-c homed 192.168.52.6 sysName
Get the name of the switch if the data you can get is configured correctly
Configuration of Zabbix for monitoring with LLD
Configure common body names: general---Macros
{$SNMP _community} = homed//reference in the definition module
Configuration Template: Create Discovery rule
Key1: IfName
Oid:if-mib::ifname//oid Gets the name of the interface
eg:if-mib::ifname.1 = string:te1/0/1 {#SNMPINDEX}=1 {#SNMPVALUE}=TE1/0/1
{#SNMPINDEX} and {#SNMPVALUE} Two variables generated for key1 are used to define the prototype later
SNMP community Name: {$SNMP _community}//defined in the mega-set
Filter: {#SNMPVALUE} match Te//filter The interface information you want to monitor
To create a project prototype:
key2:ifinoctets[{#SNMPVALUE}]
Oid:if-mib::ifinoctets. {#SNMPINDEX}
Unit:bps--8
Store Value:delta (speed per second)
Trigger definition:
Name:outgoing use of interface {#SNMPVALUE} exceed 100M for the last 5 minutes
{Network Traffic monitor:ifoutoctets[{#SNMPVALUE}].count (#5, 100M, "GT")}=5
5 consecutive times greater than or equal to 100M alarms
This article from "Banging blog" blog, declined reprint!
Zabbix Monitoring Switch