From d11df9e50e937ba6d75982983515d3f0bfc75230 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Tue, 25 Oct 2016 10:30:25 +0200 Subject: [PATCH] Fixed problems with group view (cherry picked from commit b0ccd333defc8aedd6ba876f24279bb6d2987c57) --- .../operation/agentes/group_view.php | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index 1a07ed8a24..a9680d523c 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -123,7 +123,7 @@ echo '"; echo "". $total_agent_unknown ."%"; echo "". $total_not_init ."%"; - echo "". $total_critical ."%"; + echo "". $total_agent_critical ."%"; echo ""; echo "
"; echo "". $total_critical ."%"; @@ -154,7 +154,7 @@ if (!empty($result_groups)) { echo ''; echo ""; echo ""; - echo ""; + echo ""; echo ""; echo ""; @@ -164,6 +164,7 @@ if (!empty($result_groups)) { echo ""; echo ""; echo ""; + echo ""; echo ""; echo ""; echo ""; @@ -301,6 +302,24 @@ if (!empty($result_groups)) { } echo ""; + // Agents critical + echo ""; + // Monitors unknown echo "
" . __("Agents") . "" . __("Agents") . "" . __("Modules") . "
" . __("Total") . "" . __("Unknown") . "" . __("Not init") . "" . __("Critical") . "" . __("Unknown") . "" . __("Not Init") . "" . __("Normal") . ""; + if (isset($data['_is_tag_'])) { + $link = ""; + } else { + $link = ""; + } + if (($data["_id_"] == 0) && ($agents_critical != 0)) { + echo $link . $agents_critical . ""; + } + + if ($data["_agents_critical_"] > 0 && ($data["_id_"] != 0)) { + echo $link . $data["_agents_critical_"] . ""; + } + echo ""; if (!isset($data['_is_tag_'])) {