-
Notifications
You must be signed in to change notification settings - Fork 2
/
frogg_alexa_check.xml
128 lines (128 loc) · 4.33 KB
/
frogg_alexa_check.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
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
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>4.4</version>
<date>2020-03-15T17:07:57Z</date>
<groups>
<group>
<name>Alexa</name>
</group>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template Alexa echo dot</template>
<name>Template Alexa echo dot</name>
<description>Simple check on port 8888 & 1080</description>
<groups>
<group>
<name>Alexa</name>
</group>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>status</name>
</application>
</applications>
<items>
<item>
<name>Check port 1080</name>
<type>SIMPLE</type>
<key>net.tcp.service[tcp,,1080]</key>
<history>1w</history>
<applications>
<application>
<name>status</name>
</application>
</applications>
<valuemap>
<name>Service state</name>
</valuemap>
</item>
<item>
<name>Check port 8888</name>
<type>SIMPLE</type>
<key>net.tcp.service[tcp,,8888]</key>
<history>1w</history>
<applications>
<application>
<name>status</name>
</application>
</applications>
<valuemap>
<name>Service state</name>
</valuemap>
</item>
</items>
</template>
<template>
<template>Template Alexa echo input</template>
<name>Template Alexa echo input</name>
<description>Simple check on port 55442</description>
<groups>
<group>
<name>Alexa</name>
</group>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>status</name>
</application>
</applications>
<items>
<item>
<name>Check port 55442</name>
<type>SIMPLE</type>
<key>net.tcp.service[tcp,,55442]</key>
<history>1w</history>
<applications>
<application>
<name>status</name>
</application>
</applications>
<valuemap>
<name>Service state</name>
</valuemap>
<triggers>
<trigger>
<expression>{max(#2)}=0</expression>
<name>{HOSTNAME} is unavailable</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item>
</items>
</template>
</templates>
<triggers>
<trigger>
<expression>{Template Alexa echo dot:net.tcp.service[tcp,,1080].max(#2)}=0 and {Template Alexa echo dot:net.tcp.service[tcp,,8888].max(#2)}=0</expression>
<name>{HOSTNAME} is unavailable</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
<value_maps>
<value_map>
<name>Service state</name>
<mappings>
<mapping>
<value>0</value>
<newvalue>Down</newvalue>
</mapping>
<mapping>
<value>1</value>
<newvalue>Up</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>