-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwszl.yml-dist
68 lines (57 loc) · 1.99 KB
/
wszl.yml-dist
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
zabbix:
#target-hostname: ''
api:
endpoint: https://zabbix.company.com/api_jsonrpc.php
username: CHANGE-ME
password: CHANGE-ME
item:
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
name-template: "Vhost '{}' item"
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
key-template: 'nginx.vhost.item[${URL_WITHOUT_PROTOCOL}]'
interface-id: '0'
delay: '5m'
# Item type:
# 0 - Zabbix agent
# 7 - Zabbix agent (agent)
type: 7
# Possible values:
# 0 - numeric float;
# 1 - character;
# 2 - log;
# 3 - numeric unsigned;
# 4 - text.
value-type: 0
#tags:
# - tag: 'abc'
# value: 'something'
trigger:
name: "Site '${URL_WITHOUT_PROTOCOL}' is unavailable"
priority: 4
# Problem expression
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
problem-expression: "avg(/${HOST}/web.test.fail[${URL_WITHOUT_PROTOCOL}],#3)>=1"
#problem-expression: "${HOST}:web.test.fail[Check index page '${URL_WITHOUT_PROTOCOL}'].last()"
# OK event generation mode.
#
# Possible values are:
# 0 - (default) Expression;
# 1 - Recovery expression;
# 2 - None.
recovery-mode: 0
# Recovery expression
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
recovery-expression: "last(/${HOST}/web.test.fail[${URL_WITHOUT_PROTOCOL}])=0"
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
event-name: "${URL_WITHOUT_PROTOCOL} is down"
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
url: "${URL}"
scenario:
# Search existing elements
key-starts-with: "Check index page '"
# Template variables are supported: ${HOST}, ${URL}, ${URL_WITHOUT_PROTOCOL}
name-template: "Check index page '${URL_WITHOUT_PROTOCOL}'"
response-timeout: "15s"
expect-status-code: "200"
attempts: 3
update-interval: "5m"