Agent deployment with candidate scan

This commit is contained in:
fbsanchez 2019-07-26 21:47:11 +02:00
parent 6ac21acd39
commit d504532d82
1 changed files with 3 additions and 2 deletions

View File

@ -354,9 +354,10 @@ sub PandoraFMS::Recon::Base::guess_os($$) {
# Use xprobe2 if available
if (-e $self->{pa_config}->{xprobe2}) {
my $output = `"$self->{pa_config}->{xprobe2}" $device 2>$DEVNULL | grep 'Running OS' | head -1`;
return OS_OTHER if ($? != 0);
my $output = `"$self->{pa_config}->{xprobe2}" $device 2>$DEVNULL | grep 'Running OS' | head -1`;
if ($? == 0) {
return pandora_get_os($self->{'dbh'}, $output);
}
}
# Use nmap by default