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:
ramonn 2011-07-13 12:16:05 +00:00
parent cfddc7fd86
commit 5d55801043
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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'});