diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index 162d1f4c18..f91399a090 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,7 @@ +2012-02-23 Ramon Novoa + + * pandora_agent: Set the intensive interval before reading modules. + 2012-02-10 Hirofumi Kosaka * pandora_agent: Allow filename wildcards to specify diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index f2539ba3cc..f68e52bf8f 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -585,6 +585,11 @@ sub read_config (;$) { # Single value token not found. return undef; } + + # Set the intensive interval + if ($Conf{'intensive_interval'} == 0) { + $Conf{'intensive_interval'} = $Conf{'interval'}; + } # Module, plugin and collection definitions parse_conf_modules(\@file); @@ -608,11 +613,6 @@ sub read_config (;$) { $Conf{'secondary_server_opts'} = '-x \'' . $Conf{'secondary_server_pwd'} . '\' ' . $Conf{'secondary_server_opts'} if ($Conf{'secondary_server_pwd'} ne ''); $Conf{'secondary_server_opts'} = '-c ' . $Conf{'secondary_server_opts'} if ($Conf{'secondary_server_ssl'} eq 'yes'); } - - # Set the intensive interval - if ($Conf{'intensive_interval'} == 0) { - $Conf{'intensive_interval'} = $Conf{'interval'}; - } } #################################################################################