From cd1345e5a87af9e7cd21df5990dd74852ca00625 Mon Sep 17 00:00:00 2001 From: ak4t0sh Date: Thu, 27 Nov 2014 16:23:11 +0100 Subject: [PATCH 1/3] enable graph scale --- plugins/moodle/moodle_files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/moodle/moodle_files.php b/plugins/moodle/moodle_files.php index dedd897a..cdf6c978 100644 --- a/plugins/moodle/moodle_files.php +++ b/plugins/moodle/moodle_files.php @@ -119,7 +119,7 @@ echo "graph_title Moodle Files Size\n"; echo "graph_args --base 1024 --lower-limit 0\n"; echo "graph_vlabel size\n"; echo "graph_category Moodle\n"; -echo "graph_scale no\n"; +echo "graph_scale yes\n"; echo "graph_total total\n"; echo "graph_info Displays the total size of moodle users files and repartition by type\n"; From eb2979cb235138e4ce0fd5e6dc850a1a769bed7f Mon Sep 17 00:00:00 2001 From: ak4t0sh Date: Thu, 27 Nov 2014 16:23:53 +0100 Subject: [PATCH 2/3] add support note --- plugins/moodle/moodle_logs.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/moodle/moodle_logs.php b/plugins/moodle/moodle_logs.php index e25df714..f6e0a2e8 100644 --- a/plugins/moodle/moodle_logs.php +++ b/plugins/moodle/moodle_logs.php @@ -4,6 +4,9 @@ * Moodle Logs * Munin plugin to count logs entries * + * Note : This plugin does not support Moodle 2.7 or newer versions + * If you want to use this plugin with Moodle 2.7 you have to enable logstore_legacy mode in your Moodle settings + * * It's required to define a container entry for this plugin in your * /etc/munin/plugin-conf.d/moodle.conf * From a116a2591e93b10092f40ae727212caaf8cc591c Mon Sep 17 00:00:00 2001 From: ak4t0sh Date: Thu, 27 Nov 2014 16:24:31 +0100 Subject: [PATCH 3/3] fix graph_total --- plugins/moodle/moodle_modules_total.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/moodle/moodle_modules_total.php b/plugins/moodle/moodle_modules_total.php index 60d813eb..3f054494 100644 --- a/plugins/moodle/moodle_modules_total.php +++ b/plugins/moodle/moodle_modules_total.php @@ -54,7 +54,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_category Moodle\n"; echo "graph_scale no\n"; echo "graph_info Displays the sum of module, as well as module instance number by type, in your Moodle site\n"; - echo "graph_total.label total\n"; + echo "graph_total total\n"; $draw = "AREA"; foreach($data as $entry) { echo "modules_".$entry->modulename.".label ".$entry->modulename."\n";