forked from zabbix/community-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_net.dns.perf.yaml
67 lines (51 loc) · 1.62 KB
/
template_net.dns.perf.yaml
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
zabbix_export:
version: '6.0'
date: '2021-11-21T21:38:43Z'
groups:
-
uuid: e5be8e009c61477ca38b16ae08352a19
name: 自宅ラックテンプレート
templates:
-
uuid: 509bf1069a304cb3a28979f19068add5
template: net.dns.perf
name: net.dns.perf
description: |
## Description
DNS応答時間測定
## Overview
DNSの応答性能を測定します。
テンプレートを利用する場合zabbix\_agentd.confでリモートコマンドを有効にしてください。
EnableRemoteCommands=1
UnsafeUserParameters=1
マクロ
{$DNS\_SERVER}=利用するDNSサーバを指定します。
{$DOMAIN\_NAME}=対象ドメイン名を指定します。
groups:
-
name: 自宅ラックテンプレート
items:
-
uuid: 30774ad745964e85a148c461196b9e4c
name: net.dns.perf
type: ZABBIX_ACTIVE
key: 'system.run[dig {$DNS_SERVER} {$DOMAIN_NAME} |grep Query |awk ''END{print$4}'']'
delay: '600'
value_type: FLOAT
units: s
preprocessing:
-
type: MULTIPLIER
parameters:
- '0.001'
tags:
-
tag: Application
value: DNS
macros:
-
macro: '{$DNS_SERVER}'
value: 8.8.8.8
-
macro: '{$DOMAIN_NAME}'
value: yahoo.co.jp