[INFOREQ] basic mactrack help - can't seem to get it going

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
lsouth
Posts: 8
Joined: Mon Mar 09, 2009 12:12 pm

[INFOREQ] basic mactrack help - can't seem to get it going

Post by lsouth »

I am running cactiez w/ cacti 0.8.7c and mactrack v 1.1 - I am looking for some instructions/documentation on how to get started. I have added one switch and when the poller runs, I get

Code: Select all

Cacti[16297]: MACTRACK: ERROR: No device types have been found
Do I have to add device types manually? Currently my device type list is empty.

I will be running this on Cisco switches only.

Thanks for your help.
-L
lsouth
Posts: 8
Joined: Mon Mar 09, 2009 12:12 pm

Post by lsouth »

Here is an ouput from the poller_mactrack.php

Code: Select all

[root@vnlxis01 mactrack]# php poller_mactrack.php -f -d
DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing.  Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2009-03-10 22:44:30'
DEBUG: The next database maintenance run time has been determined to be at '2009-03-11 2:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/html/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: DNS Resolver process launched
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: MAC addresses to Vendor MACS association pass complete.
DEBUG: MAC VLAN's in VLAN Table Updated.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
03/10/2009 02:16:30 PM - SYSTEM MACTRACK STATS: Time:8.3447 ConcurrentProcesses:2 Devices:1 
after this runs, I checked my device and it still shows no data with a status of unknown.

-L[/img]
charlesdf23
Cacti User
Posts: 77
Joined: Thu Nov 13, 2008 2:30 pm

Post by charlesdf23 »

try running it against the specific host with -id=1 and see what spits out. I had a similar issue and needed to define a device.
lsouth
Posts: 8
Joined: Mon Mar 09, 2009 12:12 pm

Post by lsouth »

Thanks for the help, but -id is not a valid argument, here is what I get

Code: Select all

[root@vnlxis01 mactrack]# php poller_mactrack.php -f -d -id=1
ERROR: Invalid Parameter -id=1

Network Mac Tracker Master Process Control Version 1.0, Copyright 2005 - Larry Adams

usage: poller_mactrack.php [-sid=site_id] [-d] [-h] [--help] [-v] [--version]

-sid=site_id  - the mac_track_sites site_id to scan
-f            - Force the execution of a collection process
-d            - Display verbose output during execution
-v --version  - Display this help message
-h --help     - display this help message
so for grins, and since I only have 1 site I changed it to use the -sid

Code: Select all

[root@vnlxis01 mactrack]# php poller_mactrack.php -f -d -sid=1
DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing.  Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2009-03-12 19:24:13'
DEBUG: The next database maintenance run time has been determined to be at '2009-03-12 2:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
03/11/2009 07:43:18 PM - CMDPHP: Poller[0] ERROR: Can not start MAC Trackinging process.  There is already one in progress
I remove the -sid and it runs with repeating lines of "waiting on 1 to complete prior to exiting", the device list now shows port information, but when I look in the mactrack gui, there is nothing listed there

Since this is a switch, is there somewhere to define where the ARP look up is done to find the IP info, etc?

-L
charlesdf23
Cacti User
Posts: 77
Joined: Thu Nov 13, 2008 2:30 pm

Post by charlesdf23 »

sorry. Give this a shot.

Code: Select all

php -q mactrack_scanner.php -d -id=1
charlesdf23
Cacti User
Posts: 77
Joined: Thu Nov 13, 2008 2:30 pm

Post by charlesdf23 »

lsouth wrote: Since this is a switch, is there somewhere to define where the ARP look up is done to find the IP info, etc?

-L
When you add devices you define if they are switches, switch/routers or routers. Switches are strictly L2 and routers are strictly L3.

If you added a device and defined it as a switch, you will see mac addresses, user ports, etc. but no IP information. If this device is a switch/router (6500, 4500, etc), you should see mac's, ports, and IP's. If you have just a switch, you will need to add the router as well (2800,3800, etc) to get the arp entries.
lsouth
Posts: 8
Joined: Mon Mar 09, 2009 12:12 pm

Post by lsouth »

Actually I only see info in the device configuration view and nothing in the mactrack view - i have attached a few images

-L
Attachments
device config
device config
cacti_mactrack-device.jpg (248.61 KiB) Viewed 5284 times
device view
device view
cacti_mactrack-view.jpg (743.26 KiB) Viewed 5284 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For MacTrack to work completely, you need a switch + router for each site.

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