From 7fda8a296d7f63ae4cdd44b796f6af9ed24e75cc Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 13 Mar 2015 14:43:30 +0100 Subject: [PATCH] Now some monitor graphs are shown in 'only average' mode when accessing it from the metaconsole --- pandora_console/include/functions_events.php | 1 + pandora_console/operation/agentes/status_monitor.php | 1 + 2 files changed, 2 insertions(+) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 6a457e8242..6a0b141eac 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2055,6 +2055,7 @@ function events_page_details ($event, $server = "") { "label=" . rawurlencode( urlencode( base64_encode($module_module_name))) . $hashstring . "&" . + (!empty($server) ? "avg_only=1&" : "") . "refresh=" . SECONDS_10MINUTES . "','day_".$win_handle."')"; $data[1] = ''; diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index ef659adc24..a8fe0b621d 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1217,6 +1217,7 @@ foreach ($result as $row) { "label=" . rawurlencode( urlencode( base64_encode($row["module_name"]))) . "&" . + "avg_only=1&" . "refresh=" . SECONDS_10MINUTES . "', 'day_".$win_handle."')"; else $link ="winopeng('" .