Zabbix3.0 监控HW交换机
Zabbix服务器IP地址: 10.16.3.252HW交换机IP地址:10.16.100.2
1、zabbix服务器是通过snmp协议对交换机进行监控。所以,首先需要在交换机上开启SNMP应用:
HW-S5720S配置
snmp-agent
snmp-agent community read zabbix@123 //设置团体名为intop@123
snmp-agent sys-info version all
snmp-agent target-host inform addressudp-domain 10.16.3.252 udp-port 161 params securityname zabbix@123 v2c
snmp-agent trap type base-trap
snmp-agent trap enable
HW-S5700配置
snmp-agent
snmp-agentcommunity read zabbix@123//设置团体名为intop@123
snmp-agentsys-info version all
snmp-agenttarget-host inform address udp-domain 10.16.3.252 udp-port 161 paramssecurityname zabbix@123 v2c
snmp-agenttrap enable type base-trap
1.注释:
2.udp-domain 10.16.3.252 //zabbix服务器ip地址
3.udp-port 161 //监听端口
4.snmp-agent community read intop@123 //社团名称public
5.snmp-agent trap enable type base-trap//开启snmp
2、在zabbix服务器上测试能否获取到交换机的信息:
# snmpwalk -v 2c -c zabbix@123 10.16.100.2.1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: S5700S-28X-LI-AC
Huawei Versatile Routing Platform Software
VRP(R) software,Version 5.160 (S5700 V200R008C00SPC500)
Copyright (C) 2007 Huawei Technologies Co.,Ltd.
3、zabbix上设置
添加交换机 10.16.100.2
http://s3.运维网.com/wyfs02/M01/88/82/wKiom1f6B_2wYiMEAACHHMOuO58345.png-wh_500x0-wm_3-wmp_4-s_641636393.png
添加模板
http://s3.运维网.com/wyfs02/M01/88/7E/wKioL1f6CC2goIcBAABH5W1o19w070.png-wh_500x0-wm_3-wmp_4-s_1048107219.png
配置宏
http://s1.运维网.com/wyfs02/M02/88/82/wKiom1f6CFHwBAcSAABQrR0Ljto284.png-wh_500x0-wm_3-wmp_4-s_2042936974.png
页:
[1]