MACTrack & Foundry [FLS648 POE's and SuperX's]

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

MACTrack & Foundry [FLS648 POE's and SuperX's]

Post by jgilmour »

Has anyone got these two models to work? FLS648 / SuperX?
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

Actually, they work, its just that everything is the same port number! haha.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Dump your agents content to a text file and post it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

I'm having an issue trying to get the 'ports to ignore' feature to work for the device. This is for a foundry superX. If I look at the mactrack tab, I see the port name listed as 'ethernet8/2', but within the debug output when running the command php mactrack_scanner.php -id=1 -d, I see output such as

Code: Select all

DEBUG: SQL: REPLACE INTO mac_track_ips (site_id,device_id,hostname,device_name,port_number,mac_address,ip_address,scan_date) VALUES ('1','1','192.20.0.1','superx','449','00:19:B9:E0:CE:90','192.20.0.99','2009-11-03 12:34:42')
which shows port "499"... I'm wondering how I would find out what is being considered the 'port name' so I could add this to the ignore list. (is there a snmpwalk that can be run?)

Thanks!
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

Think i figured out why, it's using mactrack_foundry.php as the scanning function which has no ignore code in it... I'll see if I can whip something up with my lack of php knowledge :)
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

I was able to get this working with a couple additions, although the 'ports to ignore' aren't elegant as I'd like. Instead of ethernet5/8 or whatever, I am doing '446' or '553' or whatever...

just did the following:

Code: Select all

[root@rtfg-base lib]# diff mactrack_foundry.php mactrack_foundry.php.old
66,68d65
<
<       /* get the ignore ports list from device */
<       $ignore_ports = port_list_to_array($device["ignorePorts"]);
132c129
<                               if (!in_array($portName, $ignore_ports)) {
---
>
150,151c147
<                                       $i++;
<                               }
---
>
154c150
<
---
>
199d194
<
not pretty but it works, I determined what the port #'s were by looking at mactrack tab after not ignoring anything and just eliminated the uplink interfaces associated with those 'ports'
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please open a bug at bugs.cacti.net and place your patch there. Thanks.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests