Deleted agent version update. Ticket #212
This commit is contained in:
parent
f9c56237fd
commit
b5438effbc
|
@ -553,7 +553,7 @@ sub exec_network_module ($$$$) {
|
|||
}
|
||||
|
||||
# Update agent last contact using Pandora version as agent version
|
||||
pandora_update_agent ($pa_config, $timestamp, $id_agente, $agent_os_version, $pa_config->{'version'}, -1, $dbh);
|
||||
pandora_update_agent ($pa_config, $timestamp, $id_agente, undef, undef, -1, $dbh);
|
||||
|
||||
} else {
|
||||
# Modules who cannot connect or something go bad, update last_execution_try field
|
||||
|
|
|
@ -314,7 +314,7 @@ sub data_consumer ($$) {
|
|||
$agent_os_version = $pa_config->{'servername'}.'_Plugin';
|
||||
}
|
||||
|
||||
pandora_update_agent ($pa_config, $timestamp, $module->{'id_agente'}, $agent_os_version, $pa_config->{'version'}, -1, $dbh);
|
||||
pandora_update_agent ($pa_config, $timestamp, $module->{'id_agente'}, undef, undef, -1, $dbh);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -323,7 +323,7 @@ sub exec_prediction_module ($$$$) {
|
|||
$agent_os_version = $pa_config->{'servername'}.'_Prediction';
|
||||
}
|
||||
|
||||
pandora_update_agent ($pa_config, $timestamp, $agent_module->{'id_agente'}, $agent_os_version, $pa_config->{'version'}, -1, $dbh);
|
||||
pandora_update_agent ($pa_config, $timestamp, $agent_module->{'id_agente'}, undef, undef, -1, $dbh);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -222,7 +222,7 @@ sub data_consumer ($$) {
|
|||
$agent_os_version = $pa_config->{'servername'}.'_WMI';
|
||||
}
|
||||
|
||||
pandora_update_agent ($pa_config, $timestamp, $module->{'id_agente'}, $agent_os_version, $pa_config->{'version'}, -1, $dbh);
|
||||
pandora_update_agent ($pa_config, $timestamp, $module->{'id_agente'}, undef, undef, -1, $dbh);
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -189,7 +189,7 @@ sub process_module($$$$$){
|
|||
$data_object{"data"} = $valor;
|
||||
|
||||
pandora_process_module ($pa_config, \%data_object, $agent, $module, '', $timestamp, $utimestamp, 1, $dbh, "");
|
||||
pandora_update_agent($pa_config, $timestamp, $target_agent, $pa_config->{'servername'}.'_Data', $pa_config->{'version'}, -1, $dbh);
|
||||
pandora_update_agent($pa_config, $timestamp, $target_agent, undef, undef, -1, $dbh);
|
||||
|
||||
$modules_processed++;
|
||||
$modules_processed_total++;
|
||||
|
|
Loading…
Reference in New Issue