Place Your Feature Requests & Bug Reports Here

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Getting closer to an alpha. Need testers who can put up with foibles.

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?
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

I can do some testing too.

It's not a critical application for us (but a very very usefull one for support and the engineers).

It doesn't matter if it gets broken, as long as I can rebuild it again.
GermanSniper
Posts: 42
Joined: Fri Aug 28, 2009 1:43 am
Location: Germany

Post by GermanSniper »

Hi

in the new interface tab the status of all ports are down!
Attachments
screen
screen
error.jpg (272.55 KiB) Viewed 4869 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Dump your mac_track_interfaces table and PM to me.

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Fixed in SVN.

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?
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Just dled the latest SVN of mactrack (rev693).

Here are some stuff i noticed:

* It lists the mac-addresses it knows of from every vlan available, but maybe this is in relation to the bug below (since vlan macs are linked to Fa0/34 and not Gi0/1 / 2, which are ignored). (Scan type: Switch/Hub selected).

* Fa0/34 seems to be a magic boundary, never any interfaces above this (also every vlan mac is linked to this interface). Could be because undefined indexes warning, a debug is attached.

* An identical device added isnt polled for its ports. According to its debug the get_IOS_dot1dTpFdbEntry_ports function isnt able to get ifIndex/ifType/ifName even though a regular snmpwalk of IF-MIB:: of each does supply indexes. <removed because of thinking too much>

* SNMP-config isnt copied on the fly from Cacti, need to select devices and choose "Copy SNMP settings...". From what i understand of the mactrack settings it should be on the fly without the need to select devices etc.

* No biggy: mactrack wont dl the oui.txt if behind a (at least our) proxy. Solved this by wget-ing the oui in cli and changing the function to point to an absolute path of the oui.txt.

All testing was on Cisco Catalyst 3500XL switches, with IOS 12.0(5.2)XU.
Attachments
mactrack_debug.txt.zip
(16.71 KiB) Downloaded 280 times
Last edited by toe_cutter on Wed Feb 24, 2010 10:04 am, edited 1 time in total.
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

Hi,

latest svn (693) has stopped polling some cisco devices.

Log attached :
"undefined index in mactrack_cisco.php line 404,405,406"
Attachments
mactrackpollerdebug693.txt
(621.3 KiB) Downloaded 127 times
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

Most errors gone with svn 737,

only 2 php notices at the end of scanning.
PHP Notice: Undefined variable: atEntries in /var/www/cacti/plugins/mactrack/lib/mactrack_functions.php on line 348
PHP Notice: Undefined variable: atEntries in /var/www/cacti/plugins/mactrack/lib/mactrack_functions.php on line 370

Still not polling most of our Cisco equipment.

Well, having a closer look polling looks OK, but it's not writing the info to the database.

Included a mactrack_scanner output for one of the 3750's.

Thanks,
Joris.
Attachments
737cisco3750.txt
(13.5 KiB) Downloaded 290 times
toe_cutter
Cacti User
Posts: 168
Joined: Fri Sep 12, 2008 2:41 am
Location: Sweden

Post by toe_cutter »

Revision 737 seems faster.
But most of my points above arent fixed, havent tried the identical device thing tho.
User avatar
edc1
Posts: 4
Joined: Fri Dec 18, 2009 5:40 am

Post by edc1 »

I get the same as Joris with the 737 SVN version. Polling seems OK:

DEBUG: Processing has begun for VLAN: 2
DEBUG: Port number information collected.
DEBUG: INDEX: '0' MAC ADDRESS: 00:00:0C:07:AC:01
DEBUG: INDEX: '1' MAC ADDRESS: 00:01:97:24:D5:78
DEBUG: INDEX: '2' MAC ADDRESS: 00:1B:24:08:7E:A7
DEBUG: INDEX: '3' MAC ADDRESS: 00:1B:24:93:1D:EE
DEBUG: INDEX: '4' MAC ADDRESS: 00:22:55:E5:1A:50
DEBUG: INDEX: '5' MAC ADDRESS: 00:D0:01:25:48:00
DEBUG: INDEX: '6' MAC ADDRESS: 00:D0:02:F8:BC:00
DEBUG: Port mac address information collected.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 2, VLAN_NAME: Management_VLAN, ACTIVE PORTS: 7
DEBUG: Bridge port information collection complete.

But the SQL that updates the database always shows ports_active='0' and macs_active='0':

This is against a Cisco 3650.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Need to revisit the scanning functions to see what is up, cisco wise. Later this week though. I've got a few other plugins that I have to work on this week. Please post your bugs in Mantis too (bugs.cacti.net). When logging bugs, please make sure you place them under the MacTrack plugin. Upper right hand corner, select Cacti Plugins.

It appears that timeouts are not being handled well in the current code, they appear to not be shown as timeouts in the log, so increase your timeouts.

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?
Adm.over
Posts: 9
Joined: Mon Mar 01, 2010 9:58 am

Post by Adm.over »

I am a new user.
I have the problem too.
The SQL that updates the database always shows ports_active='0' and macs_active='0':
Please help us. ths.
You are my hero.

Adm.over :P
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

backed off to version 497 of mactrack_cisco.php

Get this at the end :

PHP Notice: Undefined index: 11002 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 384
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 385
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 386
PHP Notice: Undefined index: 12048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 384
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 385
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 386
PHP Notice: Undefined index: 10048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 384
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 385
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 386
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'

Tried then with version 558 :
PHP Notice: Undefined index: 12048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 384
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 385
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 386
PHP Notice: Undefined index: 10048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 384
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 385
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 386
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'

Version 665
PHP Notice: Undefined index: 10048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 390
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 391
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 392
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'

version 689
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'

version 693
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'

version 700
PHP Notice: Undefined index: 10048 in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 404
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 405
PHP Notice: Undefined index: in /var/www/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 406
INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'


version 721

INFO: HOST: 172.21.87.34, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 260, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'


So not a real difference with any of the mactrack_cisco files.

I think my previous update was early december when it all worked fine. (i think upto 593)

I'm on a big project right now, so don't have alot of time for testing, but if you want me to test something i'll try to do it asap.

Joris.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok, test in the morning.

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?
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

Awesome, works again (rev767)!! Not one error that I can see.

Thanks!!!

I'll keep an eye on it today when there's more users and see if I can find anything that's not 100%, but I think you're golden, our distribution switches I can see right away that it's perfect.

Joris.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests