Zabbix之监控交换机
以思科机为例;
通过snmp来进行监控,重点是思科机oid信息库的收集
1.与内存有关的oid
### THIS FILE WAS GENERATED BY MIB2SCHEMA "org" "1.3" "dod" "1.3.6" "internet" "1.3.6.1" "directory" "1.3.6.1.1" "mgmt" "1.3.6.1.2" "experimental" "1.3.6.1.3" "private" "1.3.6.1.4" "enterprises" "1.3.6.1.4.1" "cisco" "1.3.6.1.4.1.9" "ciscoMgmt" "1.3.6.1.4.1.9.9" "ciscoMemoryPoolMIB" "1.3.6.1.4.1.9.9.48" "ciscoMemoryPoolObjects" "1.3.6.1.4.1.9.9.48.1" "ciscoMemoryPoolNotifications" "1.3.6.1.4.1.9.9.48.2" "ciscoMemoryPoolConformance" "1.3.6.1.4.1.9.9.48.3" "ciscoMemoryPoolTable" "1.3.6.1.4.1.9.9.48.1.1" "ciscoMemoryPoolUtilizationTable" "1.3.6.1.4.1.9.9.48.1.2" "ciscoMemoryPoolEntry" "1.3.6.1.4.1.9.9.48.1.1.1" "ciscoMemoryPoolType" "1.3.6.1.4.1.9.9.48.1.1.1.1" "ciscoMemoryPoolName" "1.3.6.1.4.1.9.9.48.1.1.1.2" "ciscoMemoryPoolAlternate" "1.3.6.1.4.1.9.9.48.1.1.1.3" "ciscoMemoryPoolValid" "1.3.6.1.4.1.9.9.48.1.1.1.4" "ciscoMemoryPoolUsed" "1.3.6.1.4.1.9.9.48.1.1.1.5" "ciscoMemoryPoolFree" "1.3.6.1.4.1.9.9.48.1.1.1.6" "ciscoMemoryPoolLargestFree" "1.3.6.1.4.1.9.9.48.1.1.1.7" "ciscoMemoryPoolUtilizationEntry" "1.3.6.1.4.1.9.9.48.1.2.1" "ciscoMemoryPoolUtilization1Min" "1.3.6.1.4.1.9.9.48.1.2.1.1" "ciscoMemoryPoolUtilization5Min" "1.3.6.1.4.1.9.9.48.1.2.1.2" "ciscoMemoryPoolUtilization10Min" "1.3.6.1.4.1.9.9.48.1.2.1.3" "ciscoMemoryPoolCompliances" "1.3.6.1.4.1.9.9.48.3.1" "ciscoMemoryPoolGroups" "1.3.6.1.4.1.9.9.48.3.2" "ciscoMemoryPoolCompliance" "1.3.6.1.4.1.9.9.48.3.1.1" "ciscoMemoryPoolComplianceRev1" "1.3.6.1.4.1.9.9.48.3.1.2" "ciscoMemoryPoolGroup" "1.3.6.1.4.1.9.9.48.3.2.1" "ciscoMemoryPoolUtilizationGroup" "1.3.6.1.4.1.9.9.48.3.2.2"
内存当前使用情况:1.3.6.1.4.1.9.9.48.1.1.1.5
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.9.48.1.1.1.5 SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.1 = Gauge32: 18496352 SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.2 = Gauge32: 5293608 SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.16 = Gauge32: 40
三种内存种类:
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.9.48.1.1.1.2 SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "Processor" SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.2 = STRING: "I/O" SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.16 = STRING: "Driver text"
内存当前的剩余情况:1.3.6.1.4.1.9.9.48.1.1.1.6
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.9.48.1.1.1.6 SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.1 = Gauge32: 55472564 SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.2 = Gauge32: 9386456 SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.16 = Gauge32: 1048536
2.与cpu有关的oid
过去5秒钟cpu繁忙百分比:1.3.6.1.4.1.9.2.1.56.0
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.2.1.56.0 SNMPv2-SMI::enterprises.9.2.1.56.0 = INTEGER: 22
过去1分钟cpu繁忙百分比:1.3.6.1.4.1.9.2.1.57.0
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.2.1.57.0 SNMPv2-SMI::enterprises.9.2.1.57.0 = INTEGER: 21
过去5分钟cpu繁忙百分比:1.3.6.1.4.1.9.2.1.58.0
[root@jiankong-centos ~]# snmpwalk -v2c -c iwgame 172.16.1.17 1.3.6.1.4.1.9.2.1.58.0 SNMPv2-SMI::enterprises.9.2.1.58.0 = INTEGER: 21
原文链接:http://www.chinaitlab.com/cisco/base/940398.html