diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 657d31c311..e54c40a319 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-12-03 Juan Manuel Ramon + + * include/functions_reporting.php: Added agent statistics for + batch statistic branch in function reporting_get_group_stats. + operation/agentes/status_monitor.php: Cleaned code. + 2012-12-03 Ramon Novoa * operation/tree.php: Fixed the icon of the last element of a sub-tree. diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 761e94420f..319da7c9ff 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -940,6 +940,19 @@ function reporting_get_group_stats ($id_group = 0) { $data["total_agents"] += $group_stat[0]["agents"]; $data["agents_unknown"] += $group_stat[0]["agents_unknown"]; $data["utimestamp"] = $group_stat[0]["utimestamp"]; + + // This fields are not in database + // Get Agents OK + $data["agent_ok"] += groups_agent_ok($group); + // Get Agents Warning + $data["agent_warning"] += groups_agent_warning($group); + // Get Agents Critical + $data["agent_critical"] += groups_agent_critical($group); + // Get Agents Unknown + $data["agent_unknown"] += groups_agent_unknown($group); + // Get Agents Not init + $data["agent_not_init"] += groups_agent_not_init($group); + } // ------------------------------------------------------------------- diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 41e02a66d7..f9b19a2c45 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -166,7 +166,9 @@ $modules = array(); $tags = array(); $rows_select = array(); $rows_temp_processed = array(); -$groups_select[0] = __('All'); +$groups_select = array(); +if ($flag_is_admin) + $groups_select[0] = __('All'); if (defined('METACONSOLE')) {