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
MacTrack issue within find_scanning_function
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Tue Oct 04, 2011 12:54 pm
MacTrack issue within find_scanning_function
mtownsend0773
Re: MacTrack issue within find_scanning_function
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.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 2 guests