End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Also, you must insure that you have a valid "Device Type" setup for each of these devices.
Yeah, they appear to be correct. I'm collecting data from all of them now. No errors when running the poller manually.

So...I guess my only problem(s) now are that the previous version had the search option and all of that, this tab doesn't provide any of that - or a list of MACs.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

knobdy wrote:
TheWitness wrote:Also, you must insure that you have a valid "Device Type" setup for each of these devices.
Yeah, they appear to be correct. I'm collecting data from all of them now. No errors when running the poller manually.

So...I guess my only problem(s) now are that the previous version had the search option and all of that, this tab doesn't provide any of that - or a list of MACs.
So the search and everything is missing? That sounds more like its not finding the /plugins/mactrack/html/ files. You may want to double check those are correct. Just as a safety check, I will make the includes use the full path to these instead of the relative. The mactrack_view.php has been updated to handle this, but just to alleviate any issues, you may want to completely override your mactrack install with all the new files.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

cigamit wrote:So the search and everything is missing? That sounds more like its not finding the /plugins/mactrack/html/ files. You may want to double check those are correct. Just as a safety check, I will make the includes use the full path to these instead of the relative. The mactrack_view.php has been updated to handle this, but just to alleviate any issues, you may want to completely override your mactrack install with all the new files.
Excellent - it not only works but I see that it has been improved! Nice...

So now I'm just back to the old 4006 issue. :) Tell me, since I don't think I fully understand it, what ports should I be excluding from the various switches?

We have the big 6500 series switch (which is working in mactrack) and off of it we have the floor 4006 switches (which aren't working) and off of the floor switches we may or may not have one or two more switches. I only have one of the 4006 switches in mactrack right now and its not showing up but it and the two switches hanging off of it do show up in the "devices" window, as do its ports.

Now I'm wondering about the cron job - since I have it runnign from the system crontab, with the full path... well, what's the -f option do (force, I presume) and what does it do differently than when the poller is ran from cron (whcih following the original example does not include the -f)?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

knobdy wrote:
cigamit wrote:So the search and everything is missing? That sounds more like its not finding the /plugins/mactrack/html/ files. You may want to double check those are correct. Just as a safety check, I will make the includes use the full path to these instead of the relative. The mactrack_view.php has been updated to handle this, but just to alleviate any issues, you may want to completely override your mactrack install with all the new files.
Excellent - it not only works but I see that it has been improved! Nice...

So now I'm just back to the old 4006 issue. :) Tell me, since I don't think I fully understand it, what ports should I be excluding from the various switches?

We have the big 6500 series switch (which is working in mactrack) and off of it we have the floor 4006 switches (which aren't working) and off of the floor switches we may or may not have one or two more switches. I only have one of the 4006 switches in mactrack right now and its not showing up but it and the two switches hanging off of it do show up in the "devices" window, as do its ports.

Now I'm wondering about the cron job - since I have it runnign from the system crontab, with the full path... well, what's the -f option do (force, I presume) and what does it do differently than when the poller is ran from cron (whcih following the original example does not include the -f)?
Actually, if you are running the plugin version, you do not need a seperate cron job, as it launches itself automatically after the Cacti cron job runs (piggy back style). The -f option is for testing only, as it forces the scan to run, even if its not time yet. Can you run the scanner on the 4006 manually and show us the output. And by that I mean

Code: Select all

php -q /path/to/cacti/plugins/mactrack/mactrack_scanner.php -f -d -id=???
ofcourse replace the path with the full path, and ??? with the Device ID (you can get it from the link to the device on the device page.) I believe Larry is already working on this issue, but any extra info he gets could help out.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

cigamit wrote:Actually, if you are running the plugin version, you do not need a seperate cron job, as it launches itself automatically after the Cacti cron job runs (piggy back style). The -f option is for testing only, as it forces the scan to run, even if its not time yet.
So it runs every 5 minutes (time configured for regular cacti poller) for the time period set in it's settings page?
cigamit wrote:Can you run the scanner on the 4006 manually and show us the output. And by that I mean

Code: Select all

php -q /path/to/cacti/plugins/mactrack/mactrack_scanner.php -f -d -id=???
When is the scanner run normally, during device setup or just for debugging? Response is thus:

DEBUG: HOST: comp_1s1.company.com is alive, processing has begun.
DEBUG: Scanning function is 'get_catalyst_dot1dTpFdbEntry_ports'
DEBUG: VLAN data collected. There are 7 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifInterfaces assembly complete.
DEBUG: portNames data collected.
DEBUG: portTrunking data collected.
DEBUG: VLAN Analysis for VLAN: 1 is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 2 is complete. ACTIVE PORTS: 2
DEBUG: VLAN Analysis for VLAN: 6 is complete. ACTIVE PORTS: 127
DEBUG: VLAN Analysis for VLAN: 10 is complete. ACTIVE PORTS: 241
DEBUG: VLAN Analysis for VLAN: 19 is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 40 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: Bridge port information collection complete.
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: comp_mgmt, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 6
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 6, VLAN_NAME: voice_fl1_10.117.6.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 10
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 10, VLAN_NAME: usr_fl1_10.117.10.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 19
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 19, VLAN_NAME: test_fl1_10.117.19.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 40
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 40, VLAN_NAME: usr_fl1_10.117.40.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.

INFO: HOST: comp_1s1.company.com, TYPE: Cisco Systems, Inc. WS-C4006 Cisco Catal, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',vlans_total='242',ports_active='0',ports_trunk='130',macs_active='0',snmp_readstring='comp02r',snmp_sysName='comp_1s1',snmp_sysLocation='comp Building 1st Floor',snmp_sysContact='comp Helpdesk 816-435-2231',snmp_sysObjectID='.1.3.6.1.4.1.9.5.46',snmp_sysDescr='Cisco Systems, Inc. WS-C4006 Cisco Catalyst Operating System Software, Version 6.3(5) Copyright (c) 1995-2002 by Cisco Systems, Inc.',snmp_sysUptime='3309956418',snmp_status='3',last_runmessage='Data collection completed ok',last_rundate='2006-01-11 08:50:04',last_runduration='126.5673' WHERE device_id ='1'
nuinco
Posts: 26
Joined: Mon Sep 26, 2005 3:35 pm

Post by nuinco »

Hi, I haven't checked for a couple of weeks. Is the latest plugin version still listed as v0.1b? Is the latest version the one that is posted on http://cactiusers.org/downloads/?

Thanks
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hello,

i activated the DNS rev lookup and found in a DNS debug that mactrack is making lookups for all columns, MAC, IP, VLAN-ID and so on. Feature or bug?

Torsten
williem
Cacti User
Posts: 69
Joined: Tue Feb 08, 2005 10:36 am

MAC 8

Post by williem »

Larry,

Do you know how to specify the trunk port on a Cabletron Mac 8 hub? It uses an EMM-E6 card.

Regards,

Willie
Cacti 0.8.6h | Cactid 0.8.6g | 64k devices | W2k3 IIS | PHP 5.3 | RRDtool 1.0.49 | Perl 5.8.5 | Dell Servers 8 gig ram
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Willie,

Right now, I am re-evaluating how I determine Link/Trunk ports. More to follow.

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: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

knobdy,

Are those 4006 swiches carrying IP phones. The reason I ask is "ports_trunk=130". That number seem's high and is likely the issue you are having.

Larry
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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Are those 4006 swiches carrying IP phones. The reason I ask is "ports_trunk=130". That number seem's high and is likely the issue you are having.Larry
It was, but not any longer. The configuration of all the switches on that floor is pretty hokey... Every port is configured:

set vlan 10 2/1-48
set port auxiliaryvlan 2/45 6
set port speed 2/1-11,2/13-48 100
set port duplex 2/1-11,2/13-48 full
set trunk 2/45 off dot1q 1-1005
set spantree portfast 2/1-48 enable
set spantree portvlancost 2/45 cost 99
set port channel 2/1-48 mode off

I haven't worked with IP telephony, trunking of vlans, or even CatOS, enough to know what I need and don't need for sure. Let me run it against our other 4006 and see what you think:

/usr/share/cacti/plugins/mactrack # php5 -q /usr/share/cacti/plugins/mactrack/mactrack_scanner.php -d -id=6
DEBUG: HOST: comp_3s1.comphealth.com is alive, processing has begun.
DEBUG: Scanning function is 'get_catalyst_dot1dTpFdbEntry_ports'
DEBUG: VLAN data collected. There are 7 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifInterfaces assembly complete.
DEBUG: portNames data collected.
DEBUG: portTrunking data collected.
DEBUG: VLAN Analysis for VLAN: 1 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 2 is complete. ACTIVE PORTS: 2
DEBUG: VLAN Analysis for VLAN: 9 is complete. ACTIVE PORTS: 171
DEBUG: VLAN Analysis for VLAN: 30 is complete. ACTIVE PORTS: 241
DEBUG: VLAN Analysis for VLAN: 40 is complete. ACTIVE PORTS: 3
DEBUG: VLAN Analysis for VLAN: 41 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: Bridge port information collection complete.
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: comp_mgmt, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 9
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 9, VLAN_NAME: voice_fl3_10.117.9.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 30
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 30, VLAN_NAME: user_fl3_10.117.30.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 40
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 40, VLAN_NAME: user_fl3_10.117.40.0, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.
DEBUG: Processing has begun for VLAN: 41
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 41, VLAN_NAME: VLAN0041, ACTIVE PORTS: 0
DEBUG: Bridge port information collection complete.

INFO: HOST: comp_3s1.comphealth.com, TYPE: Cisco Systems, Inc. WS-C4006 Cisco Catal, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',vlans_total='241',ports_active='0',ports_trunk='4',macs_active='0',snmp_readstring='comp02r',snmp_sysName='comp_3s1',snmp_sysLocation='comp Building 3rd Floor',snmp_sysContact='comp Helpdesk 816-435-2231',snmp_sysObjectID='.1.3.6.1.4.1.9.5.46',snmp_sysDescr='Cisco Systems, Inc. WS-C4006 Cisco Catalyst Operating System Software, Version 7.4(2) Copyright (c) 1995-2002 by Cisco Systems, Inc.',snmp_sysUptime='3311240391',snmp_status='3',last_runmessage='Data collection completed ok',last_rundate='2006-01-11 14:24:01',last_runduration='130.1652' WHERE device_id ='6'
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

cigamit wrote:Actually, if you are running the plugin version, you do not need a seperate cron job, as it launches itself automatically after the Cacti cron job runs (piggy back style).
This doesn't appear to be working for me. It only updates when I run it manually with the -f option. I commented it out of cron as well, but nothing...?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please change your start time and try again.

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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Please change your start time and try again.

TheWitness
Did that - though I had changed it after removing it from cron with no help. Will know if it helped this time in 9 minutes.

{update}
No change - last update was still the last time I ran it manually. It's supposed to kick off with the cacti poller correct? I have it configured for every 2 hours starting, now, at 1:00pm - nothing happened though.

Back to the 4006 though, I noticed that at the top of the device page was:

SNMP Information
System: Cisco Systems, Inc. WS-C4006 Cisco Catalyst Operating System Software, Version 7.4(2) Copyright (c) 1995-2002 by Cisco Systems, Inc.
Uptime: 3311341969
Hostname: comp_3s1
ObjectID: .1.3.6.1.4.1.9.5.46

{argghh... looked it up at Cisco...now I really don't understand}
I tried an SNMP walk with that OID and it gave

Code: Select all

/usr/share/cacti/plugins/mactrack # snmpwalk -c public -v2c comp_3s1 1.3.6.1.4.1.9.5.46
SNMPv2-SMI::enterprises.9.5.46 = No Such Object available on this agent at this OID
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Mactrack tab not available

Post by vedd99 »

I have just downloaded and installed the mactrack plugin as I have several others, but I do not ever see the mactrack tab appear on top.

The Device Tracking settings for the plugin appear under the Console settings, but the tab never appears.

To setup, I downloaded the tar.gz archive (version 0.1b) from http://cactiusers.org/downloads/?.

Extracted the archive to:
/var/www/localhost/htdocs/cacti/plugins/mactrack/

And added the following line to:
/var/www/localhost/htdocs/cacti/include/config.php

$plugins[] = 'mactrack';

I am using Cacti 0.8.6h with the plugin architecture installed (and running the monitor and thold plugins with no problem).

Am I missing something somewhere? I've checked all over and I saw where one other person had a similar problem but I didn't see the resolution.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests