mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch 'ent-11125-pandora-security-monitoring-vulnerability-scanner' into ent-11126-vulnerability-scanner-interface
This commit is contained in:
commit
e4b4e6ba9c
@ -7932,14 +7932,18 @@ sub process_inventory_module_data ($$$$$$$$) {
|
|||||||
'INSERT INTO tagente_datos_inventory (id_agent_module_inventory, data, timestamp, utimestamp)
|
'INSERT INTO tagente_datos_inventory (id_agent_module_inventory, data, timestamp, utimestamp)
|
||||||
VALUES (?, ?, ?, ?)',
|
VALUES (?, ?, ?, ?)',
|
||||||
$id_agent_module_inventory, safe_input($data), $timestamp, $utimestamp);
|
$id_agent_module_inventory, safe_input($data), $timestamp, $utimestamp);
|
||||||
|
} else {
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
process_inventory_module_diff($pa_config, safe_input($data),
|
process_inventory_module_diff($pa_config, safe_input($data),
|
||||||
$inventory_module, $timestamp, $utimestamp, $dbh, $interval);
|
$inventory_module, $timestamp, $utimestamp, $dbh, $interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Vulnerability scan.
|
||||||
|
my $vulnerability_data = enterprise_hook('process_inventory_vulnerabilities', [$pa_config, $agent->{'os_version'}, $data, $inventory_module, $dbh]);
|
||||||
|
if (defined($vulnerability_data) && $vulnerability_data ne '') {
|
||||||
|
process_inventory_module_data ($pa_config, $vulnerability_data, $server_id, $agent_name, 'Vulnerabilities', $interval, $timestamp, $dbh);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Searching differences between incoming module and stored module,
|
# Searching differences between incoming module and stored module,
|
||||||
# creating/updating module and event
|
# creating/updating module and event
|
||||||
|
Loading…
x
Reference in New Issue
Block a user