2010-10-31 20:24:21 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-mysql-'.$app['app_id'].'.rrd';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$array = array(
|
|
|
|
'IBSRs' => 'Spin Rounds',
|
|
|
|
'IBSWs' => 'Spin Waits',
|
|
|
|
'IBOWs' => 'OS Waits',
|
|
|
|
);
|
2011-11-03 12:51:57 +00:00
|
|
|
|
|
|
|
$i = 0;
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_file($rrd_filename)) {
|
|
|
|
foreach ($array as $ds => $vars) {
|
2011-11-03 12:51:57 +00:00
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
2015-07-10 13:36:21 +02:00
|
|
|
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
|
|
|
}
|
2015-07-10 13:36:21 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo "file missing: $file";
|
|
|
|
}
|
2011-03-17 14:27:03 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
2011-11-03 12:51:57 +00:00
|
|
|
$nototal = 1;
|
2015-07-10 13:36:21 +02:00
|
|
|
$unit_text = 'Semaphores';
|
2010-10-31 20:24:21 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|