2011-07-14 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/PredictionServer.pm: Use prediction_module to tell
	  prediction modules apart instead of prediction_module/custom_integer_1
	  combinations.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4562 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2011-07-14 09:52:48 +00:00
parent e5c56707d0
commit 43f6877b56
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-07-14 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Use prediction_module to tell
prediction modules apart instead of prediction_module/custom_integer_1
combinations.
2011-07-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/PredictionServer.pm: Added support for synthetic

View File

@ -140,14 +140,14 @@ sub exec_prediction_module ($$$$) {
return unless defined $agent_module;
# Service modules
if ($agent_module->{'custom_integer_1'} != 0) {
if ($agent_module->{'prediction_module'} == 2) {
logger ($pa_config, "Executing service module " . $agent_module->{'nombre'}, 10);
enterprise_hook ('exec_service_module', [$pa_config, $agent_module, $server_id, $dbh]);
return;
}
# Synthetic modules
if ($agent_module->{'prediction_module'} == 0) {
if ($agent_module->{'prediction_module'} == 3) {
logger ($pa_config, "Executing synthetic module " . $agent_module->{'nombre'}, 10);
enterprise_hook ('exec_synthetic_module', [$pa_config, $agent_module, $server_id, $dbh]);
return;