[Tags performance] agents_get_modules misc checks

This commit is contained in:
Fermin 2018-10-04 19:08:01 +02:00
parent 979e443824
commit 1278f03fd9
3 changed files with 2 additions and 20 deletions

View File

@ -66,7 +66,6 @@ if ($enterpriseEnable) {
}
$subsection = reporting_enterprise_add_graph_template_subsection('', $buttons);
reporting_enterprise_select_graph_template_tab();
$buttons['graph_container'] = array('active' => true,
'text' => '<a href="index.php?sec=reporting&sec2=godmode/reporting/graph_container">' .

View File

@ -37,21 +37,8 @@ ui_print_page_header (__("Export data"), "images/server_export_mc.png");
$group = get_parameter_post ('group', 0);
$agentName = get_parameter_post ('agent', 0);
switch ($config["dbtype"]) {
case "mysql":
$agents = agents_get_agents(
array('nombre LIKE "' . $agentName . '"'), array ('id_agente'));
break;
case "postgresql":
$agents = agents_get_agents(
array('nombre LIKE \'' . $agentName . '\''), array ('id_agente'));
break;
case "oracle":
$agents = agents_get_agents(
array('nombre LIKE \'%' . $agentName . '%\''), array ('id_agente'));
break;
}
$agents = agents_get_agents(
array('nombre LIKE "' . $agentName . '"'), array ('id_agente'));
$agent = $agents[0]['id_agente'];
$module = (array) get_parameter_post ('module_arr', array ());
@ -283,7 +270,6 @@ if (empty($export_btn) || $show_form) {
$table->data[2][0] .= ui_print_help_tip(__("No modules of type string. You can not calculate their average"),true);
if ($agent > 0) {
// TODO TAGS agents_get_modules
$modules = agents_get_modules ($agent);
}
else {

View File

@ -47,7 +47,6 @@ $option_type = get_parameter('option_type', 0);
// - others
//----------------------------------------------------------------------
$list_modules = array();
// TODO TAGS agents_get_modules
$modules_networkmap_no_proc = agents_get_modules(
$id_agente, false, array(
'id_modulo' => 2, // networkmap type
@ -62,7 +61,6 @@ $modules_networkmap_no_proc = agents_get_modules(
));
if (empty($modules_networkmap_no_proc))
$modules_networkmap_no_proc = array();
// TODO TAGS agents_get_modules
$modules_others = agents_get_modules(
$id_agente, false, array(
'id_tipo_modulo' => array(
@ -77,7 +75,6 @@ $modules_others = agents_get_modules(
if (empty($modules_others))
$modules_others = array();
// TODO TAGS agents_get_modules
$modules_boolean = agents_get_modules(
$id_agente, false, array(
'id_tipo_modulo' => array(