From f7a99afdca61f17ae30c8a73194498c7f6281ec7 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 4 Sep 2018 15:10:28 +0200 Subject: removed hardcoded variables + added env variable support to remove hardcoded elements from plugin code * updated readme to represent thse changes --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 500dd75..45bf39c 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ Some basic Munin Plugins gathering information from the NextCloud external API. ## install -To use these Plugins one has to add his specific URL and credential to the script. +To use these plugins properly some configuration parameters need to be added to the plugin-config `/etc/munin/plugin-config.d/munin-node`. ``` -URL = 'https://URL.TO.YOUR.NEXTCLOUD.tld/ocs/v2.php/apps/serverinfo/api/v1/info' -auth = ('username', 'password or logintoken') +[nextcloud_*] +url = https://URL.TO.YOUR.NEXTCLOUD.tld/ocs/v2.php/apps/serverinfo/api/v1/info +username = username +password = password or logintoken ``` -If these are correct the script needs to be placed in the munin directory eg. `/etc/munin/plugins/` +After that the script needs to be placed in the munin plugin directory eg. `/etc/munin/plugins/` The munin-node needs to be restarted to facilitate the new plugins. `systemctl restart munin-node` -- cgit v1.2.3-18-g5258