Mactrack wont find IP Addresses

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
rojaro
Posts: 3
Joined: Thu Dec 14, 2006 8:14 am

Mactrack wont find IP Addresses

Post by rojaro »

Hi,

i really need some advice here. When doing "VLAN Analysis" the mactrack_scanner.php script finds all the ports and says so ...

Code: Select all

DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 50
but when processing the VLAN it cant find a single active port

Code: Select all

DEBUG: VLAN_ID: 1, VLAN_NAME: default, ACTIVE PORTS: 0
below the complete output of one of the scanning tests i did:

Code: Select all

adm1:/home/web/cacti/htdocs/plugins/mactrack # php mactrack_scanner.php -id=79 -d
DEBUG: HOST: 150.0.110.28 is alive, processing has begun.
DEBUG: Scanning function is 'get_IOS_dot1dTpFdbEntry_ports'
DEBUG: VLAN data collected. There are 6 VLANS.
DEBUG: ifIndex data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifAlias data collection complete.
DEBUG: ipAddrTable scanning for link ports data collection complete.
DEBUG: Cisco Voice VLAN collection complete
DEBUG: Voice VLANs exist on this device
DEBUG: ifInterfaces assembly complete.
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 2/vlan2 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 3/vlan3 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 4/vlan4 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 5/vlan5 is complete. ACTIVE PORTS: 3
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: 2
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 2, VLAN_NAME: vlan2, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 3
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 3, VLAN_NAME: vlan3, 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: vlan4, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 5
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 5, VLAN_NAME: vlan5, ACTIVE PORTS: 0
DEBUG: Final cross check's now being performed.
INFO: HOST: 150.0.110.28, TYPE: Cisco Internetwork Operating System Soft, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='45',scan_type = '1',vlans_total='6',ports_active='0',ports_trunk='3',macs_active='0',snmp_readstring='public',snmp_sysName='2950_28',snmp_sysLocation='',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.429',snmp_sysDescr='Cisco Internetwork Operating System Software   IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE (fc1)  Copyright (c) 1986-2005 by cisco Systems, Inc.  Compiled Wed 23-Mar-05 15:33 by yenanh',snmp_sysUptime='2701993408',snmp_status='3',last_runmessage='Data collection completed ok',last_rundate='2006-12-20 11:40:14',last_runduration='5.197' WHERE device_id ='79'
adm1:/home/web/cacti/htdocs/plugins/mactrack #
Please help
rojaro
Posts: 3
Joined: Thu Dec 14, 2006 8:14 am

Post by rojaro »

Help Please !! :(
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

I was having a similar problem with my Nortel switches until I switched from MySQL v3.28.58 to v5.0.27. As soon as I upgraded my database engine then all the IP's started showing up.
jerrison
Cacti User
Posts: 57
Joined: Fri Dec 29, 2006 4:02 am

Post by jerrison »

Hi there,

here are some thoughts how to get mactrack working:


if you don
jerrison
Cacti User
Posts: 57
Joined: Fri Dec 29, 2006 4:02 am

Post by jerrison »

Hi there,

here are some thoughts how to get mactrack working:


if you don
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I know for a fact that 2950 CatOS switches work. I do not have access to a 2950IOS switch to test with. Only that will allow me to investigate. Is there any chance you have all the ports setup as trunk ports. That will cause MacTrack to ignore the ports.

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?
rojaro
Posts: 3
Joined: Thu Dec 14, 2006 8:14 am

Post by rojaro »

Since i havent found any other way, i've modified the MacTrack plugin to read MAC/IP assignments from the data file produced by arpwatch as suggested by mdurand in this post. Not an optimal solution, but at least it works.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The issue is that on VLAN 1, MacTrack is detecting those ports to be on Trunk ports. Unless I have access to the switch, I can not help you.

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 3 guests