[Tags performance] Some agents_get_modules checks

This commit is contained in:
fermin831 2018-10-03 17:00:57 +02:00
parent a33cae9e8f
commit f3eae5e111
3 changed files with 0 additions and 5 deletions

View File

@ -142,14 +142,12 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
if ($forced_name !== false)
$module['nombre'] = $forced_name;
// TODO TAGS agents_get_modules
$modules = agents_get_modules ($id_destiny_agent, false,
array ('nombre' => $module['nombre'], 'disabled' => false));
// The module already exist in the target
if (! empty ($modules))
return array_pop (array_keys ($modules));
// TODO TAGS agents_get_modules
$modulesDisabled = agents_get_modules ($id_destiny_agent, false,
array ('nombre' => $module['nombre'], 'disabled' => true));

View File

@ -1800,7 +1800,6 @@ function reporting_agent_module($report, $content) {
$row = array();
$row['agent_status'][$agent] = agents_get_status($agent);
$row['agent_name'] = agents_get_alias($agent);
// TODO TAGS agents_get_modules
$agent_modules = agents_get_modules($agent);
$row['modules'] = array();
@ -3079,7 +3078,6 @@ function reporting_alert_report_agent($report, $content) {
$return["description"] = $content["description"];
$return["date"] = reporting_get_date_text($report, $content);
$return['label'] = (isset($content['style']['label'])) ? $content['style']['label'] : '';
// TODO TAGS agents_get_modules
$module_list = agents_get_modules($content['id_agent']);
$data = array();

View File

@ -3346,7 +3346,6 @@ function reporting_get_agent_monitors_table ($id_agent, $period = 0, $date = 0)
function reporting_get_agent_modules_table ($id_agent, $period = 0, $date = 0) {
$table->data = array ();
$n_a_string = __('N/A').'(*)';
// TODO TAGS agents_get_modules
$modules = agents_get_modules ($id_agent, array ("nombre", "descripcion"));
if ($modules === false)
$modules = array();