mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Agent deployment with candidate scan
This commit is contained in:
parent
6ac21acd39
commit
d504532d82
@ -355,9 +355,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);
|
||||
if ($? == 0) {
|
||||
return pandora_get_os($self->{'dbh'}, $output);
|
||||
}
|
||||
}
|
||||
|
||||
# Use nmap by default
|
||||
if (-e $self->{pa_config}->{nmap}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user