823bb33b20
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
* use the xCAT command "monshow" to display the current status for RMC Resources being monitored
|
|
*/
|
|
|
|
if(!isset($TOPDIR)) { $TOPDIR="..";}
|
|
require_once "$TOPDIR/lib/security.php";
|
|
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' =>'monitor/monlist.php', 'monshow'=>''));
|
|
|
|
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");
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
$(init_rmc_ositree(),init_rmc_monshow_back_btn());
|
|
</script>
|
|
|
|
<?php
|
|
|
|
echo "<div id='rmc_monshow'>";
|
|
echo "<div id='monshow_tip_1'><p><b>Select the monitor range from the tree on the left</b></p></div>";
|
|
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='back_btn'>";
|
|
insertButtons(array('label'=>'Back To the Attributes\' Page', 'id'=>'back_btn', 'onclick'=>'rmc_monshow_back_to_opts()'));
|
|
echo "</div>";
|
|
echo "<div id='monshow_data'>";
|
|
echo "</div>";
|
|
echo "</div>";
|
|
|
|
?>
|