mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +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;
|
$id_meta = 0;
|
||||||
|
$node_historical_event_enbled = '';
|
||||||
if (is_metaconsole() === true && empty($content['server_name']) === false) {
|
if (is_metaconsole() === true && empty($content['server_name']) === false) {
|
||||||
$id_meta = metaconsole_get_id_server($content['server_name']);
|
$id_meta = metaconsole_get_id_server($content['server_name']);
|
||||||
$server = metaconsole_get_connection_by_id($id_meta);
|
$server = metaconsole_get_connection_by_id($id_meta);
|
||||||
metaconsole_connect($server);
|
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;
|
$history = false;
|
||||||
if ($config['history_event_enabled']) {
|
if ($config['history_event_enabled'] || $node_historical_event_enbled) {
|
||||||
$history = true;
|
$history = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user