From 74ac1ea921f250e188a3e3b2e3d49c4bb4938746 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 1 Sep 2022 09:06:31 +0200 Subject: [PATCH] #9427 Fixed status filter --- .../include/functions_reporting.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 60061b9f31..9195b2920b 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2448,8 +2448,8 @@ function reporting_event_report_module( /** * Generate agents inventory report. * - * @param array $report Report info. - * @param array $content Content info. + * @param array $report Report info. + * @param array $content Content info. * * @return array */ @@ -2647,8 +2647,8 @@ function reporting_agents_inventory($report, $content) /** * Generate modules inventory report. * - * @param array $report Report info. - * @param array $content Content info. + * @param array $report Report info. + * @param array $content Content info. * * @return array */ @@ -11621,7 +11621,7 @@ function reporting_get_stats_alerts($data, $links=false) { global $config; - // Link URLS + // Link URLS. $mobile = false; if (isset($data['mobile'])) { if ($data['mobile']) { @@ -11637,14 +11637,14 @@ function reporting_get_stats_alerts($data, $links=false) $urls = []; if ($links) { $urls['monitor_alerts'] = 'index.php?sec=estado&sec2=operation/agentes/alerts_status&pure='.$config['pure']; - $urls['monitor_alerts_fired'] = 'index.php?sec=estado&sec2=operation/agentes/alerts_status&filter=fired&pure='.$config['pure']; + $urls['monitor_alerts_fired'] = 'index.php?sec=estado&sec2=operation/agentes/alerts_status&disabled=fired&pure='.$config['pure']; } else { $urls['monitor_alerts'] = $config['homeurl'].'index.php?sec=estado&sec2=operation/agentes/alerts_status&refr=60'; - $urls['monitor_alerts_fired'] = $config['homeurl'].'index.php?sec=estado&sec2=operation/agentes/alerts_status&refr=60&filter=fired'; + $urls['monitor_alerts_fired'] = $config['homeurl'].'index.php?sec=estado&sec2=operation/agentes/alerts_status&refr=60&disabled=fired'; } } - // Alerts table + // Alerts table. $table_al = html_get_predefined_table(); $tdata = []; @@ -11683,7 +11683,7 @@ function reporting_get_stats_alerts($data, $links=false) $output = '
'.__('Defined and fired alerts').''.html_print_table($table_al, true).'
'; } else { - // Remove the defined alerts cause with the new cache table is difficult to retrieve them + // Remove the defined alerts cause with the new cache table is difficult to retrieve them. unset($table_al->data[0][0], $table_al->data[0][1]); $table_al->class = 'tactical_view';