-
Notifications
You must be signed in to change notification settings - Fork 128
/
Template Module HOST-RESOURCES-MIB CPU SNMP.xml
88 lines (88 loc) · 3.36 KB
/
Template Module HOST-RESOURCES-MIB CPU SNMP.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>5.0</version>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<templates>
<template>
<template>Template Module HOST-RESOURCES-MIB CPU SNMP</template>
<name>Template Module HOST-RESOURCES-MIB CPU SNMP</name>
<description>Requires Zabbix server 4.0.14, 4.2.8, 4.4.0 or newer (JSONPath function avg() used with types autoconversion).
MIBs used:
HOST-RESOURCES-MIB
Template tooling version used: 0.36</description>
<groups>
<group>
<name>Templates/Modules</name>
</group>
</groups>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<items>
<item>
<name>CPU utilization</name>
<type>SNMP_AGENT</type>
<snmp_oid>discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]</snmp_oid>
<key>system.cpu.util</key>
<history>7d</history>
<value_type>FLOAT</value_type>
<units>%</units>
<description>MIB: HOST-RESOURCES-MIB
The average, over the last minute, of the percentage of time that processors was not idle.
Implementations may approximate this one minute smoothing period if necessary.</description>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$..['{#CPU.UTIL}'].avg()</params>
</step>
</preprocessing>
<triggers>
<trigger>
<expression>{min(5m)}>{$CPU.UTIL.CRIT}</expression>
<name>High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)</name>
<opdata>Current utilization: {ITEM.LASTVALUE1}</opdata>
<priority>WARNING</priority>
<description>CPU utilization is too high. The system might be slow to respond.</description>
</trigger>
</triggers>
</item>
</items>
<macros>
<macro>
<macro>{$CPU.UTIL.CRIT}</macro>
<value>90</value>
</macro>
</macros>
</template>
</templates>
<graphs>
<graph>
<name>CPU utilization</name>
<ymin_type_1>FIXED</ymin_type_1>
<ymax_type_1>FIXED</ymax_type_1>
<graph_items>
<graph_item>
<drawtype>GRADIENT_LINE</drawtype>
<color>1A7C11</color>
<item>
<host>Template Module HOST-RESOURCES-MIB CPU SNMP</host>
<key>system.cpu.util</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>