前提條件:html
1. 添加H3C網絡交換機的CPU和內存模板,並配置自動發現。python
注意,須要添加完成後,從新進行搜索後再此進入纔有下列選項。網絡
添加CPU的自動發現:spa
名稱:CPU Discovery
鍵值:cpu.discovery
SNMP OID:discovery[{#SNMPVALUE},1.3.6.1.4.1.25506.2.6.1.1.1.1.6]
SNMP community:{$SNMP_COMMUNITY}
描述:
If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable ,
indexed with cpmCPUTotalIndex .
This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router,
like different CPU chips, group of CPUs, or CPUs in different modules/cards.
In case of a single CPU, cpmCPUTotalTable has only one entry.
設置CPU的監控項原型:router
名稱:{#SNMPVALUE}: CPU utilization 鍵值:system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}] SNMP OID:1.3.6.1.4.1.25506.2.6.1.1.1.1.6.{#SNMPINDEX} SNMP community:{$SNMP_COMMUNITY} 單位:% 更新間隔:1m 靈活調度:50s 描述 MIB: CISCO-PROCESS-MIB The overall CPU busy percentage in the last 5 minute period. This object deprecates the avgBusy5 object from the OLD-CISCO-SYSTEM-MIB. This object is deprecated by cpmCPUTotal5minRev which has the changed range of value (0..100) Reference: http://www.cisco.com/c/en/us/support/docs/ip/simple-network-management-protocol-snmp/15215-collect-cpu-util-snmp.html
建立觸發器原型htm
名稱:{#SNMPVALUE}: High CPU utilization 表達式:{Template H3C SW CPU_Memory:system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}].avg(5m)}>{$CPU_UTIL_MAX}
建立圖形原型blog
添加內存自動發現:ip
名稱:Memory Discovery
鍵值:memory.discovery
SNMP OID:discovery[{#SNMPVALUE},1.3.6.1.4.1.25506.2.6.1.1.1.1.8]
SNMP community:{$SNMP_COMMUNITY}
描述
If your IOS device has several CPUs, you must use CISCO-PROCESS-MIB and its object cpmCPUTotal5minRev from the table called cpmCPUTotalTable ,
indexed with cpmCPUTotalIndex .
This table allows CISCO-PROCESS-MIB to keep CPU statistics for different physical entities in the router,
like different CPU chips, group of CPUs, or CPUs in different modules/cards.
In case of a single CPU, cpmCPUTotalTable has only one entry.
新建監控項原型:內存
名稱:{#SNMPVALUE}: MEM utilization 鍵值:system.memory.util[cpmCPUTotal5min.{#SNMPINDEX}] SNMP OID:1.3.6.1.4.1.25506.2.6.1.1.1.1.8.{#SNMPINDEX} SNMP community:{$SNMP_COMMUNITY}
添加觸發器原型:ci
名稱:{#SNMPVALUE}: High MEM utilization1 表達式:{Template H3C SW CPU_Memory:system.memory.util[cpmCPUTotal5min.{#SNMPINDEX}].avg(5m)}>{$MEM_UTIL_MAX}
添加圖形原件:
名稱:{#SNMPVALUE}: MEM utilization
手動關聯某一種模板:
1. 建立模板,關聯羣組
2. 設置應用集
3. 設置監控項
4. 添加圖形