diff options
author | nico <nico@magicbroccoli.de> | 2018-11-21 18:28:43 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-11-21 18:29:24 +0100 |
commit | e44da25849e6ac0136ceea76e3d4b07c9942e1e8 (patch) | |
tree | fd81fb0f920d43da13b0f7cfb0b7c50064ce842f /nextcloud_storage.py | |
parent | 0924a6f49eb03f754052e0de75d53b8fdd575d3b (diff) |
ajustments and multigraph additions
+ add storages and filecount to multigraph plugin
* ajust dictkeys to match over all plugins
* update Readme
Diffstat (limited to 'nextcloud_storage.py')
-rwxr-xr-x | nextcloud_storage.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |