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:
Ramon Novoa 2010-04-14 17:39:23 +00:00
parent b38ab821f2
commit 17201a849d
2 changed files with 12 additions and 0 deletions

View File

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

View File

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