1 (edited by carlosbmc 2017-02-13 12:04:59)

Topic: [SOLVED] Can't run nmap, nmap detection can't be used

GLPI 9.1.1
fusioninventory-agent_windows-x64_2.3.18->>  Windows 2008R2
WinPcap_4_1_3  installed
nmap-7.31  installed

But when chron launch networkdiscovery then the log shows

[Sat Nov 26 23:24:26 2016][info] FusionInventory Agent starting
[Sat Nov 26 23:26:10 2016][info] sending prolog request to server server0
[Sat Nov 26 23:26:10 2016][info] running task Collect
[Sat Nov 26 23:26:16 2016][info] running task NetDiscovery
[Sat Nov 26 23:26:16 2016][info] Can't run nmap, nmap detection can't be used

Then not discover nothing...

Thank you in advance!

Carlos

Re: [SOLVED] Can't run nmap, nmap detection can't be used

You must add the path of nmap exe in the environemnt PATH variable

Co-leader, official developper
DCS official PARTNER: dcs.glpi@dcsit-group.com

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Hello,

The nmap installation add the path of nmap,exe to the envoirement path variable.  So I can run nmap in Cmd console from any folder.
I have restart the server but i have the error "Can't run nmap, nmap detection can't be used" AGAIN.

Thank you!

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Same error in Windows 7

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Nothing?   
Somebody has made working Fi agent on Windows + nmap???

??

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Fusioninventory is running as user "system" by default. The default environment path variables are not valid for system user, it has its own specific variables which you can set in Registy.

You find the registry value here: HKLM\System\ControlSet002\Control\Session Manager\Environment

just add nmap variable to "PATH" entry

Re: [SOLVED] Can't run nmap, nmap detection can't be used

By the way a reboot of the Maschine is required after adding new path variables I think

Re: [SOLVED] Can't run nmap, nmap detection can't be used

I will try it,

thank you

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Not Working,

same message after add registry value here: HKLM\System\ControlSet002\Control\Session Manager\Environment

just add nmap variable to "PATH" entry

[Wed Feb  1 17:05:11 2017][info] sending prolog request to server server0
[Wed Feb  1 17:05:16 2017][info] running task Inventory
[Wed Feb  1 17:05:35 2017][warning] 'scan-profiles' configuration parameter disabled, ignoring software in user profiles
[Wed Feb  1 17:05:46 2017][info] running task NetInventory
[Wed Feb  1 17:07:16 2017][info] running task ESX
[Wed Feb  1 17:07:17 2017][info] ESX support disabled server side.
[Wed Feb  1 17:07:22 2017][info] running task NetDiscovery
[Wed Feb  1 17:07:22 2017][info] Can't run nmap, nmap detection can't be used

10 (edited by carlosbmc 2017-02-10 12:18:47)

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Working, no nmap error

Thanks!

Re: [SOLVED] Can't run nmap, nmap detection can't be used

The PATH is "C:\Program Files\nmap"?

Re: [SOLVED] Can't run nmap, nmap detection can't be used

Same on OSX sad