xcat-core/xCAT-UI/monitor/plugin_desc.php
mxi1 9c9d87e309 1)The file "plugin_desc.php" is for the description of each plug-ins;
2) Add link to go to plugin_desc.php.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-16 10:18:27 +00:00

31 lines
692 B
PHP

<?php
if(!isset($TOPDIR)) { $TOPDIR="/opt/xcat/ui";}
require_once "$TOPDIR/lib/security.php";
require_once "$TOPDIR/lib/functions.php";
require_once "$TOPDIR/lib/display.php";
?>
<?php
/*
* Run the command "monls $name -d",
* return the information
*/
# get the _REQUEST['name'] arguments
$name=$_REQUEST['name'];
$xml = docmd("monls"," ", array("$name", "-d"));
if (getXmlErrors($xml, $errors)) {
echo "<p class=Error>monls failed: ", implode(' ',$errors), "</p>\n";
exit;
}
$information = "";
foreach ($xml->children() as $response) foreach ($response->children() as $data) {
$information .= $data;
$information .= "\n";
//print_r($data);
}
echo $information;
?>