2017-03-22 09:28:50 -05:00
|
|
|
<?php
|
|
|
|
$name = 'smart';
|
|
|
|
$app_id = $app['app_id'];
|
|
|
|
$unit_text = '';
|
|
|
|
$unitlen = 10;
|
2018-03-13 15:26:23 +02:00
|
|
|
$bigdescrlen = 25;
|
|
|
|
$smalldescrlen = 25;
|
2017-03-22 09:28:50 -05:00
|
|
|
$colours = 'mega';
|
|
|
|
$dostack = 0;
|
|
|
|
$printtotal = 0;
|
|
|
|
$addarea = 1;
|
|
|
|
$transparency = 15;
|
|
|
|
|
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', $name, $app_id, $vars['disk']));
|
|
|
|
|
|
|
|
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
|
|
|
$rrd_list[]=array(
|
|
|
|
'filename' => $rrd_filename,
|
2018-03-13 15:26:23 +02:00
|
|
|
'descr' => 'Reallocated_Sector_Ct',
|
2017-03-22 09:28:50 -05:00
|
|
|
'ds' => 'id5',
|
|
|
|
);
|
|
|
|
$rrd_list[]=array(
|
|
|
|
'filename' => $rrd_filename,
|
2018-03-13 15:26:23 +02:00
|
|
|
'descr' => 'Reported_Uncorrect',
|
2017-03-22 09:28:50 -05:00
|
|
|
'ds' => 'id187',
|
|
|
|
);
|
|
|
|
$rrd_list[]=array(
|
|
|
|
'filename' => $rrd_filename,
|
2018-03-13 15:26:23 +02:00
|
|
|
'descr' => 'Command_Timeout',
|
2017-03-22 09:28:50 -05:00
|
|
|
'ds' => 'id188',
|
|
|
|
);
|
|
|
|
$rrd_list[]=array(
|
|
|
|
'filename' => $rrd_filename,
|
2018-03-13 15:26:23 +02:00
|
|
|
'descr' => 'Current_Pending_Sector',
|
2017-03-22 09:28:50 -05:00
|
|
|
'ds' => 'id197',
|
|
|
|
);
|
|
|
|
$rrd_list[]=array(
|
|
|
|
'filename' => $rrd_filename,
|
2018-03-13 15:26:23 +02:00
|
|
|
'descr' => 'Offline_Uncorrectable',
|
2017-03-22 09:28:50 -05:00
|
|
|
'ds' => 'id198',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-11 23:26:42 -05:00
|
|
|
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
|