前提条件: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. 添加图形