Files
librenms-librenms/html/includes/graphs/application/smart_ssd.inc.php
endofline b70ff543bf webui: S.M.A.R.T visualization improvements (#8310)
* Increase description length in graphs
* Add SMART attr177, previously recorded, but not displayed
* Change the multi-graph titles to better reflect their content
* Change SMART attr numbers to a more human-friendly description
* Minor text corrections
2018-03-13 13:26:23 +00:00

42 lines
1.0 KiB
PHP

<?php
$name = 'smart';
$app_id = $app['app_id'];
$unit_text = '';
$unitlen = 10;
$bigdescrlen = 25;
$smalldescrlen = 25;
$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,
'descr' => 'Worst_Case_Erase_Count',
'ds' => 'id173',
);
$rrd_list[]=array(
'filename' => $rrd_filename,
'descr' => 'Wear_Leveling_Count',
'ds' => 'id177',
);
$rrd_list[]=array(
'filename' => $rrd_filename,
'descr' => 'SSD_Life_Left',
'ds' => 'id231',
);
$rrd_list[]=array(
'filename' => $rrd_filename,
'descr' => 'Media_Wearout_Indicator',
'ds' => 'id233',
);
}
require 'includes/graphs/generic_multi_line_exact_numbers.inc.php';