den-it / ntmap

Network topology map using Netbox as a data source
MIT License
146 stars 14 forks source link

ntmap with Netbox 3.0.8 #10

Open github6043 opened 2 years ago

github6043 commented 2 years ago

Hi all, I just installed Netbox 3.0.8 and ntmap on the same Ubuntu 20.04 Host. Netbox works fine, opening ntmap works also fine, I'm able to add groups and maps. A soon as I open a map, I see Loading ... but get no map displayed. Any help would be appreciated. cheer .. juerg

image

github6043 commented 2 years ago

The configuration.py looks like

PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:

https://docs.djangoproject.com/en/stable/ref/settings/#databases

DATABASE = { 'NAME': 'netbox', # Database name 'USER': 'netbox', # PostgreSQL username 'PASSWORD': '!7p........M%', # PostgreSQL password 'HOST': 'localhost', # Database server 'PORT': '', # Database port (leave blank for default) 'CONN_MAX_AGE': 300, # Max database connection age

The ntmap, settings.ini looks like

db = dbname='ntmap' user='ntmap' host='localhost' password='ntmap' max_objects_at_one_level = 100

[netbox] db = dbname='netbox' user='netbox' host='localhost' password='!7p..........M%'

den-it commented 2 years ago

Try to access API manually in your browser: http://localhost/data/l1map?id=1 Do you see any errors?

The response should look similar to this:

{
    "result": "success",
    "results": {
        "interfaces": {
            "dc1-blfsw01": [
                {
                    "description": "",
                    "device": "dc1-blfsw01",
                    "mgmt_only": true,
                    "name": "c0",
                    "neighbor_class": "devices",
                    "neighbor_interface_mgmt_only": null,
                    "neighbor_interface_speed": -1.0,
                    "neighbor_interface_type": null,
                    "netbox_id": 1411,
                    "speed": 1.0,
                    "type": "1000base-t"
                },
...
den-it commented 2 years ago

Also, please ensure that you use latest Ntmap release. Currently - v0.8.0