zabbix本身可以通过SNMP协议对交换机等网络设备进行监控,本文针对H3C交换机设备进行zabbix监控项配置指导,旨在指导技术人员操作实施网络设备的监控
<H3C>system-view [H3C]snmp-agent [H3C]snmp-agent sys-info version v2 [H3C]snmp-agent community read public [H3C]snmp-agent trap enable [H3C]snmp-agent target-host trap address udp-domain 192.168.10.10 udp-port 161 params securityname public v2c
snmpwalk -v 2c -c public your-switch-ip
说明:MIB手册上的OID并没有子节点,需要通过snmpwalk查询过滤出有值的数据,获取子节点值
snmpwalk -v 2c -c public your-switch-ip 1.3.6.1.4.1.25506.2.6.1.1.1.1.6 | grep -v 0$
snmpwalk -v 2c -c public your-switch-ip 1.3.6.1.4.1.25506.2.6.1.1.1.1.12 |grep -v 65535$
经过对比可以获取OID对应设备的子节点信息:
solt1 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.220 hotspot 1 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.221 hotspot 2 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.222 hotspot 3 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.223 hotspot 4 solt2 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.240 hotspot 1 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.241 hotspot 2 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.242 hotspot 3 1.3.6.1.4.1.25506.2.6.1.1.1.1.12.243 hotspot 4
snmpwalk -v 2c -c public your-switch-ip 1.3.6.1.4.1.25506.8.35.9.1.2.1.2
配置--->模板--->创建模板
进入宏,添加交换机SNMP配置的团体名
接下来是、图形、触发器等等,就不一一配置了
连接端口监控模板
进入模板--->连接的模板--->选择Template - FH - SNMP Interfaces模板--->添加--->更新
描述 | |
---|---|
Admin status of interface {#SNMPVALUE} | 端口管理状态 |
Alias of interface {#SNMPVALUE} | 端口别名 |
Description of interface {#SNMPVALUE} | 端口描述 |
Inbound errors on interface {#SNMPVALUE} | 端口接收包错误数 |
Incoming traffic on interface {#SNMPVALUE} | 端口入流量 |
Interface speed of interface {#SNMPVALUE} | 端口速度 |
Operational status of interface {#SNMPVALUE} | 端口操作状态 |
Outbound errors on interface {#SNMPVALUE} | 端口发送包错误数 |
Outgoing traffic on interface {#SNMPVALUE} |
说明:根据需求,建议关闭不相关监控项,以减少无用监控项以及Zabbix压力
原文:https://www.cnblogs.com/zhangcheng94/p/12182343.html