1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

set graph_period to 5 minutes + text changes in graph config

This commit is contained in:
ak4t0sh 2014-09-15 15:56:48 +02:00
parent f3d7d0195c
commit ef4bcb874d

View file

@ -32,13 +32,14 @@ $table_prefix = getenv('table_prefix');
$port = getenv('port');
if (!$port)
$port = 3306;
$graph_period = getenv('graph_period');
//$graph_period = getenv('graph_period');
$graph_period = time() - 5*60;
if (count($argv) === 2 && $argv[1] === 'config') {
echo "graph_title Moodle Total Users\n";
echo "graph_args --base 1000 --lower-limit 0\n";
echo "graph_vlabel Total Users Count / ${graph_period}\n";
echo "graph_vlabel users\n";
echo "graph_category Moodle\n";
echo "graph_scale no\n";
echo "graph_info Displays the sum of users, as well as active, suspended and deleted accounts, in your Moodle site\n";