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

36 lines
760 B
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
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
2010-10-31 20:24:21 +00:00
2011-11-03 12:51:57 +00:00
$array = array(
'TLIe' => 'immed',
'TLWd' => 'waited',
);
2011-11-03 12:51:57 +00:00
$i = 0;
if (is_file($rrd_filename)) {
foreach ($array as $ds => $vars) {
$rrd_list[$i]['filename'] = $rrd_filename;
if (is_array($vars)) {
$rrd_list[$i]['descr'] = $vars['descr'];
}
else {
$rrd_list[$i]['descr'] = $vars;
}
$rrd_list[$i]['ds'] = $ds;
$i++;
2011-11-03 12:51:57 +00:00
}
}
else {
echo "file missing: $file";
}
2010-10-31 20:24:21 +00:00
$colours = 'mixed';
2011-11-03 12:51:57 +00:00
$nototal = 0;
$unit_text = 'Table locks';
2010-10-31 20:24:21 +00:00
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';