fixed errors with graphs in meta

This commit is contained in:
marcos.alconada 2019-07-10 14:18:23 +02:00
parent f864573486
commit 6382cb2abe
1 changed files with 4 additions and 13 deletions

View File

@ -25,13 +25,17 @@
* GNU General Public License for more details.
* ============================================================================
*/
global $config;
require_once $config['homedir'].'/include/functions_ui.php';
require_once $config['homedir'].'/include/functions_tags.php';
require_once $config['homedir'].'/include/functions.php';
require_once $config['homedir'].'/include/functions_reporting.php';
enterprise_include_once('include/functions_metaconsole.php');
enterprise_include_once('meta/include/functions_events_meta.php');
enterprise_include_once('meta/include/functions_agents_meta.php');
enterprise_include_once('meta/include/functions_modules_meta.php');
enterprise_include_once('meta/include/functions_events_meta.php');
/**
@ -4848,10 +4852,6 @@ function events_get_count_events_by_agent(
$tagente = 'tagente';
$tevento = 'tevento';
if ($dbmeta) {
$tagente = 'tmetaconsole_agent';
$tevento = 'tmetaconsole_event';
}
$sql = sprintf(
'SELECT id_agente,
@ -5028,9 +5028,6 @@ function events_get_count_events_validated_by_user(
}
$tevento = 'tevento';
if ($dbmeta) {
$tevento = 'tmetaconsole_event';
}
$sql = sprintf(
'SELECT id_usuario,
@ -5206,9 +5203,6 @@ function events_get_count_events_by_criticity(
}
$tevento = 'tevento';
if ($dbmeta) {
$tevento = 'tmetaconsole_event';
}
$sql = sprintf(
'SELECT criticity,
@ -5414,9 +5408,6 @@ function events_get_count_events_validated(
}
$tevento = 'tevento';
if ($dbmeta) {
$tevento = 'tmetaconsole_event';
}
$sql = sprintf('SELECT estado, COUNT(*) AS count FROM %s WHERE %s %s GROUP BY estado', $tevento, $sql_filter, $sql_where);