How do you add devices to mactrack?

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
gwrovi
Posts: 7
Joined: Mon May 12, 2014 12:31 pm

How do you add devices to mactrack?

Post by gwrovi »

I have the following under mactrack: sites, devices, ip ranges, ip addresses, mac addresses, interfaces and graphs. All of these tabs appear to be for viewing rather than administration, though. My user has the following realm permissions: plugin --> mactrack viewer, plugin --> mactrack administrator and plugin --> mactrack security. I must be missing something simple, but for the life of me cant spot it. Any help would be appreciated. (using mactrack 2.9, PIA 3.1 and Cacti 0.8.8b)
User avatar
XTech
Cacti User
Posts: 59
Joined: Sat May 26, 2012 9:25 pm

Re: How do you add devices to mactrack?

Post by XTech »

Console->Device Tracking->Devices - create a device
Console->Device Tracking->Device Types - create device type (devices of unknown types shouldn't work)
gwrovi
Posts: 7
Joined: Mon May 12, 2014 12:31 pm

Re: How do you add devices to mactrack?

Post by gwrovi »

I knew it had to be something obvious, didn't think it'd be THAT obvious, though. :) Are there steps that need to be taken in order to have active macs and total ips populated? I've added devices and they appear to be successfully polling (user ports and user ports up are populated) but nothing on the mac & IP fronts.
gwrovi
Posts: 7
Joined: Mon May 12, 2014 12:31 pm

Re: How do you add devices to mactrack?

Post by gwrovi »

Running from command line returns the following:

Code: Select all

# php /var/www/html/cacti/plugins/mactrack/mactrack_scanner.php  -id=1 -d
DEBUG: HOST: 192.168.32.254 is alive, processing has begun.
DEBUG: Scanning function is 'get_3Com_dot1dTpFdbEntry_ports'
DEBUG: ifIndexes data collection complete
DEBUG: ifIndexes data collection complete. '60' rows found!
DEBUG: ifTypes data collection complete. '60' rows found!
DEBUG: ifNames data collection complete. '60' rows found!
DEBUG: ipAddrTable scanning for link ports data collection complete. '1' rows found!
DEBUG: ifSpeed data collection complete. '60' rows found!
DEBUG: ifHighSpeed data collection complete. '60' rows found!
DEBUG: ifDuplex data collection complete. '52' rows found!
DEBUG: ifDescr data collection complete. '60' rows found!
DEBUG: ifMtu data collection complete. '58' rows found!
DEBUG: ifPhysAddress data collection complete. '60' rows found!
DEBUG: ifAdminStatus data collection complete. '60' rows found!
DEBUG: ifOperStatus data collection complete. '60' rows found!
DEBUG: ifLastChange data collection complete. '60' rows found!
DEBUG: ifInOctets data collection complete. '58' rows found!
DEBUG: ifOutOctets data collection complete. '58' rows found!
DEBUG: ifInNUcastPkts data collection complete. '58' rows found!
DEBUG: ifOutNUcastPkts data collection complete. '58' rows found!
DEBUG: ifInUcastPkts data collection complete. '58' rows found!
DEBUG: ifOutUcastPkts data collection complete. '58' rows found!
DEBUG: ifInDiscards data collection complete. '58' rows found!
DEBUG: ifInErrors data collection complete. '58' rows found!
DEBUG: ifInUnknownProtos data collection complete. '58' rows found!
DEBUG: ifOutDiscards data collection complete. '58' rows found!
DEBUG: ifOutErrors data collection complete. '58' rows found!
DEBUG: ifInterfaces assembly complete: 28653
DEBUG: Adding IfInterfaces Records
INFO: HOST: 192.168.32.254, TYPE: Cisco IOS Software, C3750 Software (C375, TOTAL PORTS: 52, OPER PORTS: 23
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Scanning function is 'get_CTAlias_table'
DEBUG: FUNCTION: get_CTAlias_table started
DEBUG: CTAliasInterfaces data collection complete: 0
DEBUG: CTAliasMacAddress data collection complete: 0
DEBUG: CTAliasProtocol data collection complete: 0
DEBUG: CTAliasAddressText data collection complete: 0
DEBUG: CTAliasEntries assembly complete: 0
DEBUG: HOST: 192.168.32.254, IP address information collection complete: 0
In the webui I see the following:
Attachments
screen.png
screen.png (12.72 KiB) Viewed 4192 times
User avatar
XTech
Cacti User
Posts: 59
Joined: Sat May 26, 2012 9:25 pm

Re: How do you add devices to mactrack?

Post by XTech »

Sorry for late answer. I was in vacation.

When defining a device type, you should select appropriate scanning functions for your equipment, not the first function in a list. For Cisco you should try get_IOS_dot1dTpFdbEntryPorts and get_standard_arp_table.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests