New Install of Mactrack not working

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

New Install of Mactrack not working

Post by hades »

Hi All,

I'm new to mactrack and I'm having problems getting it working correctly. I've added a site, and Device Types, then added a couple of switches but I can't seem to get any ip's collected. The switches I've tried are all cisco's (3750, 6509, 4507).

Edit: The 6509 switch is routing the vlans for our site, and is defined in mactrack as a switch / router the the device type.

Here is an example output from a "php mactrack_scanner.php -d -id=1":

Code: Select all

DEBUG: HOST: xx.xx.xx.xx is alive, processing has begun.
DEBUG: Scanning function is 'get_catalyst_dot1dTpFdbEntry_ports'
DEBUG: There are 19 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ipAddrTable scanning for link ports data collection complete.
DEBUG: ifSpeed data collection complete.
DEBUG: ifDescr data collection complete.
DEBUG: ifMtu data collection complete.
DEBUG: ifPhysAddress data collection complete.
DEBUG: ifAdminStatus data collection complete.
DEBUG: ifOperStatus data collection complete.
DEBUG: ifLastChange data collection complete.
DEBUG: ifInDiscards data collection complete.
DEBUG: ifInErrors data collection complete.
DEBUG: ifInUnknownProtos data collection complete.
DEBUG: ifOutDiscards data collection complete.
DEBUG: ifOutErrors data collection complete.
-----SNIP ----
DEBUG: ifInterfaces assembly complete.
DEBUG: Cisco Voice VLAN collection complete
DEBUG: Voice VLANs exist on this device
DEBUG: ifInterfaces assembly complete.
DEBUG: portNames data collected.
DEBUG: portTrunking data collected.
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 23
DEBUG: VLAN Analysis for VLAN: 4/VLAN0004 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 8/VLAN0008 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 12/VLAN0012 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 16/VLAN0016 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 20/VLAN0020 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 24/VLAN0024 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 28/VLAN0028 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 32/VLAN0032 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 36/VLAN0036 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 40/VLAN0040 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 44/VLAN0044 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 48/VLAN0048 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 52/VLAN0052 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 100/Cluster-VLAN is complete. ACTIVE PORTS: 4
DEBUG: VLAN Analysis for VLAN: 200/STORAGE is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 500/HON-WBK-MAN is complete. ACTIVE PORTS: 1
DEBUG: VLAN Analysis for VLAN: 501/HON-KST-MAN is complete. ACTIVE PORTS: 1
DEBUG: Processing has begun for VLAN: 1
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 1, VLAN_NAME: default, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 4
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 4, VLAN_NAME: VLAN0004, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 100
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 100, VLAN_NAME: Cluster-VLAN, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 500
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 500, VLAN_NAME: HON-WBK-MAN, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 501
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 501, VLAN_NAME: HON-KST-MAN, ACTIVE PORTS: 0
DEBUG: Final cross check's now being performed.
INFO: HOST: xx.xx.xx.xx, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: Scanning function is 'get_standard_arp_table'
DEBUG: atifIndexes data collection complete
DEBUG: atPhysAddress data collection complete
DEBUG: atNetAddress data collection complete
DEBUG: atEntries assembly complete.
-----SNIP ----
It is the same for the other devices. Finds the active ports in the vlan, but nothing once it checks the bridges.

I'm running:
fedora core 5
cacti 0.8.6j (tarball)
Plugin Arch: 1.1
mactrack: svn (21/5/2007)
php-snmp-5.1.6-1.1 (rpm)
php-5.1.6-1.1 (rpm)
net-snmp-5.3-4.2 (rpm)

Any help greatly appreciated.

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

Post by TheWitness »

How many device types do you have setup. You system is detecting this device as a Catalyst switch and not a IOS Switch with L3 capabilities. This is your problem. Look at the scanning function that is applied. You need to tune your Device Types table.

TheWtiness
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?
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hi The Witness,

I'm having the same problems with my mactrack install... I need your advice please...

How would you declare the following Catalyst switch models : 2950 ? 2970 ? 3750 ? (all without L3 capabilities I think)

Moreover, what scanning function would you apply to them ?

Thanks
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

Hi The Witness,

Ok, I was playing with my device types, before posting :oops: I've changed back to IOS still with no luck. I bit the bullet and added a whole stack, pardon the pun :oops: (about 10 or so) switches to mactrack and one switch (another 3750 on a different subnet) works fine with the same device type. All the others return no macs.

I have noticed a slighly different result from running mactrack_scanner.php and the poller. is this normal?

Also on a side note, I've not been able to read the document in the docs dir from the plugin using word 2003. What format is it in?
Teecee
Posts: 34
Joined: Tue Feb 28, 2006 1:25 pm

Post by Teecee »

I am having this same issue.
Cacti Version - 0.8.6i
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - Linux 2.6.17-11-386
Web Server - Apache/2.0.55 (Ubuntu) PHP/5.1.6
PHP - 5.1.6
PHP Extensions - xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, soap, SPL, shmop, session, Reflection, posix, mime_magic, mbstring, iconv, hash, gettext, ftp, filepro, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, snmp, mysqli
MySQL - 4.1.15-Debian_1ubuntu5-log
RRDTool - 1.2.11
SNMP - 5.2.2
Plugins
  • Thresholds (thold - v0.3.2)
    Device Monitoring (monitor - v0.7)
    Network Discovery (discovery - v0.7)
    Update Checker (update - v0.3)
    Network Tools (tools - v0.2)
    npc - v0.1
    flowviewer
    Host Info (hostinfo - v0.1)
    NTop Viewer (ntop - v0.1)
    syslog
    Report Creator (reports - v0.1b)
    Device Tracking (mactrack - v1.0)
    PHP Network Weathermap (weathermap - v0.82)
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

After a few days of mactack running it appears that the cisco 3750's are working correctly, but my other switches such as 6509's (see below) do not see to get any macs. The device types I believe are set correctly. Can some confirm I'm entering in the correct values?

Wayne.
Attachments
Here are my devices. Note the 3750s both have the correct mac's, but other switches don't
Here are my devices. Note the 3750s both have the correct mac's, but other switches don't
mactrack1.JPG (84.18 KiB) Viewed 7504 times
My device types
My device types
mactrack2.jpg (28.91 KiB) Viewed 7504 times
Device type for 3750
Device type for 3750
mactrack3.jpg (74.84 KiB) Viewed 7504 times
Device type for 6509
Device type for 6509
mactrack4.jpg (74.48 KiB) Viewed 7504 times
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hi,

what version of Mactrack are you running ? To my knowledge, version 0.0.1-b is the latest stable one, isn't it ?

Thanks
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

bengelly wrote:Hi,

what version of Mactrack are you running ? To my knowledge, version 0.0.1-b is the latest stable one, isn't it ?

Thanks
HI Bengelly, I'm running svn from 21/5/2007 (thats AU time which is UTC+10)

With the update plugin, it shows as version 1.0

Wayne.
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

Been working on why I could not get mactrack to work. While reading through the lib functions, I found this gem of information:

Code: Select all

/* get_IOS_dot1dTpFdbEntry_ports
        obtains port associations for Cisco Catalyst Swtiches.  Catalyst
        switches are unique in that they support a different snmp_readstring for
        every VLAN interface on the switch.
*/
Looking through the function, I worked out that they vlan is appended to the snmp readstring with an "@" delimiter. Well guess what.....my snmp readstring has an @ character in it!. I changed the community to public as a test and hey presto, It works!!!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like a documentation issue. Sorry, IOS is not for Catalysts. For Catalysts, you need the other Cisco scanning function. Sorry, it's been a while and I have been WAYYY busy lately.

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 1 guest