1, switch configuration snmp service
snmp-agent /开启snmp服务
snmp-agent community complexity-check disable /关闭团体名密码复杂度检查功能
snmp-agent community read lwczabbix /团体名设置为lwczabbix
snmp-agent sys-info version all /允许所有版本
display snmp-agent community
<s5700-52x-a1-a02>display snmp-agent community
Community name:%^%#6coT!kI6/,RqS-ElrBbN|}_@0a6c<5obw&EbE%qF*`{{=@mGE'g|":,E++KD;iI13+E5XKzZ@,TF/m]J%^%#
Group name:%^%#6coT!kI6/,RqS-ElrBbN|}_@0a6c<5obw&EbE%qF*`{{=@mGE'g|":,E++KD;iI13+E5XKzZ@,TF/m]J%^%#
Storage-type: nonVolatile
<s5700-52x-a1-a02>
This switch configuration, by the test access zabbix-serversnmpwalk -v 2c -c lwczabbix 192.168.55.105
2, the monitoring zabbix adding switches
open Configuration-Hosts-Create host
Host tab, fill out the basic host names, group, ip address and port
Custom community name lwczabbix set on the Macros tab for the switch
Templates tab, set the connection template
Save it