little code update to support graphics view for RMC monitoring
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ce84aa1329
commit
ec8d33c3e7
@ -11,7 +11,8 @@ require_once "$TOPDIR/lib/monitor_display.php";
|
||||
|
||||
displayMapper(array('home'=>'main.php', 'monitor' =>''));
|
||||
|
||||
displayTips(array("Select the domain: the whole cluser or the compute nodes under \"<b>lpar</b>\",","then select the desired attributes. click the \"OK\" button"));
|
||||
displayTips(array("Select the domain: the whole cluser or the compute nodes under \"<b>lpar</b>\",",
|
||||
"then select the desired attributes. click the \"View by Text\" button or the \"View by Graphics\" button"));
|
||||
|
||||
insertDiv("rmc_tree");
|
||||
|
||||
@ -25,7 +26,10 @@ insertDiv("rmc_tree");
|
||||
|
||||
echo "<div id='rmc_monshow'>";
|
||||
echo "<div id='monshow_opt'></div>";
|
||||
//if the user clicks the "View by Text" button, the div named "monshow_data" will show
|
||||
// the text data from the "monshow" command;
|
||||
//and , if the "view by Graphics" button is clicked, the "monshow_data" div will display the pictures, the pictures is generated by "rrdtool" right now, but in the future, some jQuery plugin will be used to generate the graphics for the "monshow" data
|
||||
echo "<div id='monshow_data'></div>";
|
||||
echo "</div>";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -34,7 +34,8 @@ TOS0;
|
||||
show_rmc_monsetting();
|
||||
echo "<div>";
|
||||
//click the "OK" button, "monshow" data for the selected attributes will display
|
||||
insertButtons(array('label'=>'OK', 'id'=>'monshow_ok_btn', 'onclick'=>'show_monshow_data()'));
|
||||
insertButtons(array('label'=>'View by Text', 'id'=>'monshow_text_btn', 'onclick'=>'show_monshow_text()'));
|
||||
insertButtons(array('label'=>'View by Graphics', 'id'=>'monshow_graph_btn', 'onclick'=>'show_monshow_graph()'));
|
||||
echo "</div>";
|
||||
echo "</div>";
|
||||
}
|
||||
@ -46,9 +47,9 @@ function show_rmc_monsetting()
|
||||
echo <<<TOS1
|
||||
<thead>
|
||||
<tr class="colHeaders">
|
||||
<td>name</td>
|
||||
<td>key</td>
|
||||
<td>value</td>
|
||||
<td>Name</td>
|
||||
<td>Resources</td>
|
||||
<td>Attributes</td>
|
||||
<td>comments</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Loading…
x
Reference in New Issue
Block a user