mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
wip reports alert actions
This commit is contained in:
parent
9b79fb826d
commit
751cb7380b
@ -2691,15 +2691,6 @@ function reporting_alert_report_actions($report, $content)
|
|||||||
if (isset($report['id_template']) === true
|
if (isset($report['id_template']) === true
|
||||||
&& empty($resport['id_template']) === false
|
&& empty($resport['id_template']) === false
|
||||||
) {
|
) {
|
||||||
$modules = json_decode(
|
|
||||||
io_safe_output(base64_decode($es['module'])),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
$agents = json_decode(
|
|
||||||
io_safe_output(base64_decode($es['id_agents'])),
|
|
||||||
true
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
$server_id = metaconsole_get_id_server($content['server_name']);
|
$server_id = metaconsole_get_id_server($content['server_name']);
|
||||||
$modules = [$server_id.'|'.$content['id_agent_module']];
|
$modules = [$server_id.'|'.$content['id_agent_module']];
|
||||||
@ -2708,6 +2699,15 @@ function reporting_alert_report_actions($report, $content)
|
|||||||
$modules = [$content['id_agent_module']];
|
$modules = [$content['id_agent_module']];
|
||||||
$agents = [$content['id_agent']];
|
$agents = [$content['id_agent']];
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$modules = json_decode(
|
||||||
|
io_safe_output(base64_decode($es['module'])),
|
||||||
|
true
|
||||||
|
);
|
||||||
|
$agents = json_decode(
|
||||||
|
io_safe_output(base64_decode($es['id_agents'])),
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$period = $content['period'];
|
$period = $content['period'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user