code related with monitor interface is put here.
*/
function displayMapper_mon($mapper)
{
//display the Mapper for monitoring interface;
//the argument $mapper is an array
//$mapper = {
// "home" => "main.php",
// "Monitor" => "monitor/monlist.php",
//};
echo "
to display jQuery dialog;
echo "
";
return 0;
}
function displayMonTable()
{
//create one table to display the monitoring plugins' list
echo '
';
echo <<
TOS1;
echo '';
displayMonitorLists();
echo "
";
return 0;
}
function display_stat_mon_table($args)
{
//create one table to disable or enable node/application monitoring
//the argument $args are one array like this:
//{ 'xcatmon' => {
// 'nodestat' => 'Enabled',
// 'appstat' => 'Disabled',
// },
//};
//
echo '
';
foreach($args as $key => $value) {
$name = $key;
if($value{'nodestat'} == 'Enabled') {
$ns_tobe = 'Disable';
} else {
$ns_tobe = 'Enable';
}
if($value{'appstat'} == 'Enabled') {
$as_tobe = 'Disable';
} else {
$as_tobe = 'Enable';
}
}
echo "
Node/Application Status Monitoring for $name
";
echo <<
Node Status Monitoring |
TOS2;
insertButtons(array('label'=>$ns_tobe, 'id'=>'node_stat', 'onclick'=>"node_stat_control(\"$name\")"));
echo ' | ';
echo '
';
echo '';
echo 'Application Status Monitoring | ';
echo '';
insertbuttons(array('label'=>$as_tobe, 'id'=>'app_stat', 'onclick'=>''));
echo ' | ';
echo '
';
echo ' ';
}
function displayStatus()
{
//tell the user that the current interface is not done yet...
echo "
This interface is still under development -use accordingly.
";
}
function displayOSITree()
{
//display the node range tree, but only with the nodes with OSI type
//this follows the function displayNrTree();
//it doesn't work on firefox!!!
echo <<
$(init_ositree());
EOS3;
}
function displayAssociation()
{
echo '';
echo <<
Available Condition/Response Associations
TOS5;
//$xml = docmd("webrun", "", array("lscondresp"));
//if(getXmlErrors($xml,$errors)) {
//echo "",implode(' ', $errors), "
";
//exit;
//}
//get all the condition&response associations for RMC
echo <<
NodeReachability_H |
UpdatexCATNodeStatus |
hv8plus01.ppd.pok.ibm.com |
Not active |
NodeReachability |
UpdatexCATNodeStatus |
hv8plus01.ppd.pok.ibm.com |
Not active |
TOS6;
return 0;
}
function displayCond($noderange)
{
//the user selects one node/noderange from the #ositree div
echo '';
echo 'Available Conditions';
echo '
';
return 0;
}
function displayResp()
{
echo '';
echo 'Available Response';
echo '
';
return 0;
}
?>