$dataPointTime = trim ($dataPointTime); } else { $totalAgentsToProcess = ""; } if (($reportType == "12") && ($removeRogue != "")) { remove_from_rogue($removeRogue); echo "Agent Removed from Rogue List <br>"; } $myReport = $_GET["myReport"]; if ($myReport) { $reportType = $_GET["reportType"]; $totalAgentsToProcess = get_all_hosts_for_user($_SESSION['user']); } run_report($reportType, $totalAgentsToProcess, $filterList,$dataPointTime,$filterAppClassSelect); $timeEnd = time(); $timeToComplete = $timeEnd - $timeStart; #</fieldset> ?> <BR><BR> <p class="silver">Report completed in <?php print howmany($timeToComplete, "second.", "seconds."); ?> </p> </body>
} echo "<option value = \"$indGroup\" >$indGroup"; $groupAgentSelected = array_merge($groupAgentSelected, get_agent_for_mutiple_parent("$indGroup")); } } $groupAgentSelected = array_unique ($groupAgentSelected); ?> </SELECT> </TD></TR> </TABLE> </fieldset> <? $totalHosts = get_all_hosts_for_user($_SESSION['user']); $totalHostString = implode (",", $totalHosts); $totalHostString = str_replace("___", " ", $totalHostString); ?> <br> <br> <fieldset> <legend>Server Selection</legend> <p>To select Multiple agent, click on the <i>ctll</i> key. If you selected a group in the previous section, all the servers that belong to that group will be highlighted. The number of servers that are selected appears right below the selection box</p> <!-- <p>You can enter 1 or multiple agent separated by newline. The format is 'hostname port_number' if you do not specify a port, it will default to the first port it finds</p> <script language="JavaScript" type="text/javascript" src="richtext.js"></script> <script language="JavaScript" type="text/javascript"> theForm = document.forms[0]; initRTE("images/","","",false); writeRichText('manualAgents','',350,100,false,false);
} $groupAgentSelected = array_unique ($groupAgentSelected); ?> </SELECT> </TD></TR> </TABLE> </fieldset> <? if ($userToGet == "") { $totalHosts = get_all_hosts_for_user('1'); } else { $totalHosts = get_all_hosts_for_user($userToGet); } $totalHostString = implode (",", $totalHosts); $totalHostString = str_replace("___", " ", $totalHostString); ?> <br> <br> <fieldset> <legend>Server Selection</legend> <p>To select Multiple agent, click on the <i>ctll</i> key. If you selected a group in the previous section, all the servers that belong to that group will be highlighted. The number of servers that are selected appears right below the selection box</p> <? $hostCount = count($totalHosts); $groupAgentSelected = array_intersect($groupAgentSelected, $totalHosts);