zabbix监控交换机

  1. 交换机开启svmp协议

<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
  1. 验证是否可以远程获取OID信息


snmpwalk -v 2c -c public 交换机ip

  1. CPU使用率,温度,电源状态OID获取

查询MIB手册或getif获取OID{1.3.6.1.4.1.25506.2.6.1.1.1.1.6这个是OID}

  1. cpu使用率


snmpwalk -v 2c -c public 交换机 1.3.6.1.4.1.25506.2.6.1.1.1.1.6 | grep -v 0$

  1. 温度


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$

  1. 电源状态


snmpwalk -v 2c -c public your-switch-ip 1.3.6.1.4.1.25506.8.35.9.1.2.1.2

  1. web面板的配置

  1. 配置--->模板--->创建模板

  1. 配置模板宏

进入宏,添加交换机SNMP配置的团体名

  1. 配置监控项

以Slot1电源状态为例

监控项描述
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}端口出流量

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

dengdeng--

感谢老板!!!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值