From e44da25849e6ac0136ceea76e3d4b07c9942e1e8 Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 21 Nov 2018 18:28:43 +0100 Subject: ajustments and multigraph additions + add storages and filecount to multigraph plugin * ajust dictkeys to match over all plugins * update Readme --- nextcloud_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nextcloud_storage.py') diff --git a/nextcloud_storage.py b/nextcloud_storage.py index ed6c74e..ee3d7d2 100755 --- a/nextcloud_storage.py +++ b/nextcloud_storage.py @@ -21,7 +21,7 @@ class NextcloudStorage: def config(self): config = { 'storage': [ - 'graph_title Nextcloud Storage', + 'graph_title Nextcloud Storages', 'graph_args --base 1000 -l 0', 'graph_vlabel number of storage', 'graph_info graph showing the number of storages', @@ -45,14 +45,14 @@ class NextcloudStorage: def get_data(self, api_response): data = { - 'nextcloud_storage': [], + 'nextcloud_storages': [], } # storage storage = api_response['ocs']['data']['nextcloud']['storage'] # append for every key in storage the key and the value if the key starts with "num" - [data['nextcloud_storage'].append(str(key) + ".value " + str(storage[key])) + [data['nextcloud_storages'].append(str(key) + ".value " + str(storage[key])) for key in storage if key.startswith('num_storages')] return data -- cgit v1.2.3-18-g5258