scaleway / netbox-netprod-importer

Poll data from network devices in production and import it into netbox
GNU General Public License v3.0
100 stars 31 forks source link

Error when polling device .. : Expecting value: line 3 column 1 (char 2) #26

Open Mark32 opened 4 years ago

Mark32 commented 4 years ago

Hi,

netbox-netprod-importer 0.2.0.2

I'm getting the following when adding a device. It connects to device okay and various output can be seen. I then get the following.

Any suggestions please?

DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.1:80 DEBUG: urllib3.connectionpool: http://192.168.1.1 "GET /dcim/devices/?name=LAB-001&limit=50 HTTP/1.1" 302 0 DEBUG: urllib3.connectionpool: http://192.168.1.1:80 "GET /login/?next=/dcim/devices/%3Fname%3DLAB-001%26limit%3D50 HTTP/1.1" 200 None DEBUG: netmiko: write_channel: b'\n' DEBUG: netmiko: Pattern is: # DEBUG: netmiko: _read_channel_expect read_data:

DEBUG: netmiko: _read_channel_expect read_data: LAB-001# DEBUG: netmiko: Pattern found: # LAB-001# DEBUG: netmiko: exit_config_mode: DEBUG: netmiko: write_channel: b'exit\n' ERROR: netbox_importer: Error when polling device LAB-001: Expecting value: line 3 column 1 (char 2)

Thanks, Mark

VictorPavlushin commented 4 years ago

Have you added this device to netbox in advance?

VictorPavlushin commented 4 years ago

Rather, you just did not configure authorization in netbox: https://netboxnetimporter.readthedocs.io/en/latest/quickstart.html#configuration