一、在防火墙或交换机上面开启snmp,协议选择V2
[root@zabbix-server ~]# snmpwalk -v2c -c Public02 10.0.5.1 IF-MIB::ifAdminStatus.2691 = INTEGER: up(1) IF-MIB::ifOperStatus.262 = INTEGER: up(1) IF-MIB::ifOperStatus.513 = INTEGER: up(1) IF-MIB::ifOperStatus.777 = INTEGER: up(1) IF-MIB::ifOperStatus.897 = INTEGER: down(2) IF-MIB::ifOperStatus.1025 = INTEGER: up(1) IF-MIB::ifOperStatus.1153 = INTEGER: up(1) IF-MIB::ifOperStatus.1281 = INTEGER: down(2) IF-MIB::ifOperStatus.1409 = INTEGER: down(2) IF-MIB::ifOperStatus.1542 = INTEGER: up(1) IF-MIB::ifOperStatus.1670 = INTEGER: up(1) IF-MIB::ifOperStatus.1798 = INTEGER: up(1) IF-MIB::ifOperStatus.1923 = INTEGER: up(1) IF-MIB::ifOperStatus.2051 = INTEGER: up(1) IF-MIB::ifOperStatus.2179 = INTEGER: up(1) IF-MIB::ifOperStatus.2307 = INTEGER: up(1) IF-MIB::ifOperStatus.2435 = INTEGER: up(1) IF-MIB::ifOperStatus.2563 = INTEGER: up(1) IF-MIB::ifOperStatus.2691 = INTEGER: up(1) IF-MIB::ifLastChange.262 = Timeticks: (0) 0:00:00.00 IF-MIB::ifLastChange.513 = Timeticks: (11317) 0:01:53.17 IF-MIB::ifLastChange.777 = Timeticks: (11317) 0:01:53.17 IF-MIB::ifLastChange.897 = Timeticks: (0) 0:00:00.00 IF-MIB::ifLastChange.1025 = Timeticks: (11447) 0:01:54.47 IF-MIB::ifLastChange.1153 = Timeticks: (195566) 0:32:35.66 IF-MIB::ifLastChange.1281 = Timeticks: (0) 0:00:00.00 IF-MIB::ifLastChange.1409 = Timeticks: (0) 0:00:00.00
二、创建监控项目
1、创建主机
2、设置模板
3、配置----主机----宏(添加宏语句)
宏:{$SNMP_COMMUNITY} 值:Public02
4、效果:等待一会,才能监控到。