mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2713 61d68cd4-352d-0410-923a-c4978735b2b8
42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
PHP
<?php
|
|
|
|
include("includes/graphs/common.inc.php");
|
|
|
|
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
|
|
|
if (is_file($mysql_rrd))
|
|
{
|
|
$rrd_filename = $mysql_rrd;
|
|
}
|
|
|
|
|
|
$array = array('QCQICe' => array('descr' => 'Queries in cache', 'colour' => '22FF22'),
|
|
'QCHs' => array('descr' => 'Cache hits', 'colour' => '0022FF'),
|
|
'QCIs' => array('descr' => 'Inserts', 'colour' => 'FF0000'),
|
|
'QCNCd' => array('descr' => 'Not cached', 'colour' => '00AAAA'),
|
|
'QCLMPs' => array('descr' => 'Low-memory prunes', 'colour' => 'FF00FF'),
|
|
);
|
|
|
|
$i = 0;
|
|
if (is_file($rrd_filename))
|
|
{
|
|
foreach ($array as $ds => $vars)
|
|
{
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
$rrd_list[$i]['descr'] = $vars['descr'];
|
|
$rrd_list[$i]['ds'] = $ds;
|
|
# $rrd_list[$i]['colour'] = $vars['colour'];
|
|
$i++;
|
|
}
|
|
} else { echo("file missing: $file"); }
|
|
|
|
$colours = "mixed";
|
|
$nototal = 1;
|
|
$unit_text = "Commands";
|
|
|
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
|
|
|
|
|
|
|
?>
|