From 08d93c8b288df83972e6dc8b598bc80bcef359a2 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Wed, 25 Mar 2015 19:20:48 +0100 Subject: [PATCH] Now the 'avg_only' option is enabled by default for the metaconsole users --- pandora_console/include/class/Tree.class.php | 1 + pandora_console/include/functions_events.php | 1 + pandora_console/operation/agentes/status_monitor.php | 1 + 3 files changed, 3 insertions(+) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index 36d6dcac8b..fa566c0ee6 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -1344,6 +1344,7 @@ class Tree { ); if (defined('METACONSOLE') && !empty($server)) { + $graph_params["avg_only"] = 1; // Set the server id $graph_params["server"] = $module['serverID']; } diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 0529e5f9a8..98453ab29e 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2081,6 +2081,7 @@ function events_page_details ($event, $server = "") { ); if (defined('METACONSOLE')) { + $graph_params["avg_only"] = 1; // Set the server id $graph_params["server"] = $server["id"]; } diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index ce18fdb97c..b14acede5e 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1229,6 +1229,7 @@ foreach ($result as $row) { ); if (defined('METACONSOLE') && isset($row["server_id"])) { + $graph_params["avg_only"] = 1; // Set the server id $graph_params["server"] = $row["server_id"]; }