PalisadoesFoundation / switchmap-ng

A Python 3 inventory system that tabulates the status of network ports.
Apache License 2.0
16 stars 7 forks source link

Not seeing devices in dashboard #124

Open nicdjb opened 3 years ago

nicdjb commented 3 years ago

Dashboard does not show any devices.

Config file: main: log_directory: /var/log/switchmap-ng log_level: info cache_directory: /opt/switchmap-ng/cache agent_subprocesses: 20 bind_port: 7000 listen_address: 0.0.0.0 hostnames:

snmp_groups:

Below is an excerpt from the poller log file - note the PyEval error at the end:

2020-10-26 12:55:35,936 - switchmap_file - INFO - [switchmap] (1071S): Daemon switchmap-ng-poller stopped - PID file: /opt/switchmap-ng/.switchmap/pid/switchmap-ng-poller.pid 2020-10-26 12:55:36,449 - switchmap_file - INFO - [switchmap] (1070S): Daemon switchmap-ng-poller started - PID file: /opt/switchmap-ng/.switchmap/pid/switchmap-ng-poller.pid 2020-10-26 12:55:36,449 - switchmap_file - INFO - [switchmap] (1056S): Starting device polling sequence. 2020-10-26 12:55:38,316 - switchmap_file - INFO - [switchmap] (1078S): Querying topology data from host 192.168.99.104. 2020-10-26 12:55:57,955 - switchmap_file - CRITICAL - [switchmap] (1023E): SystemError: Error occurred during SNMP query on host OID .1.3.6.1.2.1.2.2.1.1 from 192.168.99.104 for context "": [<class 'SystemError'>, PyEval_EvalFrameEx returned a result with an error set, <traceback object at 0x7f6153cdbe88>] 2020-10-26 12:55:58,022 - switchmap_file - INFO - [switchmap] (1078S): Querying topology data from host 192.168.99.113. 2020-10-26 12:56:12,329 - switchmap_file - CRITICAL - [switchmap] (1023E): SystemError: Error occurred during SNMP query on host OID .1.3.6.1.2.1.2.2.1.2 from 192.168.99.113 for context "": [<class 'SystemError'>, PyEval_EvalFrameEx returned a result with an error set, <traceback object at 0x7f61524e7f08>]

If I comment out the all switches but the last one, it then works, however it won't work if I leave the first and comment out the rest. The last switch is a Cisco 3750e, the top two are two stacks of 3750x's. Thanks

palisadoes commented 3 years ago

Please send a complete SNMPwalk for the device. That will help with the troubleshooting of the device. To do this, make the starting OID be "." instead of the usual ".1.3.6.x.y.z"

nicdjb commented 3 years ago

Just to confirm, you want to see a full SNMP walk for one of the switches? This is a stack of 6 x 48 ports. I am capturing the output and the file currently stand at 122128 lines and it still hasn't finished.

nicdjb commented 3 years ago

Output completed, it's 271881 lines (21MB). I'd rather not put the file in a public space, is there somewhere else I can send it?

nicdjb commented 3 years ago

Hello, do you still want this snmpwalk output?

nicdjb commented 3 years ago

Hello, we are still having the issue, do you still want to review the snmpwalk?

dcthor commented 1 year ago

Trying to revive this repo... If you still need this researched, please say so here, otherwise please close the issue.