Added zabbix_nextcloud.yml
This commit is contained in:
parent
ae4796cb8c
commit
ee2788314d
222
zabbix_nextcloud.yaml
Normal file
222
zabbix_nextcloud.yaml
Normal file
@ -0,0 +1,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'
|
Loading…
Reference in New Issue
Block a user