initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024
This commit is contained in:
302
root/opt/phpsysinfo/plugins/smart/class.smart.inc.php
Normal file
302
root/opt/phpsysinfo/plugins/smart/class.smart.inc.php
Normal file
@@ -0,0 +1,302 @@
|
||||
<?php
|
||||
/**
|
||||
* SMART Plugin
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_SMART
|
||||
* @author Antoine Bertin <diaoulael@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @version SVN: $Id: class.smart.inc.php 707 2012-11-28 10:20:49Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* SMART plugin, which displays all SMART informations available
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_SMART
|
||||
* @author Antoine Bertin <diaoulael@users.sourceforge.net>
|
||||
* @copyright 2009 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @version Release: 3.0
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
class SMART extends PSI_Plugin
|
||||
{
|
||||
/**
|
||||
* variable, which holds the content of the command
|
||||
* @var array
|
||||
*/
|
||||
private $_filecontent = array();
|
||||
|
||||
/**
|
||||
* variable, which holds the result before the xml is generated out of this array
|
||||
* @var array
|
||||
*/
|
||||
private $_result = array();
|
||||
|
||||
/**
|
||||
* variable, which holds PSI_PLUGIN_SMART_IDS well formated datas
|
||||
* @var array
|
||||
*/
|
||||
private $_ids = array();
|
||||
|
||||
/**
|
||||
* read the data into an internal array and also call the parent constructor
|
||||
*
|
||||
* @param String $enc target encoding
|
||||
*/
|
||||
public function __construct($enc)
|
||||
{
|
||||
parent::__construct(__CLASS__, $enc);
|
||||
switch (strtolower(PSI_PLUGIN_SMART_ACCESS)) {
|
||||
case 'command':
|
||||
if (defined('PSI_PLUGIN_SMART_DEVICES') && is_string(PSI_PLUGIN_SMART_DEVICES)) {
|
||||
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_DEVICES)) {
|
||||
$disks = eval(PSI_PLUGIN_SMART_DEVICES);
|
||||
} else {
|
||||
$disks = array(PSI_PLUGIN_SMART_DEVICES);
|
||||
}
|
||||
foreach ($disks as $disk) {
|
||||
if (trim($disk) != "") {
|
||||
$diskdev = "";
|
||||
if (preg_match("/\s*\(([^\(\(]*)\)\s*(.*)/", $disk, $devdisk)) {
|
||||
$diskname = trim($devdisk[2]);
|
||||
if (trim($devdisk[1]) != "") {
|
||||
$diskdev = "--device ".preg_replace('/\./', ',', trim($devdisk[1]));
|
||||
}
|
||||
} else {
|
||||
$diskname = trim($disk);
|
||||
}
|
||||
$buffer = "";
|
||||
if (trim($diskname != "") && (CommonFunctions::executeProgram('smartctl', '--all'.' '.$diskdev.' '.$diskname, $buffer, PSI_DEBUG))) {
|
||||
$this->_filecontent[trim($disk)] = $buffer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (defined('PSI_PLUGIN_SMART_IDS') && is_string(PSI_PLUGIN_SMART_IDS)) {
|
||||
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_IDS)) {
|
||||
$fullIds = eval(PSI_PLUGIN_SMART_IDS);
|
||||
} else {
|
||||
$fullIds = array(PSI_PLUGIN_SMART_IDS);
|
||||
}
|
||||
foreach ($fullIds as $fullId) {
|
||||
$arrFullId = preg_split('/-/', $fullId);
|
||||
$this->_ids[intval($arrFullId[0])] = strtolower($arrFullId[1]);
|
||||
if (!empty($arrFullId[2]))
|
||||
$this->_ids[intval($arrFullId[2])] = "#replace-".intval($arrFullId[0]);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'data':
|
||||
if (defined('PSI_PLUGIN_SMART_DEVICES') && is_string(PSI_PLUGIN_SMART_DEVICES)) {
|
||||
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_DEVICES)) {
|
||||
$disks = eval(PSI_PLUGIN_SMART_DEVICES);
|
||||
} else {
|
||||
$disks = array(PSI_PLUGIN_SMART_DEVICES);
|
||||
}
|
||||
$dn=0;
|
||||
foreach ($disks as $disk) {
|
||||
$buffer="";
|
||||
if (CommonFunctions::rfts(APP_ROOT."/data/smart{$dn}.txt", $buffer) && !empty($buffer)) {
|
||||
$this->_filecontent[$disk] = $buffer;
|
||||
}
|
||||
$dn++;
|
||||
}
|
||||
}
|
||||
if (defined('PSI_PLUGIN_SMART_IDS') && is_string(PSI_PLUGIN_SMART_IDS)) {
|
||||
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SMART_IDS)) {
|
||||
$fullIds = eval(PSI_PLUGIN_SMART_IDS);
|
||||
} else {
|
||||
$fullIds = array(PSI_PLUGIN_SMART_IDS);
|
||||
}
|
||||
foreach ($fullIds as $fullId) {
|
||||
$arrFullId = preg_split('/-/', $fullId);
|
||||
$this->_ids[intval($arrFullId[0])] = strtolower($arrFullId[1]);
|
||||
if (!empty($arrFullId[2]))
|
||||
$this->_ids[intval($arrFullId[2])] = "#replace-".intval($arrFullId[0]);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$this->global_error->addError("switch(PSI_PLUGIN_SMART_ACCESS)", "Bad SMART configuration in phpsysinfo.ini");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* doing all tasks to get the required informations that the plugin needs
|
||||
* result is stored in an internal array
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
if (empty($this->_filecontent) || empty($this->_ids)) {
|
||||
return;
|
||||
}
|
||||
foreach ($this->_filecontent as $disk=>$result) {
|
||||
// set the start and end offset in the result string at the beginning and end respectively
|
||||
// just in case we don't find the two strings, so that it still works as expected.
|
||||
$startIndex = 0;
|
||||
$endIndex = 0;
|
||||
$vendorInfos = "";
|
||||
|
||||
// locate the beginning string offset for the attributes
|
||||
if (preg_match('/(Vendor Specific SMART Attributes with Thresholds)/', $result, $matches, PREG_OFFSET_CAPTURE))
|
||||
$startIndex = $matches[0][1];
|
||||
|
||||
// locate the end string offset for the attributes, this is usually right before string "SMART Error Log Version" or "SMART Error Log not supported" or "Error SMART Error Log Read failed" (hopefully every output has it!)
|
||||
if (preg_match('/(SMART Error Log Version)|(SMART Error Log not supported)|(Error SMART Error Log Read failed)/', $result, $matches, PREG_OFFSET_CAPTURE))
|
||||
$endIndex = $matches[0][1];
|
||||
|
||||
if ($startIndex && $endIndex && ($endIndex>$startIndex))
|
||||
$vendorInfos = preg_split("/\n/", substr($result, $startIndex, $endIndex - $startIndex));
|
||||
|
||||
if (!empty($vendorInfos)) {
|
||||
$labels = preg_split('/\s+/', $vendorInfos[1]);
|
||||
foreach ($labels as $k=>$v) {
|
||||
$labels[$k] = str_replace('#', '', strtolower($v));
|
||||
}
|
||||
$i = 0; // Line number
|
||||
foreach ($vendorInfos as $line) {
|
||||
$line = preg_replace('/^\s+/', '', $line);
|
||||
$values = preg_split('/\s+/', $line);
|
||||
if (count($values) > count($labels)) {
|
||||
$values = array_slice($values, 0, count($labels), true);
|
||||
}
|
||||
$j = 0;
|
||||
$found = false;
|
||||
foreach ($values as $value) {
|
||||
if ((in_array($value, array_keys($this->_ids)) && $labels[$j] == 'id')) {
|
||||
$arrFullVa = preg_split('/-/', $this->_ids[$value]);
|
||||
if (($arrFullVa[0]=="#replace") && !empty($arrFullVa[1]))
|
||||
$value=$arrFullVa[1];
|
||||
}
|
||||
if (((in_array($value, array_keys($this->_ids)) && $labels[$j] == 'id') || ($found && (in_array($labels[$j], array_values($this->_ids)))) || ($found && $labels[$j] == 'attribute_name'))) {
|
||||
$this->_result[$disk][$i][$labels[$j]] = $value;
|
||||
$found = true;
|
||||
}
|
||||
$j++;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
//SCSI devices
|
||||
if (!empty($this->_ids[1]) && ($this->_ids[1]=="raw_value")) {
|
||||
preg_match('/read\: (.*)\n/', $result, $lines);
|
||||
if (!empty($lines) && !empty($lines[0])) {
|
||||
$values=preg_split('/\s+/', $lines[0]);
|
||||
if (!empty($values) && ($values[7]!=null)) {
|
||||
$vals=preg_split('/[,\.]/', $values[7]);
|
||||
$this->_result[$disk][0]['id'] = 1;
|
||||
$this->_result[$disk][0]['attribute_name'] = "Raw_Read_Error_Rate";
|
||||
$this->_result[$disk][0]['raw_value'] = $vals[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($this->_ids[5]) && ($this->_ids[5]=="raw_value")) {
|
||||
preg_match('/Elements in grown defect list\: (.*)\n/', $result, $lines);
|
||||
if (!empty($lines) && !empty($lines[0])) {
|
||||
$values=preg_split('/\s+/', $lines[0]);
|
||||
if (!empty($values) && ($values[5]!=null)) {
|
||||
$vals=preg_split('/[,\.]/', $values[5]);
|
||||
$this->_result[$disk][1]['id'] = 5;
|
||||
$this->_result[$disk][1]['attribute_name'] = "Reallocated_Sector_Ct";
|
||||
$this->_result[$disk][1]['raw_value'] = $vals[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($this->_ids[9]) && ($this->_ids[9]=="raw_value")) {
|
||||
preg_match('/ number of hours powered up = (.*)\n/', $result, $lines);
|
||||
if (!empty($lines) && !empty($lines[0])) {
|
||||
$values=preg_split('/\s+/', $lines[0]);
|
||||
if (!empty($values) && ($values[7]!=null)) {
|
||||
$vals=preg_split('/[,\.]/', $values[7]);
|
||||
$this->_result[$disk][2]['id'] = 9;
|
||||
$this->_result[$disk][2]['attribute_name'] = "Power_On_Hours";
|
||||
$this->_result[$disk][2]['raw_value'] = $vals[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($this->_ids[194]) && ($this->_ids[194]=="raw_value")) {
|
||||
preg_match('/Current Drive Temperature\: (.*)\n/', $result, $lines);
|
||||
if (!empty($lines) && !empty($lines[0])) {
|
||||
$values=preg_split('/\s+/', $lines[0]);
|
||||
if (!empty($values) && ($values[3]!=null)) {
|
||||
$vals=preg_split('/[,\.]/', $values[3]);
|
||||
$this->_result[$disk][3]['id'] = 194;
|
||||
$this->_result[$disk][3]['attribute_name'] = "Temperature_Celsius";
|
||||
$this->_result[$disk][3]['raw_value'] = $vals[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//Usage test
|
||||
$newIds = array();
|
||||
foreach ($this->_ids as $id=>$column_name) {
|
||||
$found = 0;
|
||||
foreach ($this->_result as $diskName=>$diskInfos) {
|
||||
if ($found!=2) foreach ($diskInfos as $lineInfos) {
|
||||
if ($found!=2) {
|
||||
$found = 0;
|
||||
foreach ($lineInfos as $label=>$value) {
|
||||
if (($found==0) && ($label=="id") && ($value==$id))
|
||||
$found = 1;
|
||||
if (($found==1) && ($label==$column_name))
|
||||
$found = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($found==2) $newIds[$id] = $this->_ids[$id];
|
||||
}
|
||||
$this->_ids = $newIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* generates the XML content for the plugin
|
||||
*
|
||||
* @return SimpleXMLObject entire XML content for the plugin
|
||||
*/
|
||||
public function xml()
|
||||
{
|
||||
if (empty($this->_result) || empty($this->_ids)) {
|
||||
return $this->xml->getSimpleXmlElement();
|
||||
}
|
||||
|
||||
$columnsChild = $this->xml->addChild('columns');
|
||||
// Fill the xml with preferences
|
||||
foreach ($this->_ids as $id=>$column_name) {
|
||||
$columnChild = $columnsChild->addChild('column');
|
||||
$columnChild->addAttribute('id', $id);
|
||||
$columnChild->addAttribute('name', $column_name);
|
||||
}
|
||||
|
||||
$disksChild = $this->xml->addChild('disks');
|
||||
// Now fill the xml with S.M.A.R.T datas
|
||||
foreach ($this->_result as $diskName=>$diskInfos) {
|
||||
$diskChild = $disksChild->addChild('disk');
|
||||
$diskChild->addAttribute('name', $diskName);
|
||||
foreach ($diskInfos as $lineInfos) {
|
||||
$lineChild = $diskChild->addChild('attribute');
|
||||
|
||||
if (($lineInfos['id'] == 9) && ($lineInfos['attribute_name'] == "Power_On_Hours_and_Msec")) {
|
||||
$lineInfos['attribute_name'] = "Power_On_Hours";
|
||||
$raw_value = preg_split("/h/", $lineInfos['raw_value'], -1, PREG_SPLIT_NO_EMPTY);
|
||||
$lineInfos['raw_value'] = $raw_value[0];
|
||||
}
|
||||
|
||||
foreach ($lineInfos as $label=>$value) {
|
||||
$lineChild->addAttribute($label, $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->xml->getSimpleXmlElement();
|
||||
}
|
||||
}
|
6
root/opt/phpsysinfo/plugins/smart/css/smart.css
Normal file
6
root/opt/phpsysinfo/plugins/smart/css/smart.css
Normal file
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
$Id: smart.css 661 2012-08-27 11:26:39Z namiltd $
|
||||
*/
|
||||
#Plugin_SMARTTable tbody tr td {
|
||||
text-align: right;
|
||||
}
|
166
root/opt/phpsysinfo/plugins/smart/js/smart.js
Normal file
166
root/opt/phpsysinfo/plugins/smart/js/smart.js
Normal file
@@ -0,0 +1,166 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2008 by phpSysInfo - A PHP System Information Script *
|
||||
* http://phpsysinfo.sourceforge.net/ *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
//$Id: smart.js 707 2012-11-28 10:20:49Z namiltd $
|
||||
|
||||
|
||||
/*global $, jQuery, genlang, formatTemp, plugin_translate, buildBlock, datetime */
|
||||
|
||||
"use strict";
|
||||
|
||||
var smart_show = false, smart_table;
|
||||
|
||||
//appendcss("./plugins/SMART/css/SMART.css");
|
||||
|
||||
/**
|
||||
* fill the plugin block with table structure
|
||||
*/
|
||||
function smart_buildTable(xml) {
|
||||
var html = "";
|
||||
|
||||
html += "<table id=\"Plugin_SMARTTable\" style=\"border-spacing:0;\">\n";
|
||||
html += " <thead>\n";
|
||||
html += " <tr>\n";
|
||||
html += " <th class=\"right\">" + genlang(3, false, "SMART") + "</th>\n";
|
||||
$("Plugins Plugin_SMART columns column", xml).each(function smart_table_header() {
|
||||
html += " <th class=\"right\">" + genlang(100 + parseInt($(this).attr("id"), 10), false, "SMART") + "</th>\n";
|
||||
});
|
||||
html += " </tr>\n";
|
||||
html += " </thead>\n";
|
||||
html += " <tbody>\n";
|
||||
html += " </tbody>\n";
|
||||
html += "</table>\n";
|
||||
|
||||
$("#Plugin_SMART").append(html);
|
||||
|
||||
smart_table = $("#Plugin_SMARTTable").dataTable({
|
||||
"bPaginate": false,
|
||||
"bLengthChange": false,
|
||||
"bFilter": false,
|
||||
"bSort": true,
|
||||
"bInfo": false,
|
||||
"bProcessing": true,
|
||||
"bAutoWidth": false,
|
||||
"bStateSave": true
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* insert content into table
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function smart_populate(xml) {
|
||||
var name = "", columns = [];
|
||||
smart_table.fnClearTable();
|
||||
|
||||
// Get datas that the user want to be displayed
|
||||
$("Plugins Plugin_SMART columns column", xml).each(function smart_find_columns() {
|
||||
columns[parseInt($(this).attr("id"), 10)] = $(this).attr("name");
|
||||
});
|
||||
|
||||
// Now we add selected datas in the table
|
||||
$("Plugins Plugin_SMART disks disk", xml).each(function smart_fill_table() {
|
||||
var values = [], display = [], i;
|
||||
name = $(this).attr("name");
|
||||
$(this).find("attribute").each(function smart_fill_data() {
|
||||
if (columns[parseInt($(this).attr("id"), 10)] && columns[parseInt($(this).attr("id"), 10)] !== "") {
|
||||
values[parseInt($(this).attr("id"), 10)] = $(this).attr(columns[parseInt($(this).attr("id"), 10)]);
|
||||
}
|
||||
});
|
||||
|
||||
display.push("<span style=\"display:none;\">" + name + "</span>" + name);
|
||||
|
||||
// On "columns" so we get the right order
|
||||
// fixed for Firefox (fix wrong order)
|
||||
// for (i in columns) {
|
||||
$("Plugins Plugin_SMART columns column", xml).each(function smart_find_columns() {
|
||||
i = parseInt($(this).attr("id"), 10);
|
||||
if (typeof(values[i])==='undefined') {
|
||||
// values[i] = "";
|
||||
display.push("<span style=\"display:none;\"></span>");
|
||||
}
|
||||
else if (i === 194) {
|
||||
display.push("<span style=\"display:none;\">" + values[i] + "</span>" + formatTemp(values[i], xml));
|
||||
}
|
||||
else {
|
||||
display.push("<span style=\"display:none;\">" + values[i] + "</span>" + values[i]);
|
||||
}
|
||||
// }
|
||||
});
|
||||
smart_table.fnAddData(display);
|
||||
});
|
||||
smart_show = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function smart_initTable() {
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=SMART",
|
||||
dataType: "xml",
|
||||
error: function smart_error() {
|
||||
$.jGrowl("Error loading XML document for Plugin SMART");
|
||||
},
|
||||
success: function smart_initBlock(xml) {
|
||||
smart_buildTable(xml);
|
||||
smart_populate(xml);
|
||||
if (smart_show) {
|
||||
plugin_translate("SMART");
|
||||
$("#Plugin_SMART").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function smart_request() {
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=SMART",
|
||||
dataType: "xml",
|
||||
error: function smart_error() {
|
||||
$.jGrowl("Error loading XML document for Plugin SMART");
|
||||
},
|
||||
success: function smart_buildBlock(xml) {
|
||||
populateErrors(xml);
|
||||
smart_populate(xml);
|
||||
if (smart_show) {
|
||||
plugin_translate("SMART");
|
||||
$("#Plugin_SMART").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function smart_buildpage() {
|
||||
var html = "";
|
||||
|
||||
$("#footer").before(buildBlock("SMART", 1, true));
|
||||
$("#Plugin_SMART").css("width", "915px");
|
||||
|
||||
smart_initTable();
|
||||
|
||||
$("#Reload_SMARTTable").click(function smart_reload(id) {
|
||||
smart_request();
|
||||
$("#Reload_SMARTTable").attr("title",datetime());
|
||||
});
|
||||
});
|
84
root/opt/phpsysinfo/plugins/smart/js/smart_bootstrap.js
Normal file
84
root/opt/phpsysinfo/plugins/smart/js/smart_bootstrap.js
Normal file
@@ -0,0 +1,84 @@
|
||||
function renderPlugin_smart(data) {
|
||||
|
||||
if ((data['Plugins']['Plugin_SMART'] !== undefined) && (data['Plugins']['Plugin_SMART']["columns"] !== undefined) && (items(data['Plugins']['Plugin_SMART']["columns"]["column"]).length > 0)
|
||||
&& (data['Plugins']['Plugin_SMART']["disks"] !== undefined) && (items(data['Plugins']['Plugin_SMART']["disks"]["disk"]).length > 0)) {
|
||||
var smartitems = items(data['Plugins']['Plugin_SMART']["columns"]["column"]);
|
||||
var smartnames = {
|
||||
1:"Raw Read Error Rate",
|
||||
2:"Throughput Performance",
|
||||
3:"Spin Up Time",
|
||||
4:"Start Stop Count",
|
||||
5:"Reallocated Sector Ct",
|
||||
7:"Seek Error Rate",
|
||||
8:"Seek Time Performance",
|
||||
9:"Power On Hours",
|
||||
10:"Spin Retry Count",
|
||||
11:"Calibration Retry Count",
|
||||
12:"Power Cycle Count",
|
||||
190:"Airflow Temperature",
|
||||
191:"G-sense Error Rate",
|
||||
192:"Power-Off Retract Count",
|
||||
193:"Load Cycle Count",
|
||||
194:"Temperature",
|
||||
195:"Hardware ECC Recovered",
|
||||
196:"Reallocated Event Count",
|
||||
197:"Current Pending Sector",
|
||||
198:"Offline Uncorr.",
|
||||
199:"UDMA CRC Error Count",
|
||||
200:"Multi Zone Error Rate",
|
||||
201:"Soft Read Error Rate",
|
||||
202:"Data Address Mark Errors",
|
||||
223:"Load Retry Count",
|
||||
225:"Load Cycle Count"};
|
||||
|
||||
var html = '';
|
||||
|
||||
html+="<thead>";
|
||||
html+="<tr>";
|
||||
html+="<th id=\"smart_name\" class=\"rightCell\">Name</th>";
|
||||
for (i = 0; i < smartitems.length ; i++) {
|
||||
smartid = smartitems[i]["@attributes"]["id"];
|
||||
if (smartnames[smartid] !== undefined) {
|
||||
html+="<th class=\"sorttable_numeric rightCell\">"+ smartnames[smartid] + "</th>";
|
||||
} else {
|
||||
html+="<th class=\"sorttable_numeric rightCell\">"+ smartid + "</th>";
|
||||
}
|
||||
}
|
||||
html+="</tr>";
|
||||
html+="</thead>";
|
||||
|
||||
var diskitems = items(data['Plugins']['Plugin_SMART']["disks"]["disk"]);
|
||||
html += '<tbody>';
|
||||
for (i = 0; i < diskitems.length; i++) {
|
||||
html += '<tr>';
|
||||
html += '<th class="rightCell">'+ diskitems[i]["@attributes"]["name"] + '</th>';
|
||||
attribitems = items(diskitems[i]["attribute"]);
|
||||
var valarray = [];
|
||||
for (j = 0;j < attribitems.length; j++) {
|
||||
valarray[attribitems[j]["@attributes"]["id"]] = attribitems[j]["@attributes"]["raw_value"];
|
||||
}
|
||||
for (j = 0; j < smartitems.length; j++) {
|
||||
var smartid = smartitems[j]["@attributes"]["id"];
|
||||
var itemvalue = valarray[smartid];
|
||||
if ((itemvalue !== undefined) && (itemvalue !== '' )) {
|
||||
if (smartid === "194") {
|
||||
html += '<td class="rightCell">' + formatTemp(itemvalue, data["Options"]["@attributes"]["tempFormat"]) + '</td>';
|
||||
} else {
|
||||
html += '<td class="rightCell">' + itemvalue + '</td>';
|
||||
}
|
||||
} else {
|
||||
html += '<td></td>';
|
||||
}
|
||||
}
|
||||
html += '</tr>';
|
||||
}
|
||||
html += '</tbody>';
|
||||
$('#smart').empty().append(html);
|
||||
$('#smart').addClass("sortable");
|
||||
sorttable.makeSortable($('#smart')[0]);
|
||||
sorttable.innerSortFunction.apply($('#smart_name')[0], []);
|
||||
$('#block_smart').show();
|
||||
} else {
|
||||
$('#block_smart').hide();
|
||||
}
|
||||
}
|
97
root/opt/phpsysinfo/plugins/smart/lang/cz.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/cz.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: cz.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Czech Created by: Tomáš Růžička
|
||||
-->
|
||||
<tns:translationPlugin language="czech" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>S.M.A.R.T Informace</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Aktualizováno</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Název</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Reallocated Sector Ct</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Power On Hours</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Airflow Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
97
root/opt/phpsysinfo/plugins/smart/lang/en.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/en.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: English Created by: Antoine Bertin
|
||||
-->
|
||||
<tns:translationPlugin language="english" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>S.M.A.R.T Informations</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Last refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Name</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Reallocated Sector Ct</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Power On Hours</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Airflow Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
97
root/opt/phpsysinfo/plugins/smart/lang/fr.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/fr.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: fr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: French Created by: Antoine Bertin
|
||||
-->
|
||||
<tns:translationPlugin language="french" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>Informations S.M.A.R.T</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Dernière actualisation:</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Nom</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Reallocated Sector Ct</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Power On Hours</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Airflow Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
97
root/opt/phpsysinfo/plugins/smart/lang/gr.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/gr.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: gr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Greek Created by: mojiro
|
||||
-->
|
||||
<tns:translationPlugin language="english" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>Πληροφορίες S.M.A.R.T</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Ενημέρωση</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Συσκευή</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Ανακτημένοι Τομείς</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Ώρες λειτουργίας</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Θερμοκρασία Αέρος</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Θερμοκρασία</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
97
root/opt/phpsysinfo/plugins/smart/lang/pl.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/pl.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: pl.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Polish Created by: Mieczyslaw Nalewaj
|
||||
-->
|
||||
<tns:translationPlugin language="polish" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>Informacje S.M.A.R.T</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Ostatnie odświeżenie</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Nazwa</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Reallocated Sector Ct</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Power On Hours</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Airflow Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
97
root/opt/phpsysinfo/plugins/smart/lang/ro.xml
Normal file
97
root/opt/phpsysinfo/plugins/smart/lang/ro.xml
Normal file
@@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: ro.xml 661 2014-05-02 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Romană Created by: Iulian Alexe
|
||||
-->
|
||||
<tns:translationPlugin language="romana" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_smart_001" name="smart_title">
|
||||
<exp>Informații S.M.A.R.T</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_002" name="smart_date">
|
||||
<exp>Ultimul refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_003" name="smart_name">
|
||||
<exp>Nume</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_101" name="smart_raw_read_error_rate">
|
||||
<exp>Raw Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_102" name="smart_throughput_performance">
|
||||
<exp>Throughput Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_103" name="smart_spin_up_time">
|
||||
<exp>Spin Up Time</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_104" name="smart_start_stop_count">
|
||||
<exp>Start Stop Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct">
|
||||
<exp>Reallocated Sector Ct</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_107" name="smart_seek_error_rate">
|
||||
<exp>Seek Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_108" name="smart_seek_time_performance">
|
||||
<exp>Seek Time Performance</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_109" name="smart_power_on_hours">
|
||||
<exp>Power On Hours</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_110" name="smart_spin_retry_count">
|
||||
<exp>Spin Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_111" name="smart_calibration_retry_count">
|
||||
<exp>Calibration Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_112" name="smart_power_cycle_count">
|
||||
<exp>Power Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel">
|
||||
<exp>Airflow Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_291" name="smart_g_sense_error_rate">
|
||||
<exp>G-sense Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_292" name="smart_power_off_retry_count">
|
||||
<exp>Power-Off Retract Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_293" name="smart_load_cycle_count">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_294" name="smart_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered">
|
||||
<exp>Hardware ECC Recovered</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_296" name="smart_reallocated_event_count">
|
||||
<exp>Reallocated Event Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_297" name="smart_current_pending_sector">
|
||||
<exp>Current Pending Sector</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_298" name="smart_offline_uncorrectable">
|
||||
<exp>Offline Uncorr.</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_299" name="smart_udma_crc_error_count">
|
||||
<exp>UDMA CRC Error Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate">
|
||||
<exp>Multi Zone Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_301" name="smart_soft_read_error_rate">
|
||||
<exp>Soft Read Error Rate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_302" name="smart_data_address_mark_errs">
|
||||
<exp>Data Address Mark Errors</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_323" name="smart_load_retry_count">
|
||||
<exp>Load Retry Count</exp>
|
||||
</expression>
|
||||
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt">
|
||||
<exp>Load Cycle Count</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
42
root/opt/phpsysinfo/plugins/smart/lang/ru.xml
Normal file
42
root/opt/phpsysinfo/plugins/smart/lang/ru.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: Russian Created by: Denis Sevostyanov (den007)
|
||||
-->
|
||||
<tns:translationPlugin language="russian" charset="utf-8"
|
||||
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
|
||||
<expression id="plugin_quotas_001" name="ps_title">
|
||||
<exp>Состояние Квоты</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_002" name="quotas_date">
|
||||
<exp>Последнее обновление</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_003" name="quotas_user">
|
||||
<exp>Пользователь</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_004" name="quotas_bused">
|
||||
<exp>Байт Используется</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_005" name="quotas_bsoft">
|
||||
<exp>Байт Программ</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_006" name="quotas_bhard">
|
||||
<exp>Байтов Жесткий диск</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_007" name="quotas_bpuse">
|
||||
<exp>Байт Используется Проценты</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_008" name="quotas_fused">
|
||||
<exp>Файлы Используемые</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_009" name="quotas_fsoft">
|
||||
<exp>Файлы Программ</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_010" name="quotas_fhard">
|
||||
<exp>Файлы Жесткий диск</exp>
|
||||
</expression>
|
||||
<expression id="plugin_quotas_011" name="quotas_fpuse">
|
||||
<exp>Файлов Используется Проценты</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
9
root/opt/phpsysinfo/plugins/smart/smart_bootstrap.html
Normal file
9
root/opt/phpsysinfo/plugins/smart/smart_bootstrap.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="col-lg-12" id="block_smart" style="display:none">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">S.M.A.R.T Informations</div>
|
||||
<div class="panel-body">
|
||||
<table id="smart" class="table table-hover table-condensed">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user