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_files.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_files.py')
-rwxr-xr-x | nextcloud_files.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nextcloud_files.py b/nextcloud_files.py index 226a94f..ee12d77 100755 --- a/nextcloud_files.py +++ b/nextcloud_files.py @@ -20,7 +20,7 @@ import os class NextcloudStorage: def config(self): config = { - 'storage': [ + 'filecount': [ 'graph_title Nextcloud Files', 'graph_args --base 1000 -l 0', 'graph_vlabel number of files', @@ -36,12 +36,12 @@ class NextcloudStorage: def get_data(self, api_response): data = { - 'nextcloud_storage': [], + 'nextcloud_filecount': [], } # append the total number of files present num_files = api_response['ocs']['data']['nextcloud']['storage']['num_files'] - data['nextcloud_storage'].append('num_files.value %s' % num_files) + data['nextcloud_filecount'].append('num_files.value %s' % num_files) return data |