blob: b523985b16960f75a71e3aca1971366035287c14 (
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
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
|
zabbix_export:
version: '6.0'
date: '2023-01-27T20:52:47Z'
groups:
-
uuid: c2c86ead985d40b5818f3a4540128acd
name: Templates/David
templates:
-
uuid: ac01bb70a1524a9a87911695b9db3e7b
template: Nextcloud
name: Nextcloud
description: 'Monitoring of Nextcloud by using API info endpoint'
groups:
-
name: Templates/David
items:
-
uuid: 9e3c5217cac645f495dee6957c32ead3
name: 'Active Users (last 1h)'
type: DEPENDENT
key: nextcloud.activeusers.last1h
delay: '0'
units: user(s)
description: 'Active Users in the last 1 hour'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.activeUsers.last1hour
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: bea015191549470cb08b1e76836cb93a
name: 'Active Users (last 5m)'
type: DEPENDENT
key: nextcloud.activeusers.last5m
delay: '0'
units: user(s)
description: 'Active Users in the last 5 Minutes'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.activeUsers.last5minutes
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: d5963f3339624ddbaab4351055fd690b
name: 'Active Users (last 24h)'
type: DEPENDENT
key: nextcloud.activeusers.last24h
delay: '0'
units: user(s)
description: 'Active Users in the last 24 hours'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.activeUsers.last24hours
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: 604342e402c7487f924c013c5c5074ca
name: 'Number of apps with available updates'
type: DEPENDENT
key: nextcloud.appswithupdates
delay: '0'
units: apps
description: 'Number of apps with updates available on Nextcloud'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.nextcloud.system.apps.num_updates_available
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: 6d83e75455ef4da5b781527a58b10d88
name: 'Number of apps installed'
type: DEPENDENT
key: nextcloud.installedapps
delay: '0'
units: apps
description: 'Number of installed apps in Nextcloud'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.nextcloud.system.apps.num_installed
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: d2544ce7e8bf444bbe2a094fb7bff7d5
name: 'Nextcloud API Raw Data'
type: HTTP_AGENT
key: nextcloud.raw
trends: '0'
value_type: TEXT
authtype: BASIC
username: '{$NEXTCLOUD.USER}'
password: '{$NEXTCLOUD.PASSWORD}'
url: '{$NEXTCLOUD.API.URL}'
query_fields:
-
name: format
value: json
tags:
-
tag: Application
value: 'Nextcloud Raw'
-
uuid: ca38ab81a8ee4f978d290e34184a3560
name: Status
type: DEPENDENT
key: nextcloud.status
delay: '0'
trends: '0'
value_type: TEXT
description: 'Nextcloud Status'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.meta.status
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: b33bf30af4634843bb0f1310ed42bef1
name: 'Status code'
type: DEPENDENT
key: nextcloud.statuscode
delay: '0'
description: 'Nextcloud Status Code'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.meta.statuscode
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: 58885759bed3404fb9689f0c8784e0a0
name: 'Status message'
type: DEPENDENT
key: nextcloud.statusmessage
delay: '0'
trends: '0'
value_type: TEXT
description: 'Nextcloud Status Message'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.meta.message
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
-
uuid: 46484a91ed6b407091d5d7f6ccda4fd9
name: Version
type: DEPENDENT
key: nextcloud.version
delay: '0'
trends: '0'
value_type: TEXT
description: 'Nextcloud Version'
preprocessing:
-
type: JSONPATH
parameters:
- $.ocs.data.nextcloud.system.version
master_item:
key: nextcloud.raw
tags:
-
tag: Application
value: Nextcloud
macros:
-
macro: '{$NEXTCLOUD.API.URL}'
value: 'https://<<nextcloud_address>>/ocs/v2.php/apps/serverinfo/api/v1/info'
description: 'URL to the Nextcloud API point, adjust to your server'
-
macro: '{$NEXTCLOUD.PASSWORD}'
value: '<<Password>>'
description: 'Password for Nextcloud Basic Auth'
-
macro: '{$NEXTCLOUD.USER}'
value: '<<Username>>'
description: 'Username for Nextcloud Basic Auth'
|