blob: 5c3a77a397dce72f3be3eb46c8a1e502f75886b9 (
plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
zabbix_export:
version: '5.4'
date: '2021-05-09T00:00:00Z'
groups:
-
name: Templates/Modules
templates:
-
template: 'Zabbix agent'
name: 'Zabbix agent'
description: |
Use this template for agents reachable from Zabbix server/proxy (passive mode).
Template tooling version used: 0.38
groups:
-
name: Templates/Modules
items:
-
name: 'Host name of Zabbix agent running'
key: agent.hostname
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: 'Monitoring agent'
-
name: 'Zabbix agent ping'
key: agent.ping
history: 7d
description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.'
valuemap:
name: 'Zabbix agent ping status'
tags:
-
tag: Application
value: 'Monitoring agent'
-
name: 'Version of Zabbix agent running'
key: agent.version
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: 'Monitoring agent'
-
name: 'Zabbix agent availability'
type: INTERNAL
key: 'zabbix[host,agent,available]'
history: 7d
description: 'Monitoring agent availability status'
valuemap:
name: zabbix.host.available
tags:
-
tag: Application
value: Status
triggers:
-
expression: 'max(/Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0'
name: 'Zabbix agent is not available (for {$AGENT.TIMEOUT})'
priority: AVERAGE
description: 'For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.'
manual_close: 'YES'
macros:
-
macro: '{$AGENT.TIMEOUT}'
value: 3m
description: 'Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).'
valuemaps:
-
name: zabbix.host.available
mappings:
-
value: '0'
newvalue: 'not available'
-
value: '1'
newvalue: available
-
value: '2'
newvalue: unknown
-
name: 'Zabbix agent ping status'
mappings:
-
value: '1'
newvalue: Up
-
template: 'Zabbix agent active'
name: 'Zabbix agent active'
description: |
Use this template instead of 'Template Module Zabbix agent' for agents running in active mode only.
Template tooling version used: 0.38
groups:
-
name: Templates/Modules
items:
-
name: 'Host name of Zabbix agent running'
type: ZABBIX_ACTIVE
key: agent.hostname
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: 'Monitoring agent'
-
name: 'Zabbix agent ping'
type: ZABBIX_ACTIVE
key: agent.ping
history: 7d
description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.'
valuemap:
name: 'Zabbix agent ping status'
tags:
-
tag: Application
value: Status
triggers:
-
expression: 'nodata(/Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1'
name: 'Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT})'
priority: AVERAGE
description: 'For active agents, nodata() with agent.ping is used with {$AGENT.NODATA_TIMEOUT} as time threshold.'
manual_close: 'YES'
-
name: 'Version of Zabbix agent running'
type: ZABBIX_ACTIVE
key: agent.version
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
preprocessing:
-
type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
-
tag: Application
value: 'Monitoring agent'
macros:
-
macro: '{$AGENT.NODATA_TIMEOUT}'
value: 30m
description: 'No data timeout for active agents. Consider to keep it relatively high.'
valuemaps:
-
name: 'Zabbix agent ping status'
mappings:
-
value: '1'
newvalue: Up
|