mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 18:07:20 +00:00
set graph_period to 5 minutes + text changes in graph config
This commit is contained in:
parent
f3d7d0195c
commit
ef4bcb874d
1 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue