MacTrack issue within find_scanning_function

Support questions about the MAC Track plugin

Moderators: Moderators, Developers

Post Reply
Author
Message
mtownsend0773
Posts: 2
Joined: Tue Oct 04, 2011 12:54 pm

MacTrack issue within find_scanning_function

#1 Post by mtownsend0773 » Tue Feb 26, 2019 12:15 pm

I believe I have discovered a programming issues within the find_scanning_function in mactrack_functions.php at line 302. The original line reads as follows:

if (substr_count($device['sysDescr_match'],$part) > 0) {

The corrected line is as follows:

if (substr_count($device['snmp_sysDescr'], $part) > 0) {

The issues is "sysDescr_match" is not an field within the device table in SQL and the compare of each $part should be done against the snmp_sysDescr string.

Thanks
mtownsend0773

netniV
Cacti Guru User
Posts: 2670
Joined: Sun Aug 27, 2017 12:05 am

Re: MacTrack issue within find_scanning_function

#2 Post by netniV » Tue Feb 26, 2019 3:27 pm

sysDescr_match is on the device types table.

So either the wrong object is being used or the wrong name. Best to open that as an issue on GitHub if you can.

Post Reply