Zabbix监控 之 OID动态索引
zabbix监控中当查找SNMPOIDS时,索引号对应着接口号,比如一个网络设备,当索引号改变时,我们创建的对应模板边不能监控到数据,为了避免这种情况,可以使用动态索引。http://blog.运维网.com/attachment/201310/164522380.jpg
重点是明白这种动态索引的工作方法:
http://blog.运维网.com/attachment/201310/171217401.jpg
举例:
1.查询baseOIDofindex看得到什么值
# snmpwalk -v2c -c public 192.168.70.135 ifDescr
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: sit0 2.若我要查询与网卡eth0有关的数值
那么
string to search for=eth0 #即字符串便是eth0,这就是这个字符串不是随意的,是通过前面的oid得到的 3.创建项目
http://blog.运维网.com/attachment/201310/171655687.jpg
4.查看最新数据
http://blog.运维网.com/attachment/201310/171741888.jpg
页:
[1]