initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:53:46 +10:00
parent 8f9c36d1f5
commit 9552652292
693 changed files with 86806 additions and 2 deletions

View File

@@ -0,0 +1,254 @@
<?php
/**
* PS Plugin
*
* PHP version 5
*
* @category PHP
* @package PSI_Plugin_PS
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: class.ps.inc.php 692 2012-09-08 17:12:08Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* process Plugin, which displays all running processes
* a simple tree view which is filled with the running processes which are determined by
* calling the "ps" command line utility, another way is to provide
* a file with the output of the ps utility, so there is no need to run a execute by the
* webserver, the format of the command is written down in the phpsysinfo.ini file, where also
* the method of getting the information is configured
*
* @category PHP
* @package PSI_Plugin_PS
* @author Michael Cramer <BigMichi1@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 PS 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();
/**
* read the data into an internal array and also call the parent constructor
*
* @param String $enc encoding
*/
public function __construct($enc)
{
parent::__construct(__CLASS__, $enc);
switch (strtolower(PSI_PLUGIN_PS_ACCESS)) {
case 'command':
if (PSI_OS == 'WINNT') {
try {
$objLocator = new COM("WbemScripting.SWbemLocator");
$wmi = $objLocator->ConnectServer();
$os_wmi = $wmi->InstancesOf('Win32_OperatingSystem');
foreach ($os_wmi as $os) {
$memtotal = $os->TotalVisibleMemorySize * 1024;
}
$process_wmi = $wmi->InstancesOf('Win32_Process');
foreach ($process_wmi as $process) {
if (strlen(trim($process->CommandLine)) > 0) {
$ps = trim($process->CommandLine);
} else {
$ps = trim($process->Caption);
}
if (trim($process->ProcessId) != 0) {
$memusage = round(trim($process->WorkingSetSize) * 100 / $memtotal, 1);
//ParentProcessId
//Unique identifier of the process that creates a process. Process identifier numbers are reused, so they
//only identify a process for the lifetime of that process. It is possible that the process identified by
//ParentProcessId is terminated, so ParentProcessId may not refer to a running process. It is also
//possible that ParentProcessId incorrectly refers to a process that reuses a process identifier. You can
//use the CreationDate property to determine whether the specified parent was created after the process
//represented by this Win32_Process instance was created.
//=> subtrees of processes may be missing (WHAT TODO?!?)
$this->_filecontent[] = trim($process->ProcessId)." ".trim($process->ParentProcessId)." ".$memusage." ".$ps;
}
}
} catch (Exception $e) {
}
} else {
CommonFunctions::executeProgram("ps", "axo pid,ppid,pmem,args", $buffer, PSI_DEBUG);
if (((PSI_OS == 'Linux') || (PSI_OS == 'Android')) && (!preg_match("/^[^\n]+\n.+/", $buffer))) { //alternative method if no data
if (CommonFunctions::rfts('/proc/meminfo', $mbuf)) {
$bufe = preg_split("/\n/", $mbuf, -1, PREG_SPLIT_NO_EMPTY);
$totalmem = 0;
foreach ($bufe as $buf) {
if (preg_match('/^MemTotal:\s+(.*)\s*kB/i', $buf, $ar_buf)) {
$totalmem = $ar_buf[1];
break;
}
}
$buffer = " PID PPID %MEM COMMAND\n";
$processlist = glob('/proc/*/status', GLOB_NOSORT);
if (($total = count($processlist)) > 0) {
natsort($processlist); //first sort
$prosess = array();
foreach ($processlist as $processitem) { //second sort
$process[] = $processitem;
}
$buf = "";
for ($i = 0; $i < $total; $i++) {
if (CommonFunctions::rfts($process[$i], $buf, 0, 4096, false)) {
if (($totalmem != 0) && (preg_match('/^VmRSS:\s+(\d+)\s+kB/m', $buf, $tmppmem))) {
$pmem = round(100 * $tmppmem[1] / $totalmem, 1);
} else {
$pmem = 0;
}
$name = null;
if (CommonFunctions::rfts(substr($process[$i], 0, strlen($process[$i])-6)."cmdline", $namebuf, 0, 4096, false)) {
$name = str_replace(chr(0), ' ', trim($namebuf));
}
if (preg_match('/^Pid:\s+(\d+)/m', $buf, $tmppid) &&
preg_match('/^PPid:\s+(\d+)/m', $buf, $tmpppid) &&
preg_match('/^Name:\s+(.+)/m', $buf, $tmpargs)) {
$pid = $tmppid[1];
$ppid = $tmpppid[1];
$args = $tmpargs[1];
if ($name !== null) {
if ($name !== "") {
$args = $name;
} else {
$args = "[".$args."]";
}
}
$buffer .= $pid." ".$ppid." ".$pmem." ".$args."\n";
}
}
}
}
}
}
}
break;
case 'data':
CommonFunctions::rfts(APP_ROOT."/data/ps.txt", $buffer);
break;
default:
$this->global_error->addConfigError("__construct()", "PSI_PLUGIN_PS_ACCESS");
break;
}
if (PSI_OS != 'WINNT') {
if (trim($buffer) != "") {
$this->_filecontent = preg_split("/\n/", $buffer, -1, PREG_SPLIT_NO_EMPTY);
unset($this->_filecontent[0]);
} else {
$this->_filecontent = array();
}
}
}
/**
* doing all tasks to get the required informations that the plugin needs
* result is stored in an internal array<br>the array is build like a tree,
* so that it is possible to get only a specific process with the childs
*
* @return void
*/
public function execute()
{
if (empty($this->_filecontent)) {
return;
}
foreach ($this->_filecontent as $roworig) {
$row = preg_split("/[\s]+/", trim($roworig), 4);
if (count($row) != 4) {
break;
}
foreach ($row as $key=>$val) {
$items[$row[0]][$key] = $val;
}
if ($row[1] !== $row[0]) {
$items[$row[1]]['childs'][$row[0]] = &$items[$row[0]];
}
}
foreach ($items as $item) { //find zombie
if (!isset($item[0])) {
foreach ($item["childs"] as $subitem) {
$zombie = $subitem[1];
if ($zombie != 0) {
$items[$zombie]["0"] = $zombie;
$items[$zombie]["1"] = "0";
$items[$zombie]["2"] = "0";
$items[$zombie]["3"] = "unknown";
$items[0]['childs'][$zombie] = &$items[$zombie];
}
break; //first is sufficient
}
}
}
if (isset($items[0])) {
$this->_result = $items[0];
} else {
$_result = array();
}
}
/**
* generates the XML content for the plugin
*
* @return SimpleXMLElement entire XML content for the plugin
*/
public function xml()
{
if ($this->_result) {
$positions = array(0=>0);
$this->_addchild($this->_result['childs'], $this->xml, $positions);
}
return $this->xml->getSimpleXmlElement();
}
/**
* recursive function to allow appending child processes to a parent process
*
* @param Array $child part of the array which should be appended to the XML
* @param SimpleXMLExtended $xml XML-Object to which the array content is appended
* @param Array &$positions array with parent positions in xml structure
*
* @return SimpleXMLExtended Object with the appended array content
*/
private function _addchild($child, SimpleXMLExtended $xml, &$positions)
{
foreach ($child as $key=>$value) {
$xmlnode = $xml->addChild("Process");
if (isset($value[0])) {
array_push($positions, $value[0]);
$xmlnode->addAttribute('PID', $value[0]);
$parentid = array_search($value[1], $positions);
$xmlnode->addAttribute('ParentID', $parentid);
$xmlnode->addAttribute('PPID', $value[1]);
$xmlnode->addAttribute('MemoryUsage', $value[2]);
$xmlnode->addAttribute('Name', str_replace("...","",$value[3]));
if (PSI_OS !== 'WINNT') {
if ($parentid === 1){
$xmlnode->addAttribute('Expanded', 0);
}
if (defined('PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED') && (PSI_PLUGIN_PS_SHOW_KTHREADD_EXPANDED === false) && ($value[3] === "[kthreadd]")) {
$xmlnode->addAttribute('Expanded', 0);
}
}
}
if (isset($value['childs'])) {
$this->_addChild($value['childs'], $xml, $positions);
}
}
return $xml;
}
}

View File

@@ -0,0 +1,120 @@
/***************************************************************************
* 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: ps.js 661 2012-08-27 11:26:39Z namiltd $
//
/*global $, jQuery, buildBlock, datetime, plugin_translate, createBar, genlang */
"use strict";
var ps_show = false;
/**
* build the table where content is inserted
* @param {jQuery} xml plugin-XML
*/
function ps_buildTable(xml) {
var html = "", tree = [], closed = [2];
$("#Plugin_PS #Plugin_PSTable").remove();
html += " <table id=\"Plugin_PSTable\" class=\"tablemain\" style=\"width:100%;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(3, false, "PS") + "</th>\n";
html += " <th style=\"width:80px;\">" + genlang(4, false, "PS") + "</th>\n";
html += " <th style=\"width:80px;\">" + genlang(5, false, "PS") + "</th>\n";
html += " <th style=\"width:110px;\">" + genlang(6, false, "PS") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
$("Plugins Plugin_PS Process", xml).each(function ps_getprocess(id) {
var close = 0, pid = 0, ppid = 0, name = "", percent = 0, parentId = 0, expanded = 0;
name = $(this).attr("Name");
parentId = parseInt($(this).attr("ParentID"), 10);
pid = parseInt($(this).attr("PID"), 10);
ppid = parseInt($(this).attr("PPID"), 10);
percent = parseInt($(this).attr("MemoryUsage"), 10);
expanded = parseInt($(this).attr("Expanded"), 10);
html += " <tr><td>" + name + "</td><td>" + pid + "</td><td>" + ppid + "</td><td>" + createBar(percent) + "</td></tr>\n";
close = tree.push(parentId);
if (!isNaN(expanded) && (expanded === 0)) {
closed.push(close);
}
ps_show = true;
});
html += " </tbody>\n";
html += " </table>\n";
$("#Plugin_PS").append(html);
$("#Plugin_PSTable").jqTreeTable(tree, {
openImg: "./gfx/treeTable/tv-collapsable.gif",
shutImg: "./gfx/treeTable/tv-expandable.gif",
leafImg: "./gfx/treeTable/tv-item.gif",
lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
vertLineImg: "./gfx/treeTable/vertline.gif",
blankImg: "./gfx/treeTable/blank.gif",
collapse: closed,
column: 0,
striped: true,
highlight: false,
state: false
});
}
/**
* load the xml via ajax
*/
function ps_request() {
$.ajax({
url: "xml.php?plugin=PS",
dataType: "xml",
error: function ps_error() {
$.jGrowl("Error loading XML document for Plugin PS!");
},
success: function ps_buildblock(xml) {
populateErrors(xml);
ps_buildTable(xml);
if (ps_show) {
plugin_translate("PS");
$("#Plugin_PS").show();
}
}
});
}
$(document).ready(function ps_buildpage() {
$("#footer").before(buildBlock("PS", 1, true));
$("#Plugin_PS").css("width", "915px");
ps_request();
$("#Reload_PSTable").click(function ps_reload(id) {
ps_request();
$("#Reload_PSTable").attr("title",datetime());
});
});

View File

@@ -0,0 +1,38 @@
function renderPlugin_ps(data) {
var directives = {
MemoryUsage: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + this["MemoryUsage"] + '%;"></div>' +
'</div><div class="percent">' + this["MemoryUsage"] + '%</div>';
}
},
Name: {
html: function () {
return this["Name"];
}
}
};
if (data['Plugins']['Plugin_PS'] !== undefined) {
var psitems = items(data['Plugins']['Plugin_PS']['Process']);
if (psitems.length > 0) {
var ps_memory = [];
var ps_item = [];
for (i = 0; i < psitems.length ; i++) {
ps_item = psitems[i]["@attributes"];
ps_item["number"] = i + 1;
ps_memory.push(ps_item);
}
$('#ps-data').render(ps_memory, directives);
$('#ps_number').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#ps_number')[0], []);
$('#block_ps').show();
} else {
$('#block_ps').hide();
}
} else {
$('#block_ps').hide();
}
}

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Procesy</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Aktualizováno</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Příkaz</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>Rodičovský PID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Spotřeba paměti</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Prozess Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Letzte Aktualisierung</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Befehl</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>Prozess ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>Eltern ID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Speichernutzung</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Process Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Last refresh</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Command</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>Process ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>Parent ID</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Memory Usage</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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: Erkan VALENTIN
-->
<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_ps_001" name="ps_title">
<exp>Etat des processus</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Dernière actualisation</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Commande</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>ID processus</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>ID processus père</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Utilisation mémoire</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Διεργασίες Συστήματος</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ενημέρωση</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Εντολή</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>ID Διεργασίας</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>ID Κύριας Διεργασίας</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Χρήση Μνήμης</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Status Procesów</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ostatnie odświeżenie</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Polecenie</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>PID rodzica</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Wykorzystanie pamięci</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Stare proces</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Ultimul refresh</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Comanda</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>ID Proces</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>ID Parinte</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Utilizare Memorie</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<?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_ps_001" name="ps_title">
<exp>Статус процессов</exp>
</expression>
<expression id="plugin_ps_002" name="ps_date">
<exp>Последнее обновление</exp>
</expression>
<expression id="plugin_ps_003" name="ps_command">
<exp>Команда</exp>
</expression>
<expression id="plugin_ps_004" name="ps_pid">
<exp>ID процесса</exp>
</expression>
<expression id="plugin_ps_005" name="ps_ppid">
<exp>ID родителя</exp>
</expression>
<expression id="plugin_ps_006" name="ps_mem">
<exp>Использовано памяти</exp>
</expression>
</tns:translationPlugin>

View File

@@ -0,0 +1,27 @@
<div class="col-lg-12" id="block_ps" style="display:none">
<div class="panel panel-primary">
<div class="panel-heading">Processes Status</div>
<div class="panel-body">
<table id="ps" class="table table-hover table-condensed sortable">
<thead>
<tr>
<th id="ps_number" class="sorttable_numeric">#</th>
<th>Command</th>
<th class="rightCell sorttable_numeric">Process ID</th>
<th class="rightCell sorttable_numeric">Parent ID</th>
<th class="rightCell sorttable_numeric">Memory Usage</th>
</tr>
</thead>
<tbody id="ps-data">
<tr>
<th><span data-bind="number"></span></th>
<td><span data-bind="Name"></span></td>
<td class="rightCell"><span data-bind="PID"></span></td>
<td class="rightCell"><span data-bind="PPID"></span></td>
<td class="rightCell"><span data-bind="MemoryUsage"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>