MacTrack issue within find_scanning_function

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

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

MacTrack issue within find_scanning_function

Post by mtownsend0773 »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: MacTrack issue within find_scanning_function

Post by netniV »

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.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests