Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] A critical error occurred while scanning the network, stopping #9

Open
HAlover99 opened this issue May 13, 2022 · 2 comments
Open

Comments

@HAlover99
Copy link

Hi Drygdryg,

I'm tried to use your script to discovery my network device without luck.
Could you help me?

2022-05-13 15:06:20,393 {/opt/netbox/scripts/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:61} [DEBUG] vCenter IP addresses to exclude from scan: []
2022-05-13 15:06:20,415 {/opt/netbox/scripts/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:87} [INFO] Network scanning started
2022-05-13 15:06:20,416 {/opt/netbox/scripts/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:88} [DEBUG] Scan targets: ['172.16.232.0/24']
2022-05-13 15:06:20,416 {/opt/netbox/scripts/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:89} [DEBUG] Nmap arguments: ['-sS', '-O', '--osscan-guess', '-T4', '-n']
2022-05-13 15:08:04,016 {/opt/netbox/scripts/netbox-device-autodiscovery/modules/nmap_network_scanner/nmap_network_scanner.py:67} [ERROR] A critical error occurred while scanning the network, stopping
2022-05-13 15:08:04,017 {run.py:223} [WARNING] Execution of the module "nmap_network_scanner" yielded no results
2022-05-13 15:08:04,017 {run.py:236} [INFO] Initialized deletion of orphaned NetBox objects
2022-05-13 15:08:04,039 {run.py:239} [INFO] Initiated deletion of ip_addresses objects from NetBox
2022-05-13 15:08:04,070 {run.py:251} [INFO] Finished deletion of ip_addresses objects from NetBox
2022-05-13 15:08:04,070 {run.py:239} [INFO] Initiated deletion of interfaces objects from NetBox
2022-05-13 15:08:04,118 {run.py:251} [INFO] Finished deletion of interfaces objects from NetBox
2022-05-13 15:08:04,118 {run.py:239} [INFO] Initiated deletion of devices objects from NetBox
2022-05-13 15:08:04,205 {run.py:251} [INFO] Finished deletion of devices objects from NetBox
2022-05-13 15:08:04,205 {run.py:239} [INFO] Initiated deletion of device_types objects from NetBox
2022-05-13 15:08:04,234 {run.py:251} [INFO] Finished deletion of device_types objects from NetBox
2022-05-13 15:08:04,234 {run.py:253} [INFO] Setting primary IP addresses for devices…

Thanks in advanced
@drygdryg
Copy link
Owner

First, make sure that you run the script as root. Try running nmap with the specified arguments manually:

sudo nmap -sS -O --osscan-guess -T4 -n 172.16.232.0/24

@aurochsen
Copy link

I am getting the same error. I tried running the command manually and it worked fine directly in nmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants