* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
2553
root/opt/phpsysinfo/plugins/raid/class.raid.inc.php
Normal file
27
root/opt/phpsysinfo/plugins/raid/css/raid.css
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
$Id: raid.css 661 2012-08-27 11:26:39Z namiltd $
|
||||
*/
|
||||
.plugin_raid_biun {
|
||||
text-align: center;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 10px;
|
||||
_margin-left: 5px; /* ie6 */
|
||||
margin-right: 10px;
|
||||
_margin-right: 5px; /* ie6 */
|
||||
float: left;
|
||||
}
|
||||
|
||||
.plugin_raid_item {
|
||||
border: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
margin: 10px;
|
||||
_margin: 10px 10px 10px 5px; /* ie6 */
|
||||
_padding-bottom: 8px; /* ie6 */
|
||||
float: left;
|
||||
}
|
||||
|
||||
img.plugin_raid_biun {
|
||||
margin: auto;
|
||||
}
|
BIN
root/opt/phpsysinfo/plugins/raid/gfx/error.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/harddrivefail.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/harddriveok.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/harddrivespare.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/harddriveunc.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/harddrivewarn.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/soliddrivefail.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/soliddriveok.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/soliddrivespare.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/soliddriveunc.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
root/opt/phpsysinfo/plugins/raid/gfx/soliddrivewarn.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
313
root/opt/phpsysinfo/plugins/raid/js/raid.js
Normal file
@@ -0,0 +1,313 @@
|
||||
/***************************************************************************
|
||||
* 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: raid.js 679 2012-09-04 10:10:11Z namiltd $
|
||||
//
|
||||
|
||||
/*global $, jQuery, buildBlock, genlang, createBar, plugin_translate, datetime */
|
||||
|
||||
"use strict";
|
||||
|
||||
var raid_show = false;
|
||||
|
||||
/**
|
||||
* get the details of the raid
|
||||
* @param {jQuery} xml part of the plugin-XML
|
||||
* @param {number} id id of the device
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function raid_buildinfos(xml, id) {
|
||||
var html = "", prog = "", devname = "", devstatus = "", devlevel = "", devcontroller = "", devfirmware = "", devtemperature = 0, devbattvolt = 0, devbatttemp = 0, devbattery = "", devsupported = "", devcachevault = 0, devcapacity = 0, devstride = 0, devsubsets = 0, devdevs = 0, devspares = 0, devchunk = 0, devstripe = 0, devalgor = "", devpersist = 0, devreg = 0, devact = 0, devcache = 0, devbad = 0, devread = "", devwrite = "", devdiskcache = "", button = "";
|
||||
|
||||
prog = $(xml).attr("Program");
|
||||
devname = $(xml).attr("Name");
|
||||
devstatus = $(xml).attr("Status");
|
||||
devlevel = $(xml).attr("Level");
|
||||
devcontroller = $(xml).attr("Controller");
|
||||
devfirmware = $(xml).attr("Firmware");
|
||||
devtemperature = parseFloat($(xml).attr("Temperature"));
|
||||
devbattvolt = parseFloat($(xml).attr("Batt_Volt"));
|
||||
devbatttemp = parseFloat($(xml).attr("Batt_Temp"));
|
||||
devbattery = $(xml).attr("Battery");
|
||||
devsupported = $(xml).attr("Supported");
|
||||
devcachevault = parseInt($(xml).attr("Cachevault_Size"), 10);
|
||||
devcapacity = parseInt($(xml).attr("Capacity"), 10);
|
||||
devstride = parseInt($(xml).attr("Stride"), 10);
|
||||
devsubsets = parseInt($(xml).attr("Subsets"), 10);
|
||||
devdevs = parseInt($(xml).attr("Devs"), 10);
|
||||
devspares = parseInt($(xml).attr("Spares"), 10);
|
||||
devchunk = parseInt($(xml).attr("Chunk_Size"), 10);
|
||||
devstripe = parseInt($(xml).attr("Stripe_Size"), 10);
|
||||
devalgor = $(xml).attr("Algorithm");
|
||||
devpersist = parseInt($(xml).attr("Persistend_Superblock"), 10);
|
||||
devreg = parseInt($(xml).attr("Disks_Registered"), 10);
|
||||
devact = parseInt($(xml).attr("Disks_Active"), 10);
|
||||
devcache = parseInt($(xml).attr("Cache_Size"), 10);
|
||||
devbad = parseInt($(xml).attr("Bad_Blocks"), 10);
|
||||
devread = $(xml).attr("ReadPolicy");
|
||||
devwrite = $(xml).attr("WritePolicy");
|
||||
devdiskcache = $(xml).attr("DiskCache");
|
||||
html += "<tr><td>" + genlang(22, "Raid") + "</td><td>" + prog + "</td></tr>";
|
||||
if (devname !== undefined) html += "<tr><td>" + genlang(3, "Raid") + "</td><td>" + devname + "</td></tr>";
|
||||
html += "<tr><td>" + genlang(4, "Raid") + "</td><td>" + devstatus + "</td></tr>";
|
||||
if (devlevel !== undefined) html += "<tr><td>" + genlang(5, "Raid") + "</td><td>" + devlevel + "</td></tr>";
|
||||
if (!isNaN(devcapacity)) html += "<tr><td>" + genlang(6, "Raid") + "</td><td>" + formatBytes(devcapacity, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (!isNaN(devstride)) html += "<tr><td>" + genlang(7, "Raid") + "</td><td>" + devstride + "</td></tr>";
|
||||
if (!isNaN(devsubsets)) html += "<tr><td>" + genlang(8, "Raid") + "</td><td>" + devsubsets + "</td></tr>";
|
||||
if (!isNaN(devdevs)) html += "<tr><td>" + genlang(9, "Raid") + "</td><td>" + devdevs + "</td></tr>";
|
||||
if (!isNaN(devspares)) html += "<tr><td>" + genlang(10, "Raid") + "</td><td>" + devspares + "</td></tr>";
|
||||
|
||||
if (!isNaN(devchunk)) html += "<tr><td>" + genlang(13, "Raid") + "</td><td>" + formatBytes(1024*devchunk, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (!isNaN(devstripe)) html += "<tr><td>" + genlang(28, "Raid") + "</td><td>" + formatBytes(devstripe, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (devalgor !== undefined) html += "<tr><td>" + genlang(14, "Raid") + "</td><td>" + devalgor + "</td></tr>";
|
||||
if (!isNaN(devpersist)) {
|
||||
if (devpersist == 1) {
|
||||
html += "<tr><td>" + genlang(15, "Raid") + "</td><td>" + genlang(16, "Raid") + "</td></tr>";
|
||||
} else {
|
||||
html += "<tr><td>" + genlang(15, "Raid") + "</td><td>" + genlang(17, "Raid") + "</td></tr>";
|
||||
}
|
||||
}
|
||||
if (!isNaN(devreg) && !isNaN(devact)) html += "<tr><td>" + genlang(18, "Raid") + "</td><td>" + devreg + "/" + devact + "</td></tr>";
|
||||
if (devcontroller !== undefined) html += "<tr><td>" + genlang(19, "Raid") + "</td><td>" + devcontroller + "</td></tr>";
|
||||
if (devfirmware !== undefined) html += "<tr><td>" + genlang(29, "Raid") + "</td><td>" + devfirmware + "</td></tr>";
|
||||
if (isFinite(devtemperature)) html += "<tr><td>" + genlang(30, "Raid") + "</td><td>" + formatTemp(devtemperature, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (devbattery !== undefined) html += "<tr><td>" + genlang(20, "Raid") + "</td><td>" + devbattery + "</td></tr>";
|
||||
if (isFinite(devbattvolt)) html += "<tr><td>" + genlang(31, "Raid") + "</td><td>" + round(devbattvolt, 3) + " " + genlang(82) +"</td></tr>";
|
||||
if (isFinite(devbatttemp)) html += "<tr><td>" + genlang(32, "Raid") + "</td><td>" + formatTemp(devbatttemp, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (devsupported !== undefined) html += "<tr><td>" + genlang(21, "Raid") + "</td><td>" + devsupported + "</td></tr>";
|
||||
if (!isNaN(devcache)) html += "<tr><td>" + genlang(25, "Raid") + "</td><td>" + formatBytes(devcache, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (devread !== undefined) html += "<tr><td>" + genlang(23, "Raid") + "</td><td>" + devread + "</td></tr>";
|
||||
if (devwrite !== undefined) html += "<tr><td>" + genlang(24, "Raid") + "</td><td>" + devwrite + "</td></tr>";
|
||||
if (!isNaN(devcachevault)) html += "<tr><td>" + genlang(33, "Raid") + "</td><td>" + formatBytes(devcachevault, xml.parent().parent().parent()) + "</td></tr>";
|
||||
if (devdiskcache !== undefined) html += "<tr><td>" + genlang(27, "Raid") + "</td><td>" + devdiskcache + "</td></tr>";
|
||||
if (!isNaN(devbad)) html += "<tr><td>" + genlang(26, "Raid") + "</td><td>" + devbad + "</td></tr>";
|
||||
|
||||
button += "<h3 style=\"cursor:pointer\" id=\"sPlugin_Raid_Info" + id + "\"><img src=\"./gfx/bullet_toggle_plus.gif\" alt=\"plus\" title=\"\" style=\"vertical-align:middle;width:16px;\" />" + genlang(2, "Raid") + "</h3>";
|
||||
button += "<h3 style=\"cursor:pointer; display:none;\" id=\"hPlugin_Raid_Info" + id + "\"><img src=\"./gfx/bullet_toggle_minus.gif\" alt=\"minus\" title=\"\" style=\"vertical-align:middle;width:16px;\" />" + genlang(2, "Raid") + "</h3>";
|
||||
button += "<table id=\"Plugin_Raid_InfoTable" + id + "\" style=\"border:none; border-collapse:collapse; display:none;\"><tbody>" + html + "</tbody></table>";
|
||||
return button;
|
||||
}
|
||||
|
||||
/**
|
||||
* generate a html string with the current action on the disks
|
||||
* @param {jQuery} xml part of the plugin-XML
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function raid_buildaction(xml) {
|
||||
var html = "", name = "", time = "", tunit = "", percent = 0;
|
||||
$("Action", xml).each(function mdstatus_getaction(id) {
|
||||
name = $(this).attr("Name");
|
||||
if (parseInt(name, 10) !== -1) {
|
||||
time = $(this).attr("Time_To_Finish");
|
||||
tunit = $(this).attr("Time_Unit");
|
||||
percent = parseFloat($(this).attr("Percent"));
|
||||
html += "<div style=\"padding-left:10px;\">";
|
||||
html += genlang(11, "Raid") + ": " + name + "<br>";
|
||||
html += createBar(percent);
|
||||
if ((time !== undefined) && (tunit !== undefined)) {
|
||||
html += "<br>";
|
||||
html += genlang(12, "Raid") + ": " + time + " " + tunit;
|
||||
}
|
||||
html += "</div>";
|
||||
}
|
||||
});
|
||||
return html;
|
||||
}
|
||||
|
||||
/**
|
||||
* choose the right diskdrive icon
|
||||
* @param {jQuery} xml part of the plugin-XML
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function raid_diskicon(xml, id) {
|
||||
$("RaidItems Item", xml).each(function raid_getitems(itemid) {
|
||||
var status = "", name = "", type = "", info = "", bus = "", cap = "", model = "", minfo = "", serial = "", capacity = 0, temperature = 0, parentid = 0;
|
||||
|
||||
status = $(this).attr("Status");
|
||||
bus = $(this).attr("Bus");
|
||||
name = $(this).attr("Name");
|
||||
type = $(this).attr("Type");
|
||||
info = $(this).attr("Info");
|
||||
model = $(this).attr("Model");
|
||||
serial = $(this).attr("Serial");
|
||||
capacity = parseInt($(this).attr("Capacity"), 10);
|
||||
temperature = parseFloat($(this).attr("Temperature"));
|
||||
parentid = parseInt($(this).attr("ParentID"), 10);
|
||||
|
||||
var imgh = "", imgs = "", alt = "", bcolor = "";
|
||||
switch (status) {
|
||||
case "ok":
|
||||
imgh = "harddriveok.png";
|
||||
imgs = "soliddriveok.png";
|
||||
alt = "ok";
|
||||
bcolor = "green";
|
||||
break;
|
||||
case "F":
|
||||
imgh = "harddrivefail.png";
|
||||
imgs = "soliddrivefail.png";
|
||||
alt = "fail";
|
||||
bcolor = "red";
|
||||
break;
|
||||
case "U":
|
||||
imgh = "harddriveunc.png";
|
||||
imgs = "soliddriveunc.png";
|
||||
alt = "unconfigured";
|
||||
bcolor = "purple";
|
||||
break;
|
||||
case "S":
|
||||
imgh = "harddrivespare.png";
|
||||
imgs = "soliddrivespare.png";
|
||||
alt = "spare";
|
||||
bcolor = "gray";
|
||||
break;
|
||||
case "W":
|
||||
imgh = "harddrivewarn.png";
|
||||
imgs = "soliddrivewarn.png";
|
||||
alt = "warning";
|
||||
bcolor = "orange";
|
||||
break;
|
||||
default:
|
||||
// alert("--" + diskstatus + "--");
|
||||
imgh = "error.png";
|
||||
imgs = "error.png";
|
||||
alt = "error";
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (!isNaN(parentid)) {
|
||||
if (type !== undefined) {
|
||||
if (model !== undefined) {
|
||||
minfo = "<br>" + model;
|
||||
}
|
||||
if (serial !== undefined) {
|
||||
minfo += "<br>" + serial;
|
||||
}
|
||||
if (bus === undefined) {
|
||||
bus = "";
|
||||
}
|
||||
if (!isNaN(capacity)) {
|
||||
cap = formatBytes(capacity, xml.parent().parent().parent());
|
||||
}
|
||||
if ((bus !== "") || (cap !== "")) {
|
||||
minfo += "<br>" + $.trim(bus + " " + cap);
|
||||
}
|
||||
if (isFinite(temperature)) {
|
||||
minfo += "<br>" + formatTemp(temperature, xml.parent().parent().parent());
|
||||
}
|
||||
$("#Plugin_Raid_Item" + id + "-" + parentid).append("<div class=\"plugin_raid_biun\" title=\"" + info + "\"><img src=\"./plugins/raid/gfx/" + ((type === "ssd")?imgs:imgh) + "\" alt=\"" + alt + "\" style=\"width:60px;height:60px;\" onload=\"PNGload($(this));\" /><br><small>" + name + minfo + "</small></div>"); //onload IE6 PNG fix
|
||||
} else {
|
||||
if (parentid === 0) {
|
||||
$("#Plugin_Raid_List-" + id).append("<div class=\"plugin_raid_item\" id=\"Plugin_Raid_Item" + id + "-" + (itemid+1) + "\" style=\"border-color:" + bcolor + "\">" + name + "<br></div>");
|
||||
} else {
|
||||
$("#Plugin_Raid_Item" + id + "-" + parentid).append("<div class=\"plugin_raid_item\" id=\"Plugin_Raid_Item" + id + "-" + (itemid+1) + "\" style=\"border-color:" + bcolor + "\">" + name + "<br></div>");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* fill the plugin block
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function raid_populate(xml) {
|
||||
var hostname = "";
|
||||
|
||||
$("#Plugin_RaidTable").empty();
|
||||
|
||||
hostname = $("Plugins Plugin_Raid", xml).attr('Hostname');
|
||||
if (hostname !== undefined) {
|
||||
$('span[class=Hostname_Raid]').html(hostname);
|
||||
}
|
||||
|
||||
$("#Plugin_RaidTable").append("<tbody>");
|
||||
$("Plugins Plugin_Raid Raid", xml).each(function raid_getdevice(id) {
|
||||
var htmldisks = "", buildedaction = "";
|
||||
htmldisks += "<table style=\"border:none; width:100%;\"><tbody>";
|
||||
htmldisks += "<tr><td id=\"Plugin_Raid_List-" + id + "\"></td></tr>";
|
||||
buildedaction = raid_buildaction($(this));
|
||||
if (buildedaction) {
|
||||
htmldisks += "<tr><td>" + buildedaction + "</td></tr>";
|
||||
}
|
||||
htmldisks += "<tr><td>" + raid_buildinfos($(this), id);
|
||||
htmldisks += "</td></tr>";
|
||||
htmldisks += "</tbody></table>";
|
||||
|
||||
$("#Plugin_RaidTable").append("<tr><td><br>" + $(this).attr("Device_Name") + "</td><td>" + htmldisks + "</td></tr>");
|
||||
raid_diskicon($(this), id);
|
||||
|
||||
$("#sPlugin_Raid_Info" + id).click(function raid_showinfo() {
|
||||
$("#Plugin_Raid_InfoTable" + id).slideDown("fast");
|
||||
$("#sPlugin_Raid_Info" + id).hide();
|
||||
$("#hPlugin_Raid_Info" + id).show();
|
||||
});
|
||||
$("#hPlugin_Raid_Info" + id).click(function raid_hideinfo() {
|
||||
$("#Plugin_Raid_InfoTable" + id).slideUp("fast");
|
||||
$("#hPlugin_Raid_Info" + id).hide();
|
||||
$("#sPlugin_Raid_Info" + id).show();
|
||||
});
|
||||
raid_show = true;
|
||||
});
|
||||
|
||||
$("#Plugin_RaidTable").append("</tbody>");
|
||||
}
|
||||
|
||||
/**
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function raid_request() {
|
||||
$("#Reload_RaidTable").attr("title", "reload");
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=Raid",
|
||||
dataType: "xml",
|
||||
error: function raid_error() {
|
||||
$.jGrowl("Error loading XML document for Plugin Raid");
|
||||
},
|
||||
success: function raid_buildblock(xml) {
|
||||
populateErrors(xml);
|
||||
raid_populate(xml);
|
||||
if (raid_show) {
|
||||
plugin_translate("Raid");
|
||||
$("#Plugin_Raid").show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function raid_buildpage() {
|
||||
var html = "";
|
||||
|
||||
$("#footer").before(buildBlock("Raid", 1, true));
|
||||
html += " <div style=\"overflow-x:auto;\">\n";
|
||||
html += " <table id=\"Plugin_RaidTable\" style=\"border-collapse:collapse;\">\n";
|
||||
html += " </table>\n";
|
||||
html += " </div>\n";
|
||||
$("#Plugin_Raid").append(html);
|
||||
|
||||
$("#Plugin_Raid").addClass("fullsize");
|
||||
|
||||
raid_request();
|
||||
|
||||
$("#Reload_RaidTable").click(function raid_reload(id) {
|
||||
raid_request();
|
||||
$(this).attr("title", datetime());
|
||||
});
|
||||
});
|
191
root/opt/phpsysinfo/plugins/raid/js/raid_bootstrap.js
Normal file
@@ -0,0 +1,191 @@
|
||||
function renderPlugin_raid(data) {
|
||||
|
||||
function raid_buildaction(data) {
|
||||
var html = "", name = "", percent = 0;
|
||||
if (data !== undefined) {
|
||||
name = data.Name;
|
||||
if ((name !== undefined) && (parseInt(name, 10) !== -1)) {
|
||||
percent = Math.round(parseFloat(data.Percent));
|
||||
html += "<div>" + genlang(11,'raid') + ":" + String.fromCharCode(160) + name + "<br>";
|
||||
html += '<table class="table table-nopadding" style="width:100%;"><tbody><tr><td style="width:44%;"><div class="progress">' +
|
||||
'<div class="progress-bar progress-bar-info" style="width:' + percent + '%;"></div>' +
|
||||
'</div><div class="percent">' + percent + '%</div></td><td> </td></tr></tbody></table>';
|
||||
if ((data.Time_To_Finish !== undefined) && (data.Time_Unit !== undefined)) {
|
||||
html += genlang(12,'raid') + ":" + String.fromCharCode(160) + data.Time_To_Finish + String.fromCharCode(160) + data.Time_Unit;
|
||||
}
|
||||
html += "</div>";
|
||||
}
|
||||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
function raid_diskicon(data , id, itemid, byteFormat, tempFormat) {
|
||||
var info = data.Info;
|
||||
if (info === undefined) info = "";
|
||||
var parentid = parseInt(data.ParentID, 10);
|
||||
|
||||
var imgh = "", imgs = "", alt = "", bcolor = "", bus = "", cap = "", minfo = "", serial = "";
|
||||
switch (data.Status) {
|
||||
case "ok":
|
||||
imgh = "harddriveok.png";
|
||||
imgs = "soliddriveok.png";
|
||||
alt = "ok";
|
||||
bcolor = "green";
|
||||
break;
|
||||
case "F":
|
||||
imgh = "harddrivefail.png";
|
||||
imgs = "soliddrivefail.png";
|
||||
alt = "fail";
|
||||
bcolor = "red";
|
||||
break;
|
||||
case "S":
|
||||
imgh = "harddrivespare.png";
|
||||
imgs = "soliddrivespare.png";
|
||||
alt = "spare";
|
||||
bcolor = "gray";
|
||||
break;
|
||||
case "U":
|
||||
imgh = "harddriveunc.png";
|
||||
imgs = "soliddriveunc.png";
|
||||
alt = "unconfigured";
|
||||
bcolor = "purple";
|
||||
break;
|
||||
case "W":
|
||||
imgh = "harddrivewarn.png";
|
||||
imgs = "soliddrivewarn.png";
|
||||
alt = "warning";
|
||||
bcolor = "orange";
|
||||
break;
|
||||
default:
|
||||
// alert("--" + diskstatus + "--");
|
||||
imgh = "error.png";
|
||||
imgs = "error.png";
|
||||
alt = "error";
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if (!isNaN(parentid)) {
|
||||
if (data.Type !== undefined) {
|
||||
if (data.Model !== undefined) {
|
||||
minfo = "<br>" + data.Model;
|
||||
}
|
||||
if (data.Serial !== undefined) {
|
||||
minfo += "<br>" + data.Serial;
|
||||
}
|
||||
if (data.Bus === undefined) {
|
||||
bus = "";
|
||||
} else {
|
||||
bus = data.Bus;
|
||||
}
|
||||
if (!isNaN(parseInt(data.Capacity, 10))) {
|
||||
cap = formatBytes(parseInt(data.Capacity, 10), byteFormat);
|
||||
}
|
||||
if ((bus !== "") || (cap !== "")) {
|
||||
minfo += "<br>" + $.trim(bus + " " + cap);
|
||||
}
|
||||
if (isFinite(parseFloat(data.Temperature))) {
|
||||
minfo += "<br>" + formatTemp(parseFloat(data.Temperature), tempFormat);
|
||||
}
|
||||
$("#raid_item" + id + "-" + parentid).append("<div style=\"margin-bottom:5px;margin-right:10px;margin-left:10px;float:left;text-align:center\" title=\"" + info + "\"><img src=\"./plugins/raid/gfx/" + ((data.Type === "ssd")?imgs:imgh) + "\" alt=\"" + alt + "\" style=\"width:60px;height:60px;\" /><br><small>" + data.Name + minfo + "</small></div>");
|
||||
} else {
|
||||
if (parentid === 0) {
|
||||
$("#raid_list-" + id).append("<div id=\"raid_item" + id + "-" + (itemid+1) + "\" style=\"border:solid;border-width:2px;border-radius:5px;border-color:" + bcolor + ";margin:10px;float:left;text-align:center\">" + data.Name + "<br></div>");
|
||||
} else {
|
||||
$("#raid_item" + id + "-" + parentid).append("<div id=\"raid_item" + id + "-" + (itemid+1) + "\" style=\"border:solid;border-width:2px;border-radius:5px;border-color:" + bcolor + ";margin:10px;float:left;text-align:center\">" + data.Name + "<br></div>");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (data.Plugins.Plugin_Raid !== undefined) {
|
||||
var raiditems = items(data.Plugins.Plugin_Raid.Raid);
|
||||
if (raiditems.length > 0) {
|
||||
var html = '';
|
||||
for (var i = 0; i < raiditems.length ; i++) {
|
||||
html += "<tr><th>"+raiditems[i]["@attributes"].Device_Name+"</th><td>";
|
||||
|
||||
if (raiditems[i].RaidItems !== undefined) {
|
||||
html += "<table class=\"table table-nopadding\" style=\"width:100%;\"><tbody>";
|
||||
html += "<tr><td id=\"raid_list-" + i + "\"></td></tr>";
|
||||
|
||||
if (raiditems[i].Action !== undefined) {
|
||||
var buildedaction = raid_buildaction(raiditems[i].Action['@attributes']);
|
||||
if (buildedaction) {
|
||||
html += "<tr><td>" + buildedaction + "</td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
html += "<tr><td>";
|
||||
html += "<table id=\"raid-" + i + "\"class=\"table table-hover table-sm\"><tbody>";
|
||||
html += "<tr class=\"treegrid-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">" + genlang(2, "raid") + "</span></td><td></td></tr>";
|
||||
html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(22, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Program + "</td></tr>"; // Program
|
||||
if (raiditems[i]["@attributes"].Name !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(3, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Name + "</td></tr>"; // Name
|
||||
html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(4, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Status + "</td></tr>"; // Status
|
||||
if (raiditems[i]["@attributes"].Level !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(5, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Level + "</td></tr>"; // RAID-Level
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Capacity, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(6, 'raid')+"</span></td><td>" + formatBytes(parseInt(raiditems[i]["@attributes"].Capacity, 10), data.Options["@attributes"].byteFormat) + "</td></tr>";// Capacity
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Stride, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(7, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Stride, 10) + "</td></tr>"; // Stride
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Subsets, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(8, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Subsets, 10) + "</td></tr>"; // Subsets
|
||||
if (raiditems[i]["@attributes"].Devs !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(9, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Devs, 10) + "</td></tr>"; // Devices
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Spares, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(10, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Spares, 10) + "</td></tr>"; // Spares
|
||||
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Chunk_Size, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(13, 'raid')+"</span></td><td>" + formatBytes(1024*parseInt(raiditems[i]["@attributes"].Chunk_Size, 10), data.Options["@attributes"].byteFormat) + "</td></tr>";
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Stripe_Size, 10))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(28, 'raid')+"</span></td><td>" + formatBytes(parseInt(raiditems[i]["@attributes"].Stripe_Size, 10), data.Options["@attributes"].byteFormat) + "</td></tr>";
|
||||
if (raiditems[i]["@attributes"].Algorithm !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(14, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Algorithm + "</td></tr>";
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Persistend_Superblock, 10))) {
|
||||
if (parseInt(raiditems[i]["@attributes"].Persistend_Superblock, 10) == 1) {
|
||||
html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(15, 'raid')+"</span></td><td>"+genlang(16, 'raid')+"</td></tr>";
|
||||
} else {
|
||||
html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(15, 'raid')+"</span></td><td>"+genlang(17, 'raid')+"</td></tr>";
|
||||
}
|
||||
}
|
||||
if (!isNaN(parseInt(raiditems[i]["@attributes"].Disks_Registered, 10)) && !isNaN(parseInt(raiditems[i]["@attributes"].Disks_Active, 10))) {
|
||||
html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(18, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Disks_Registered, 10) + "/<wbr>" + parseInt(raiditems[i]["@attributes"].Disks_Active, 10) + "</td></tr>";
|
||||
}
|
||||
if (raiditems[i]["@attributes"].Controller !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(19, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Controller + "</td></tr>"; // Controller
|
||||
if (raiditems[i]["@attributes"].Firmware !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(29, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Firmware + "</td></tr>"; // Firmware
|
||||
if (isFinite(parseFloat(raiditems[i]["@attributes"].Temperature))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(30, 'raid')+"</span></td><td>" + formatTemp(parseFloat(raiditems[i]["@attributes"].Temperature), data.Options["@attributes"].tempFormat) + "</td></tr>"; // Temperature
|
||||
if (raiditems[i]["@attributes"].Battery !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(20, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Battery + "</td></tr>"; // Battery Condition
|
||||
if (isFinite(parseFloat(raiditems[i]["@attributes"].Batt_Volt))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(31, 'raid')+"</span></td><td>" + round(parseFloat(raiditems[i]["@attributes"].Batt_Volt), 3) + " " + genlang(82) + "</td></tr>"; // Battery Voltage
|
||||
if (isFinite(parseFloat(raiditems[i]["@attributes"].Batt_Temp))) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(32, 'raid')+"</span></td><td>" + formatTemp(parseFloat(raiditems[i]["@attributes"].Batt_Temp), data.Options["@attributes"].tempFormat) + "</td></tr>"; // Battery Temperature
|
||||
if (raiditems[i]["@attributes"].Supported !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(21, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].Supported + "</td></tr>"; // Supported RAID-Types
|
||||
if (raiditems[i]["@attributes"].Cache_Size !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(25, 'raid')+"</span></td><td>" + formatBytes(parseInt(raiditems[i]["@attributes"].Cache_Size, 10), data.Options["@attributes"].byteFormat) + "</td></tr>"; // Cache_Size
|
||||
if (raiditems[i]["@attributes"].ReadPolicy !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(23, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].ReadPolicy + "</td></tr>"; // Read Policy
|
||||
if (raiditems[i]["@attributes"].WritePolicy !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(24, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].WritePolicy + "</td></tr>"; // Write Policy
|
||||
if (raiditems[i]["@attributes"].Cachevault_Size !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(33, 'raid')+"</span></td><td>" + formatBytes(parseInt(raiditems[i]["@attributes"].Cachevault_Size, 10), data.Options["@attributes"].byteFormat) + "</td></tr>"; // Cachevault_Size
|
||||
if (raiditems[i]["@attributes"].DiskCache !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(27, 'raid')+"</span></td><td>" + raiditems[i]["@attributes"].DiskCache + "</td></tr>"; // Disk Cache
|
||||
if (raiditems[i]["@attributes"].Bad_Blocks !== undefined) html += "<tr class=\"treegrid-parent-raid-" + i + "\"><td><span class=\"treegrid-spanbold\">"+genlang(26, 'raid')+"</span></td><td>" + parseInt(raiditems[i]["@attributes"].Bad_Blocks, 10) + "</td></tr>"; // Bad_Blocks
|
||||
|
||||
html += "</tbody></table>";
|
||||
html += "</td></tr>";
|
||||
html += "</tbody></table>";
|
||||
}
|
||||
/*if (i < raiditems.length-1) { // not last element
|
||||
html += "<br>";
|
||||
}*/
|
||||
html +="</td></tr>";
|
||||
}
|
||||
$('#raid-data').empty().append(html);
|
||||
|
||||
for (var k = 0; k < raiditems.length ; k++) {
|
||||
if (raiditems[k].RaidItems !== undefined) {
|
||||
var diskitems = items(raiditems[k].RaidItems.Item);
|
||||
for (var j = 0; j < diskitems.length ; j++) {
|
||||
raid_diskicon(diskitems[j]["@attributes"], k, j, data.Options["@attributes"].byteFormat, data.Options["@attributes"].tempFormat);
|
||||
}
|
||||
$('#raid-'+k).treegrid({
|
||||
initialState: 'collapsed',
|
||||
expanderExpandedClass: 'normalicon normalicon-down',
|
||||
expanderCollapsedClass: 'normalicon normalicon-right'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$('#block_raid').show();
|
||||
} else {
|
||||
$('#block_raid').hide();
|
||||
}
|
||||
} else {
|
||||
$('#block_raid').hide();
|
||||
}
|
||||
}
|
108
root/opt/phpsysinfo/plugins/raid/lang/cz.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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_raid_001" name="raid_title">
|
||||
<exp>Stav RAIDu</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Dodatečné informace</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Name</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Stav</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>Úroveň RAIDu</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Kapacita</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Stride</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Subsets</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Devices</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Spares</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Current Action</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Čas dokončení</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Velikost proužku</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Algoritmus</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Persistentní Superblock</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>dostupný</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>nedostupný</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Registrovné/aktivní disky</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Battery Condition</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Poodporované typy RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
108
root/opt/phpsysinfo/plugins/raid/lang/de.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: de.xml 661 2012-08-27 11:26:39Z namiltd $ -->
|
||||
<!--
|
||||
phpSysInfo language file Language: German Created by: Michael Cramer
|
||||
-->
|
||||
<tns:translationPlugin language="german" 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_raid_001" name="raid_title">
|
||||
<exp>RAID Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Zusätzliche Informationen</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Name</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>RAID-Level</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Kapazität</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Stride</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Subsets</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Devices</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Spares</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Current Action</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Fertig in</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Blockgröße</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Algorithmus</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Persistenter Superblock</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>verfügbar</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>nicht verfügbar</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Registrierte/Aktive Platten</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Akku-Zustand</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Unterstützte RAID-Typen</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
108
root/opt/phpsysinfo/plugins/raid/lang/en.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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: Michael Cramer
|
||||
-->
|
||||
<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_raid_001" name="raid_title">
|
||||
<exp>RAID Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Additional Information</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Name</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>RAID-Level</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Capacity</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Stride</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Subsets</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Devices</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Spares</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Current Action</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Finishing in</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Chunk Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Algorithm</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Persistent Superblock</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>available</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>not available</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Registered/Active Disks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Battery Condition</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Supported RAID-Types</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
107
root/opt/phpsysinfo/plugins/raid/lang/fr.xml
Normal file
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
phpSysInfo language file Language: French Created by: phpsysinfo
|
||||
-->
|
||||
<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_raid_001" name="raid_title">
|
||||
<exp>Statut RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Informations additionnelles</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Nom</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Status</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>Type de RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Capacité</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Granularité</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Sous-ensembles</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Périphériques</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Rechanges</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Action courante</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Temps restant</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Granularité</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Algorithme</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Superblocs persistants</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>disponible</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>non disponible</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Disques Enregistrés/Actives</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Battery Condition</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Type de RAID supporté</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
108
root/opt/phpsysinfo/plugins/raid/lang/gr.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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: ChriZathens
|
||||
-->
|
||||
<tns:translationPlugin language="greek" 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_raid_001" name="raid_title">
|
||||
<exp>Κατάσταση RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Επιπρόσθετες Πληροφορίες</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Όνομα</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Κατάσταση</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>Τύπος RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Χωρητικότητα</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Stride</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Υποσύνολα</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Συσκευές</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Spares</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Τρέχουσα Ενέργεια</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Ολοκληρώνεται σε</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Μέγεθος Chunk</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Αλγόριθμος</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Μόνιμο Superblock</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>διαθέσιμο</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>μη διαθέσιμο</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Δηλωμένοι/Ενεργοί Δίσκοι</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Κατάσταση Μπαταρίας</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Αχρησιμοποίητοι Δίσκοι</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Πρόγραμμα</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Πολιτικές Ανάγνωσης</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Πολιτικές Εγγραφής</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Μέγεθος Λανθάνουσας Μνήμης</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Χαλασμένα Μπλοκ</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Λανθάνουσα Μνήμη Δίσκου</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Μέγεθος Stripe</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Θερμοκρασία</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Τάση Μπαταρίας</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Θερμοκρασία Μπαταρίας</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
108
root/opt/phpsysinfo/plugins/raid/lang/ro.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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_raid_001" name="raid_title">
|
||||
<exp>Stare RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Informații Aditionale </exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Nume</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Stare</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>Nivele RAID</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Capacitate</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Pas</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Subseturi</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Dispozitive</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Piese</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Acțiune curentă</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>finisare în</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Chunk Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Algoritm</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Superblock persistente</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>disponibil</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>indisponibil</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Înregistrate/Discuri Active</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Condiții Baterie</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Discuri defolosite</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
107
root/opt/phpsysinfo/plugins/raid/lang/ru.xml
Normal file
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
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_raid_001" name="raid_title">
|
||||
<exp>RAID Статус</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_002" name="raid_infos">
|
||||
<exp>Дополнительная Информация</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_003" name="raid_name">
|
||||
<exp>Имя</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_004" name="raid_status">
|
||||
<exp>Статус</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_005" name="raid_level">
|
||||
<exp>RAID-Уровень</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_006" name="raid_capacity">
|
||||
<exp>Вместимость</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_007" name="raid_stride">
|
||||
<exp>Шаг</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_008" name="raid_subsets">
|
||||
<exp>Подмножество</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_009" name="raid_devs">
|
||||
<exp>Устройство</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_010" name="raid_spares">
|
||||
<exp>Резервировано</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_011" name="raid_curact">
|
||||
<exp>Текущее действие</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_012" name="raid_finish">
|
||||
<exp>Окончание в</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_013" name="raid_chunk">
|
||||
<exp>Размер блока</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_014" name="raid_algo">
|
||||
<exp>Алгоритм</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_015" name="raid_superb">
|
||||
<exp>Постоянный суперблок</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_016" name="raid_avail">
|
||||
<exp>доступен</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_017" name="raids_navail">
|
||||
<exp>не доступен</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_018" name="raid_regact">
|
||||
<exp>Зарегистрировано/Активных Дисков</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_019" name="raid_controller">
|
||||
<exp>Controller</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_020" name="raid_battcond">
|
||||
<exp>Состояние аккумулятора</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_021" name="raid_supported">
|
||||
<exp>Неиспользуемые диски</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_022" name="raid_program">
|
||||
<exp>Program</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_023" name="raid_readpolicy">
|
||||
<exp>Read Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_024" name="raid_writepolicy">
|
||||
<exp>Write Policy</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_025" name="raid_cachesize">
|
||||
<exp>Cache Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_026" name="raid_badblocks">
|
||||
<exp>Bad Blocks</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_027" name="raid_diskcache">
|
||||
<exp>Disk Cache</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_028" name="raid_stripe">
|
||||
<exp>Stripe Size</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_029" name="raid_firmware">
|
||||
<exp>Firmware</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_030" name="raid_temperature">
|
||||
<exp>Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_031" name="raid_battvolt">
|
||||
<exp>Battery Voltage</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_032" name="raid_batttemp">
|
||||
<exp>Battery Temperature</exp>
|
||||
</expression>
|
||||
<expression id="plugin_raid_033" name="raid_cachevaultsize">
|
||||
<exp>Cachevault Flash Size</exp>
|
||||
</expression>
|
||||
</tns:translationPlugin>
|
16
root/opt/phpsysinfo/plugins/raid/raid_bootstrap.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<div class="col-lg-12" id="block_raid" style="display:none;">
|
||||
<div class="card" id="panel_raid" style="display:none;">
|
||||
<div class="card-header"><span class="lang_plugin_raid_001">RAID Status</span>
|
||||
<span class="hostname_raid"></span>
|
||||
<div id="reload_raid" class="reload" title="reload"></div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="raid" class="table borderless table-sm">
|
||||
<tbody id="raid-data">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|