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]#