mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Metaconsole shows historical events on reports
This commit is contained in:
parent
1c6508947a
commit
a00bcc35c4
@ -1845,14 +1845,25 @@ function reporting_event_report_group(
|
||||
}
|
||||
|
||||
$id_meta = 0;
|
||||
$node_historical_event_enbled = '';
|
||||
if (is_metaconsole() === true && empty($content['server_name']) === false) {
|
||||
$id_meta = metaconsole_get_id_server($content['server_name']);
|
||||
$server = metaconsole_get_connection_by_id($id_meta);
|
||||
metaconsole_connect($server);
|
||||
|
||||
// Check if node historical event is enable.
|
||||
$sql = sprintf(
|
||||
'SELECT value
|
||||
FROM tconfig
|
||||
WHERE token LIKE "history_event_enabled"'
|
||||
);
|
||||
|
||||
$result = db_get_row_sql($sql);
|
||||
$node_historical_event_enbled = $result['value'];
|
||||
}
|
||||
|
||||
$history = false;
|
||||
if ($config['history_event_enabled']) {
|
||||
if ($config['history_event_enabled'] || $node_historical_event_enbled) {
|
||||
$history = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user