minor fixes/changes DiscoveryServer

Former-commit-id: 8273727109628f99fc86c125c9b6f62a416c07f1
This commit is contained in:
fbsanchez 2019-02-19 10:37:09 +01:00
parent 8ac1642dea
commit 906ba091e1
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ sub PandoraFMS::Recon::Base::create_agent($$) {
if (defined($self->{'autoconfiguration_enabled'}) && $self->{'autoconfiguration_enabled'} == 1) {
my $agent_data = PandoraFMS::DB::get_db_single_row($self->{'dbh'}, 'SELECT * FROM tagente WHERE id_agente = ?', $agent_id);
# Update agent configuration once, after create agent.
enterprise_hook('autoconfigure_agent', [$self->{'pa_config'}, $host_name, $agent_id, $agent_data, $self->{'dbh'}, $agent_id]);
enterprise_hook('autoconfigure_agent', [$self->{'pa_config'}, $host_name, $agent_id, $agent_data, $self->{'dbh'}, 1]);
}
if (defined($self->{'main_event_id'})) {