1. H3C交换机开启SNMP协议
[H3C]snmp-agent
[H3C]snmp-agent sys-info version v2
SNMPv1 and SNMPv2c are insecure because they transmit the community string and data in plaintext form.
[H3C]snmp-agent community read public
[H3C]snmp-agent sys-info version v2c v3
SNMPv1 and SNMPv2c are insecure because they transmit the community string and data in plaintext form.
[H3C]snmp-agent trap enable
[H3C]snmp-agent target-host trap address udp-domain 192.168.2.111 udp-port 161 params securityname public v2c
#192.168.2.111为zabbix的IP地址
2. Zabbix添加主机
SNMP接口为H3C交换机IP地址,默认端口161
{$SNMP_COMMUNITY}键值为H3C交换机配置时的securityname