Cacti / plugin_mactrack

Mactrack Plugin for Cacti
GNU General Public License v2.0
12 stars 24 forks source link

Port numbers all showing as 0 in 'MAC Address' tab #164

Closed jaxson5 closed 2 years ago

jaxson5 commented 3 years ago

Describe the bug Port numbers all showing as 0 in 'MAC Address' tab rather than the actual port number the mac address is associated with

To Reproduce Steps to reproduce the behavior: WIth mactrack plugin installed and a device scanned:

  1. click on the MAC Address tab image

  2. check the 'Port Number' column image

  3. mine are all 0's

Expected behavior The port numbers should be shown. In this case for example: Gi0/1

Plugin (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I've done a quick check of the mysql values it is trying to grab (port_number). These are all 0 in mac_track_ports so I assume it's looking at the wrong place for those values.

jaxson5 commented 2 years ago

I ended up wiping the mactrack tables and doing a complete reinstall of mactrack. This fixed the issue.