2011-07-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Added support for synthetic modules (enterprise). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4552 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
cfddc7fd86
commit
5d55801043
|
@ -1,3 +1,8 @@
|
|||
2011-07-13 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/PredictionServer.pm: Added support for synthetic
|
||||
modules (enterprise).
|
||||
|
||||
2011-07-08 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/pandora_db.pl: Delete unknown modules after a defined number
|
||||
|
|
|
@ -145,6 +145,13 @@ sub exec_prediction_module ($$$$) {
|
|||
enterprise_hook ('exec_service_module', [$pa_config, $agent_module, $server_id, $dbh]);
|
||||
return;
|
||||
}
|
||||
|
||||
# Synthetic modules
|
||||
if ($agent_module->{'prediction_module'} == 0) {
|
||||
logger ($pa_config, "Executing synthetic module " . $agent_module->{'nombre'}, 10);
|
||||
enterprise_hook ('exec_synthetic_module', [$pa_config, $agent_module, $server_id, $dbh]);
|
||||
return;
|
||||
}
|
||||
|
||||
# Get a full hash for target agent_module record reference ($target_module)
|
||||
my $target_module = get_db_single_row ($dbh, 'SELECT * FROM tagente_modulo WHERE id_agente_modulo = ?', $agent_module->{'prediction_module'});
|
||||
|
|
Loading…
Reference in New Issue