small update for monitoring interface.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4367 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
cfcd04f736
commit
fe228e40d1
@ -436,7 +436,7 @@ padding:10px 2px;
|
||||
}
|
||||
|
||||
#monsetting_tips {
|
||||
width: 888px;
|
||||
width: 920px;
|
||||
margin: 5px;
|
||||
padding: 5px;
|
||||
float: left;
|
||||
@ -448,6 +448,8 @@ padding:10px 2px;
|
||||
padding: 5px;
|
||||
float: left;
|
||||
background-color:silver;
|
||||
height: 480px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
#rmcScrAttr {
|
||||
|
@ -415,7 +415,6 @@ function displayRMCMonshowAttr($attr, $nr) {
|
||||
$xml = docmd("monshow", "", array("rmcmon", "$nr", "-t", "60", "-a", "$attr"));
|
||||
}
|
||||
//the formats of the data are different based on $nr
|
||||
//print_r($xml);
|
||||
$index = 0;
|
||||
foreach($xml->children() as $response) foreach($response->children() as $data) {
|
||||
//handle the data here
|
||||
@ -426,15 +425,13 @@ function displayRMCMonshowAttr($attr, $nr) {
|
||||
//then, parse "date" & "value"
|
||||
$arr = preg_split("/\s+/", $data);
|
||||
array_pop($arr);
|
||||
$tmp = array_pop($arr);
|
||||
if($tmp == '-') {
|
||||
$val = array_pop($arr);
|
||||
$time = implode(" ", $arr);
|
||||
echo "<tr>";
|
||||
echo "<td>$time</td>";
|
||||
echo "<td>$val</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
//print_r($arr);
|
||||
$val = array_pop($arr);
|
||||
$time = implode(" ", $arr);
|
||||
echo "<tr>";
|
||||
echo "<td>$time</td>";
|
||||
echo "<td>$val</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</tbody>";
|
||||
echo "</table>";
|
||||
|
@ -10,11 +10,11 @@ require_once "$TOPDIR/lib/functions.php";
|
||||
require_once "$TOPDIR/lib/display.php";
|
||||
require_once "$TOPDIR/lib/monitor_display.php";
|
||||
|
||||
displayMapper(array('home'=>'main.php', 'monitor' =>''));
|
||||
|
||||
displayTips(array("All the available RMC resources are listed here;",
|
||||
"Edit this table to define the RMC performance monitoring;",
|
||||
"Select the RMC resource, you can get all the available attributes."));
|
||||
//displayMapper(array('home'=>'main.php', 'monitor' =>''));
|
||||
//
|
||||
//displayTips(array("All the available RMC resources are listed here;",
|
||||
// "Edit this table to define the RMC performance monitoring;",
|
||||
// "Select the RMC resource, you can get all the available attributes."));
|
||||
|
||||
//displayMonsetting();
|
||||
echo "<div id='testme'>";
|
||||
|
Loading…
Reference in New Issue
Block a user