2010-04-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Added support for service modules (Enterprise) git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2566 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b38ab821f2
commit
17201a849d
|
@ -1,3 +1,8 @@
|
|||
2010-04-14 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/PredictionServer.pm: Added support for service
|
||||
modules (Enterprise).
|
||||
|
||||
2010-04-05 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* lib/PandoraFMS/ReconServer.pm: Trying to fix the problem detected
|
||||
|
|
|
@ -136,6 +136,13 @@ sub exec_prediction_module ($$$$) {
|
|||
my $agent_module = get_db_single_row ($dbh, 'SELECT * FROM tagente_modulo WHERE id_agente_modulo = ?', $id_am);
|
||||
return unless defined $agent_module;
|
||||
|
||||
# Service modules
|
||||
if ($agent_module->{'custom_integer_1'} != 0) {
|
||||
logger ($pa_config, "Executing service module " . $agent_module->{'nombre'}, 10);
|
||||
enterprise_hook ('exec_service_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'});
|
||||
return unless defined $target_module;
|
||||
|
|
Loading…
Reference in New Issue