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:
parent
36111a928e
commit
28659d81b4
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
|
@ -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')) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue