Now, xml_stress with get_and_send_agent_conf enabled puts the

test modules in the remote configuration
This commit is contained in:
fermin831 2015-07-01 13:30:50 +02:00
parent b2af250070
commit 19307d863e
1 changed files with 9 additions and 9 deletions

18
pandora_server/util/pandora_xml_stress.pl Executable file → Normal file
View File

@ -821,17 +821,17 @@ sub get_and_send_agent_conf(\@\%\@\%) {
# Create the block of modules.
foreach my $module (@{$modules}) {
$temp = $temp . "
module_begin
module_name " . $module->{'module_name'} . "
module_type " . $module->{'module_type'} . "
module_exec " . $module->{'module_exec'} . "
module_min " . $module->{'module_min'} . "
module_max " . $module->{'module_max'} . "
module_end
";
module_begin";
while ( my ($key, $value) = each %$module ) {
$temp = $temp . "\n$key $value";
}
$temp = $temp . "
module_end\n";
}
print ($temp);
my $default_conf =
"# General Parameters
# ==================