Cacti / plugin_mactrack

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

MAC address not populating for Juniper EX switches #159

Closed DaveNet4300 closed 3 years ago

DaveNet4300 commented 3 years ago

Describe the bug A clear and concise description of what the bug is. MAC addresses are not populating for Juniper EX switch using get_JEX_switch_Ports may be due to this errors loged.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php[168]:get_JEX_switch_ports(), /plugins/mactrack/lib/mactrack_juniper.php[100]:CactiErrorHandler()) ERROR PHP NOTICE in Plugin 'mactrack': Undefined index: in file: /usr/share/cacti/plugins/mactrack/lib/mactrack_juniper.php on line: 100 CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php[168]:get_JEX_switch_ports(), /plugins/mactrack/lib/mactrack_juniper.php[99]:CactiErrorHandler()) ERROR PHP NOTICE in Plugin 'mactrack': Undefined index: in file: /usr/share/cacti/plugins/mactrack/lib/mactrack_juniper.php on line: 99 CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php[168]:get_JEX_switch_ports(), /plugins/mactrack/lib/mactrack_juniper.php[98]:CactiErrorHandler()) ERROR PHP NOTICE in Plugin 'mactrack': Undefined offset: 591 in file: /usr/share/cacti/plugins/mactrack/lib/mactrack_juniper.php on line: 98 CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php[168]:get_JEX_switch_ports(), /plugins/mactrack/lib/mactrack_juniper.php[100]:CactiErrorHandler()) ERROR PHP NOTICE in Plugin 'mactrack': Undefined index: in file: /usr/share/cacti/plugins/mactrack/lib/mactrack_juniper.php on line: 100

Expected behavior A clear and concise description of what you expected to happen. Mac addresses populated in tab DeviceTracking->Devices or DeviceTracking->MAC address Screenshots If applicable, add screenshots to help explain your problem. image image

Plugin (please complete the following information):

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here. Thank you

DaveNet4300 commented 3 years ago

Duplicated issue due to browser issue at submit. Closing this one.