diff --git a/pandora_console/operation/agentes/group_view.php b/pandora_console/operation/agentes/group_view.php index a4756339bb..e137f6673d 100644 --- a/pandora_console/operation/agentes/group_view.php +++ b/pandora_console/operation/agentes/group_view.php @@ -27,7 +27,7 @@ if (! check_acl ($config['id_user'], 0, "AR")) { require ("general/noaccess.php"); exit; } - +$offset = get_parameter('offset', 0); // Update network modules for this group // Check for Network FLAG change request // Made it a subquery, much faster on both the database and server side @@ -79,6 +79,8 @@ foreach ($all_data as $group_all_data) { $agents_unknown += $group_all_data["_agents_unknown_"]; $agents_notinit += $group_all_data["_agents_not_init_"]; + + $all_alerts_fired += $group_all_data["_monitors_alerts_fired_"]; } $total = $monitor_ok + $monitor_warning + $monitor_critical + $monitor_unknown + $monitor_not_init; @@ -95,13 +97,18 @@ $total_not_init = format_numeric (($agents_notinit*100)/$total_agentes,2); echo ''; echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; echo ""; echo ""; + echo ""; echo ""; echo ""; - + $result_groups = array_slice($result_groups, $offset, $config['block_size']); foreach ($result_groups as $data) { $groups_id = $data["_id_"]; @@ -237,7 +243,6 @@ if (!empty($result_groups)) { $agent_counter = agents_get_group_agents($groups_id); echo $link . count($agent_counter) . ""; } - $agent_counter = agents_get_group_agents($groups_id); if ($data["_total_agents_"] > 0) { echo $link . $data["_total_agents_"] . ""; } @@ -252,6 +257,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($agents_unknown != 0)) { + echo $link . $agents_unknown . ""; + } if ($data["_agents_unknown_"] > 0) { echo $link . $data["_agents_unknown_"] . ""; } @@ -266,6 +274,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($agents_notinit != 0)) { + echo $link . $agents_notinit . ""; + } if ($data["_agents_not_init_"] > 0) { echo $link . $data["_agents_not_init_"] . ""; } @@ -280,6 +291,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($monitor_unknown != 0)) { + echo $link . $monitor_unknown . ""; + } if ($data["_monitors_unknown_"] > 0) { echo $link . $data["_monitors_unknown_"] . ""; } @@ -294,6 +308,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($monitor_not_init != 0)) { + echo $link . $monitor_not_init . ""; + } if ($data["_monitors_not_init_"] > 0) { echo $link . $data["_monitors_not_init_"] . ""; } @@ -308,6 +325,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($monitor_ok != 0)) { + echo $link . $monitor_ok . ""; + } if ($data["_monitors_ok_"] > 0) { echo $link . $data["_monitors_ok_"] . ""; } @@ -322,6 +342,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($monitor_warning != 0)) { + echo $link . $monitor_warning . ""; + } if ($data["_monitors_warning_"] > 0) { echo $link . $data["_monitors_warning_"] . ""; } @@ -336,6 +359,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($monitor_critical != 0)) { + echo $link . $monitor_critical . ""; + } if ($data["_monitors_critical_"] > 0) { echo $link . $data["_monitors_critical_"] . ""; } @@ -350,6 +376,9 @@ if (!empty($result_groups)) { $link = ""; } + if (($data["_id_"] == 0) && ($all_alerts_fired != 0)) { + echo $link . $all_alerts_fired . ""; + } if ($data["_monitors_alerts_fired_"] > 0) { echo $link . $data["_monitors_alerts_fired_"] . ""; }
" . __("Summary of the status groups") . "" . __("Summary of the status groups") . "
" . __("Agents") . "" . __("Modules") . "
"; echo "". $total_agent_unknown ."%"; echo "". $total_not_init ."%"; - echo ""; + echo ""; echo "". $total_critical ."%"; echo "". $total_warning ."%"; echo "". $total_ok ."%"; @@ -111,7 +118,6 @@ echo '"; echo "
"; - //Groups and tags $result_groups = groupview_get_groups_list($config['id_user'], $strict_user, 'AR', true, true); @@ -148,7 +154,7 @@ if (!empty($result_groups)) { echo "
" . __("Critical") . "" . __("Alert fired") . "