Files
librenms-librenms/html/includes/graphs/application/mysql_query_cache.inc.php
T

52 lines
1.2 KiB
PHP
Raw Normal View History

2010-10-31 20:24:21 +00:00
<?php
require 'includes/graphs/common.inc.php';
2010-10-31 20:24:21 +00:00
$mysql_rrd = rrd_name($device['hostname'], array('app', mysql, $app['app_id']));
2010-10-31 20:24:21 +00:00
if (rrdtool_check_rrd_exists($mysql_rrd)) {
$rrd_filename = $mysql_rrd;
2010-10-31 20:24:21 +00:00
$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',
),
);
$rrd_list = array();
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
$rrd_list[] = array(
'filename' => $rrd_filename,
2017-02-24 15:22:15 +00:00
'descr' => $var['descr'],
'ds' => $ds,
2017-02-24 15:22:15 +00:00
// 'colour' => $var['colour']
);
}
2016-08-18 20:28:22 -05:00
} else {
echo "data missing: $mysql_rrd";
}
2011-11-03 12:51:57 +00:00
$colours = 'mixed';
2011-11-03 12:51:57 +00:00
$nototal = 1;
$unit_text = 'Commands';
2011-11-03 12:51:57 +00:00
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';