diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php
index 7edcb5cfc7..0f7f2168fa 100644
--- a/pandora_console/include/functions_reporting.php
+++ b/pandora_console/include/functions_reporting.php
@@ -959,39 +959,8 @@ function reporting_get_stats_alerts($data, $links = false) {
}
}
- $table_agent = html_get_predefined_table();
-
- $agent_data = array();
- $agent_data[0] = html_print_image('images/agent_critical.png', true, array('title' => __('Agents critical')));
- $agent_data[1] = "";
- $agent_data[1] .= format_numeric($data["agent_critical"]) <= 0 ? '-' : format_numeric($data['agent_critical']);
- $agent_data[1] .= "";
-
- $agent_data[2] = html_print_image('images/agent_warning.png', true, array('title' => __('Agents warning')));
- $agent_data[3] = "";
- $agent_data[3] .= $data["agent_warning"] <= 0 ? '-' : format_numeric($data['agent_warning']);
- $agent_data[3] .= "";
-
- $table_agent->data[] = $agent_data;
-
- $agent_data = array();
- $agent_data[0] = html_print_image('images/agent_ok.png', true, array('title' => __('Agents ok')));
- $agent_data[1] = "";
- $agent_data[1] .= $data["agent_ok"] <= 0 ? '-' : format_numeric($data['agent_ok']);
- $agent_data[1] .= "";
-
- $agent_data[2] = html_print_image('images/agent_unknown.png', true, array('title' => __('Agents unknown')));
- $agent_data[3] = "";
- $agent_data[3] .= $data["agent_unknown"] <= 0 ? '-' : format_numeric($data['agent_unknown']);
- $agent_data[3] .= "";
-
- $table_agent->data[] = $agent_data;
-
- $agent_data = array();
- $agent_data[0] = html_print_image('images/agent_notinit.png', true, array('title' => __('Agents not init')));
- $agent_data[1] = "";
- $agent_data[1] .= $data["agent_not_init"] <= 0 ? '-' : format_numeric($data['agent_not_init']);
- $agent_data[1] .= "";
+ // Alerts table
+ $table_al = html_get_predefined_table();
$tdata = array();
$tdata[0] = html_print_image('images/bell.png', true, array('title' => __('Defined alerts')));
@@ -1004,14 +973,13 @@ function reporting_get_stats_alerts($data, $links = false) {
$table_al->rowclass[] = '';
$table_al->data[] = $tdata;
- if (!defined('METACONSOLE')) {
+ if(!defined('METACONSOLE')){
$output = '
';
- }
- else {
+ }else{
$table_al->class = "tactical_view";
$table_al->style = array();
$output = '';
}
-
return $output;
}
@@ -1178,24 +1140,6 @@ function reporting_get_stats_agents_monitors($data) {
function reporting_get_stats_users($data) {
global $config;
- include_once ('../../include/graphs/functions_gd.php');
- $max_value = count($events);
-
- $ttl = 1;
- $urlImage = ui_get_full_url(false, true, false, false);
-
- $colors = array(
- EVENT_CRIT_MAINTENANCE => COL_MAINTENANCE,
- EVENT_CRIT_INFORMATIONAL => COL_INFORMATIONAL,
- EVENT_CRIT_NORMAL => COL_NORMAL,
- EVENT_CRIT_MINOR => COL_MINOR,
- EVENT_CRIT_WARNING => COL_WARNING,
- EVENT_CRIT_MAJOR => COL_MAJOR,
- EVENT_CRIT_CRITICAL => COL_CRITICAL
- );
-
- foreach ($events as $data) {
-
// Link URLS
$urls = array();
if (check_acl ($config['id_user'], 0, "UM")) {