Anybody have any success with netbox-scanner?

639 views
Skip to first unread message

ma...@oldhamuk.com

unread,
Aug 28, 2020, 7:24:10 AM8/28/20
to NetBox
Hi,

I'm working through getting everything in place so we can migrate our IPAM solution to Netbox and having now sorted permissions I was hoping to get netbox-scanner working before doing our migration.

I'm not to bothered if the scanner is unable to collect information such as hostname but if it finds an IP that is responding and isn't in the system for it to add it and tag is with a tag so we know its been detected and then it can be looked into.  We are currently use SolarWinds which is doing something similar. IPAM is the only item left in our SolarWinds estate having migrated everything else.

So I've followed the instructions on GitHub and have it install and tweek the config file with the netbox address, API and addresses to scan however the nmap-scan.sh isn't working. The error I'm getting is below, I have manage to work through some of the errors I was getting but now I'm stuck. Netbox is new to us and I'll be honest coding is something I've never really tried to do, as a network and security engineer I'm now well out of my depth and was hoping for some help.


[root@netbox-dev netbox-scanner-master]# sh nmap-scan.sh
nmap-scan.sh: line 19: NETWORKS: command not found
Traceback (most recent call last):
  File "netbox-scanner.py", line 5, in <module>
    from ConfigParser import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
tar: *.xml: Cannot stat: No such file or directory
tar (child): Cannot connect to nmap-28.08.20T12: resolve failed
tar: Child returned status 128
tar: Error is not recoverable: exiting now
[root@netbox-dev netbox-scanner-master]# vi netbox-scanner.py
[root@netbox-dev netbox-scanner-master]# sh nmap-scan.sh
nmap-scan.sh: line 19: NETWORKS: command not found
Traceback (most recent call last):
  File "netbox-scanner.py", line 66, in <module>
    cmd_nmap(scanner)
  File "netbox-scanner.py", line 52, in cmd_nmap
    h.run()
  File "/marktmp/install/netbox-scanner/netbox-scanner-master/nbs/nmap.py", line 13, in run
    for f in os.listdir(self.path):
FileNotFoundError: [Errno 2] No such file or directory: 'samples/nmap'
tar: *.xml: Cannot stat: No such file or directory
tar (child): Cannot connect to nmap-28.08.20T12: resolve failed
tar: Child returned status 128
tar: Error is not recoverable: exiting now
[root@netbox-dev netbox-scanner-master]#
[root@netbox-dev netbox-scanner-master]#


ma...@oldhamuk.com

unread,
Aug 28, 2020, 7:25:30 AM8/28/20
to NetBox
Just to note we are using v2.9.1 of Netbox.

Thanks

Brian Candler

unread,
Aug 28, 2020, 2:40:11 PM8/28/20
to NetBox
Tags have changed in Netbox 2.9; but the backtrace looks like a completely different problem.

Anyway this is a problem with netbox-scanner, so you should raise it with them.  This isn't part of Netbox.

ma...@oldhamuk.com

unread,
Sep 2, 2020, 5:18:39 AM9/2/20
to NetBox
Thanks Brian,

I understand its not part of Netbox but thought somebody using Netbox and netbox-scanner together maybe a member of the group and able to help.

Thanks anyway.

Mark.
Reply all
Reply to author
Forward
0 new messages