2012-12-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_reporting.php: Added agent statistics for 
	batch statistic branch in function reporting_get_group_stats. 
	 operation/agentes/status_monitor.php: Cleaned code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7221 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-12-03 13:23:30 +00:00
parent 36111a928e
commit 28659d81b4
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-12-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* 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 <rnovoa@artica.es> 2012-12-03 Ramon Novoa <rnovoa@artica.es>
* operation/tree.php: Fixed the icon of the last element of a sub-tree. * operation/tree.php: Fixed the icon of the last element of a sub-tree.

View File

@ -940,6 +940,19 @@ function reporting_get_group_stats ($id_group = 0) {
$data["total_agents"] += $group_stat[0]["agents"]; $data["total_agents"] += $group_stat[0]["agents"];
$data["agents_unknown"] += $group_stat[0]["agents_unknown"]; $data["agents_unknown"] += $group_stat[0]["agents_unknown"];
$data["utimestamp"] = $group_stat[0]["utimestamp"]; $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);
} }
// ------------------------------------------------------------------- // -------------------------------------------------------------------

View File

@ -166,7 +166,9 @@ $modules = array();
$tags = array(); $tags = array();
$rows_select = array(); $rows_select = array();
$rows_temp_processed = array(); $rows_temp_processed = array();
$groups_select[0] = __('All'); $groups_select = array();
if ($flag_is_admin)
$groups_select[0] = __('All');
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {