This commit is contained in:
fbsanchez 2020-05-13 17:06:18 +02:00
parent ee51814650
commit 206970d143
1 changed files with 7 additions and 4 deletions

View File

@ -553,9 +553,12 @@ sub PandoraFMS::Recon::Base::test_module($$) {
my $target_os;
if ($test->{'custom_string_2'} =~ /inherited/i) {
$target_os = $self->{'os_cache'}{$test->{'ip_target'}};
$target_os = pandora_get_os(
$self->{'dbh'},
$self->{'os_cache'}{$test->{'ip_target'}}
);
} else {
$target_os = $test->{'custom_string_2'};
$target_os = pandora_get_os($self->{'dbh'}, $test->{'custom_string_2'});
}
$value = enterprise_hook(
@ -571,8 +574,8 @@ sub PandoraFMS::Recon::Base::test_module($$) {
$target_os,
# ip_target,
$test->{'ip_target'},
# tcp_send
$test->{'tcp_send'}
# tcp_port
$test->{'tcp_port'}
]
);