Zabbix——设置模板

前提条件:

  1. Zabbix版本为4.0
  2. 可以正常使用Server

1. 添加H3C网络交换机的CPU和内存模板,并配置自动发现。

注意,需要添加完成后,重新进行搜索后再此进入才有下列选项。

 

添加CPU的自动发现:

名称: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的监控项原型:

 

名称:{#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

 

 

 创建触发器原型

 

名称:{#SNMPVALUE}: High CPU utilization
表达式:{Template H3C SW CPU_Memory:system.cpu.util[cpmCPUTotal5min.{#SNMPINDEX}].avg(5m)}>{$CPU_UTIL_MAX}

创建图形原型

添加内存自动发现:

名称: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}

 

 添加触发器原型:

名称:{#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. 添加图形

 

 

转载于:https://www.cnblogs.com/xinbing/p/10678207.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值