lopes / netbox-scanner

A scanner util for NetBox
MIT License
159 stars 40 forks source link

netbox-scanner.py creates IP Addresses, does not show up in Netbox #30

Closed vlad-trofimov closed 3 years ago

vlad-trofimov commented 3 years ago

First time posting, so take it easy on me ;)

I've gotten pretty far in the setup of netbox-scanner, but am running into an issue on the last mile. Running 'netbox-scanner.py nmap' will successfully log that the records are being created from the .xml files in my defined scans folder:

created: 10.110.38.91/32 "unknown_hostname"
created: 10.110.38.100/32 "doesn't matter"
created: 10.110.50.2/32 "unknown_hostname"
created: 10.110.50.6/32 "doesn't matter"
created: 10.110.50.10/32 "unknown_hostname"
created: 10.110.50.12/32 "doesn't matter"

When looking at the NetBox web interface, I see no updates. I double check the DB and can see there are no updates there either. I know my host and token defined in my .conf are valid since if I play around with that, I get errors. I tried to read through the init.py file in the nbs folder for clues on where this could be failing, but am not having much luck :(. Hopefully it's something stupid - any insight would be appreciated.

I am running the latest version of Netbox, v2.11.4

vlad-trofimov commented 3 years ago

Solved! It seems like you need TLS verify enabled for the API calls to work....it's always SSL god damnit.