-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathSongticker.yaml
235 lines (235 loc) · 7.79 KB
/
Songticker.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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
zabbix_export:
version: '7.0'
template_groups:
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
- uuid: d1403f0294d5459ba004f08def23e608
template: Songticker
name: Songticker
description: 'Check if the songticker is getting regular updates'
vendor:
name: RaBe
version: '7.0'
groups:
- name: Templates/Applications
items:
- uuid: c84c0cb280db435484c9217b22208309
name: 'Songticker: Last update'
type: DEPENDENT
key: rabe.songticker.date
delay: '0'
history: 7d
trends: '0'
units: unixtime
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''date'']/text()'
- type: JAVASCRIPT
parameters:
- 'return Date.parse(value)/1000'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: 1664b855379f4b6ea7764e9fd05a1a89
name: 'Songticker: Show end'
type: DEPENDENT
key: rabe.songticker.show_endtime
delay: '0'
history: 7d
trends: '0'
units: unixtime
description: 'When the current show ends.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''show'']/*[name()=''endTime'']/text()'
- type: JAVASCRIPT
parameters:
- 'return Date.parse(value)/1000'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
triggers:
- uuid: 52350d3ee2a14e1381809367122da29d
expression: last(/Songticker/rabe.songticker.show_endtime)-time()<0
name: 'Songticker: Show ends in the past'
priority: WARNING
description: 'No next show was started in songticker. This could mean that songticker itself is down somehow, or there could be an issue in our metadata that needs investigating.'
tags:
- tag: scope
value: availability
- uuid: 9469eb2fc7e3445f92053a99c8219958
name: 'Songticker: Show name'
type: DEPENDENT
key: rabe.songticker.show_name
delay: '0'
history: 7d
value_type: TEXT
trends: '0'
description: 'Name of the currently running show.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''show'']/*[name()=''name'']/text()'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: a503e836d6f6428d83d0a1cf35b98551
name: 'Songticker: Current Artist'
type: DEPENDENT
key: rabe.songticker.track_artist
delay: '0'
history: 7d
value_type: TEXT
trends: '0'
description: 'Currently running artist.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''track'']/*[name()=''artist'']/text()'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: 4b158ace141648a7a1d2b5308ab6f4ec
name: 'Songticker: Current Title'
type: DEPENDENT
key: rabe.songticker.track_title
delay: '0'
history: 7d
value_type: TEXT
trends: '0'
description: 'Currently running track.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''track'']/*[name()=''title'']/text()'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: 17572c4eaaf64ccdae11785ada8f85b0
name: 'Songticker XML reponse'
type: HTTP_AGENT
key: rabe.songticker.xml
history: '0'
value_type: TEXT
trends: '0'
timeout: 3s
url: '{$SONGTICKER.XML.ENDPOINT}'
tags:
- tag: component
value: raw
tags:
- tag: class
value: software
- tag: target
value: songticker
macros:
- macro: '{$SONGTICKER.XML.ENDPOINT}'
value: 'https://songticker.rabe.ch/songticker/0.9.3/current.xml'
description: 'Location of the generated XML file for Songticker'
dashboards:
- uuid: 48bd9ac035544391bbc984804645171a
name: 'Songticker: Overview'
pages:
- widgets:
- type: clock
width: '9'
height: '3'
fields:
- type: INTEGER
name: clock_type
value: '1'
- type: INTEGER
name: show
value: '1'
- type: INTEGER
name: show
value: '2'
- type: item
'y': '3'
width: '36'
height: '3'
hide_header: 'YES'
fields:
- type: STRING
name: description
value: 'last update'
- type: ITEM
name: itemid
value:
host: Songticker
key: rabe.songticker.date
- type: INTEGER
name: show
value: '1'
- type: INTEGER
name: show
value: '2'
- type: item
x: '9'
width: '63'
height: '3'
hide_header: 'YES'
fields:
- type: STRING
name: description
value: 'current show'
- type: ITEM
name: itemid
value:
host: Songticker
key: rabe.songticker.show_name
- type: INTEGER
name: show
value: '1'
- type: INTEGER
name: show
value: '2'
- type: item
x: '36'
'y': '3'
width: '36'
height: '3'
hide_header: 'YES'
fields:
- type: STRING
name: description
value: 'show end time'
- type: ITEM
name: itemid
value:
host: Songticker
key: rabe.songticker.show_endtime
- type: INTEGER
name: show
value: '1'
- type: INTEGER
name: show
value: '2'