Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 26, 2019 4:14 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: MacTrack issue within find_scanning_function
PostPosted: Tue Feb 26, 2019 12:15 pm 
Offline

Joined: Tue Oct 04, 2011 12:54 pm
Posts: 2
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


Top
 Profile  
 
 Post subject: Re: MacTrack issue within find_scanning_function
PostPosted: Tue Feb 26, 2019 3:27 pm 
Offline
Cacti Guru User

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

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group