From f0862e1c5b146eb8527f3f5d9880b72b75791f0f Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 4 Sep 2017 12:09:19 +0200 Subject: [PATCH] fixed minor errors in WUX --- .../godmode/agentes/module_manager.php | 17 +++++++++++------ pandora_console/include/ajax/module.php | 6 +++++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 78f97786c1..1fbf08bf80 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -741,10 +741,15 @@ foreach ($modules as $module) { $data[6] = ui_print_status_image($status, $title, true); // MAX / MIN values - $data[7] = ui_print_module_warn_value ($module["max_warning"], - $module["min_warning"], $module["str_warning"], - $module["max_critical"], $module["min_critical"], - $module["str_critical"]); + if($module['id_tipo_modulo'] != 25){ + $data[7] = ui_print_module_warn_value ($module["max_warning"], + $module["min_warning"], $module["str_warning"], + $module["max_critical"], $module["min_critical"], + $module["str_critical"]); + } + else{ + $data[7] = ""; + } if ($module['disabled']) { $data[8] = "". @@ -756,8 +761,8 @@ foreach ($modules as $module) { html_print_image('images/lightbulb.png', true, array('alt' => __('Disable module'), 'title' => __('Disable module'))) .""; } - - if (check_acl ($config['id_user'], $agent['id_grupo'], "AW")) { + + if (check_acl ($config['id_user'], $agent['id_grupo'], "AW") && $module['id_tipo_modulo'] != 25) { $data[8] .= ' '; $data[8] .= html_print_image ('images/copy.png', true, diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index d18a8ec97d..d97d51264f 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -1012,8 +1012,12 @@ if ($list_modules) { $module["current_interval"], $module["module_name"]); } } - + if($module["id_tipo_modulo"] != 25){ $data[6] = ui_print_module_warn_value ($module["max_warning"], $module["min_warning"], $module["str_warning"], $module["max_critical"], $module["min_critical"], $module["str_critical"]); + } + else{ + $data[6] = ""; + } $data[7] = $salida; $graph_type = return_graphtype ($module["id_tipo_modulo"]);