diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 23f3437bd8..abdb5a8dca 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -1494,7 +1494,7 @@ if ($update_module || $create_module) { $ff_event_normal = (int) get_parameter('ff_event_normal'); $ff_event_warning = (int) get_parameter('ff_event_warning'); $ff_event_critical = (int) get_parameter('ff_event_critical'); - $ff_type = (int) get_parameter('ff_type', $module['ff_type']); + $ff_type = (int) get_parameter('ff_type'); $each_ff = (int) get_parameter('each_ff', $module['each_ff']); $ff_timeout = (int) get_parameter('ff_timeout'); $unit = (string) get_parameter('unit'); diff --git a/pandora_console/godmode/alerts/alert_actions.php b/pandora_console/godmode/alerts/alert_actions.php index a5399e06c7..c72195862e 100644 --- a/pandora_console/godmode/alerts/alert_actions.php +++ b/pandora_console/godmode/alerts/alert_actions.php @@ -343,7 +343,7 @@ $table->align[3] = 'left'; $table->align[4] = 'left'; $filter = []; -if (!is_user_admin($config['id_user']) && $group === 0) { +if (!is_user_admin($config['id_user'])) { $filter['talert_actions.id_group'] = array_keys( users_get_groups(false, 'LM') ); diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index 59f022b586..caaf2a9940 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -2396,6 +2396,10 @@ class ConsoleSupervisor return; } + // Only ask for messages once every 2 hours. + $future = (time() + 2 * SECONDS_1HOUR); + config_update_value('last_um_check', $future); + $messages = update_manager_get_messages(); if (is_array($messages) === true) { $source_id = get_notification_source_id(