are Mikrotik Routers supported by Mactrack

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
lloyde
Posts: 4
Joined: Fri Jul 25, 2014 4:54 pm

are Mikrotik Routers supported by Mactrack

Post by lloyde »

is Mactrack able to extract IP and Mac Address from Mikrotik Routers



Cheers
Lloyd
lloyde
Posts: 4
Joined: Fri Jul 25, 2014 4:54 pm

Re: are Mikrotik Routers supported by Mactrack

Post by lloyde »

Hi,
I have 8 sites with the Same Mikrotik routers, All the same firmware.
One of the Routers correctly reports MAC addresses and IPs the other 7 do not.

The routers all have the same SNMP settings (checked this about 100 times)
The other 7 sites will report the number of IPs but not MAC and the IP data will not appear in the MacTrack reports.

Any suggestions on where to start to debug this?

Image
lloyde
Posts: 4
Joined: Fri Jul 25, 2014 4:54 pm

Re: are Mikrotik Routers supported by Mactrack

Post by lloyde »

I have been trying to isolate this a bit more..
running mactrack_scanner.php with debug


The Router which is reporting correctly....
shows all the Mac Address

php /var/www/cacti/plugins/mactrack/mactrack_scanner.php -id=26 -d

<snip>
INFO: HOST: 192.168.88.1, TYPE: RouterOS RB1200, TOTAL PORTS: 10, OPER PORTS: 3
DEBUG: Port number information collected.
DEBUG: INDEX: '0' MAC ADDRESS: 00:04:F2:14:02:F3
...
DEBUG: INDEX: '24' MAC ADDRESS: F0:79:59:3E:16:E9
DEBUG: Port mac address information collected.
DEBUG: Scanning function is 'get_standard_arp_table'

The Router which does not report MAC address details...
php /var/www/cacti/plugins/mactrack/mactrack_scanner.php -id=30 -d

<snip>
INFO: HOST: 10.1.100.1, TYPE: RouterOS RB1100AHx2, TOTAL PORTS: 13, OPER PORTS: 12
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Scanning function is 'get_standard_arp_table'


So looks like the way the Routers have been setup?

suggestion welcome

Lloyde
lloyde
Posts: 4
Joined: Fri Jul 25, 2014 4:54 pm

Re: are Mikrotik Routers supported by Mactrack

Post by lloyde »

OK so this is starting to make some sense now.

MacTrack does not report on Trunks, only user Ports.

The Router that is returning correct data has no managed switches at the site.
The other sites all have HP V1910-48G Switches

So it turns out the switch it the problem.
DEBUG: No user ports on this network.

the adventure continues.

Lloyd
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: are Mikrotik Routers supported by Mactrack

Post by gabrifolle86 »

lloyde wrote: Sat Apr 11, 2015 9:08 pm OK so this is starting to make some sense now.

MacTrack does not report on Trunks, only user Ports.

The Router that is returning correct data has no managed switches at the site.
The other sites all have HP V1910-48G Switches

So it turns out the switch it the problem.
DEBUG: No user ports on this network.

the adventure continues.

Lloyd
Hi Lloyde!
maybe I have a probleam like you
I have a TPLINK router arcer c7 with openwrt on board.

When I debug the mactrack scan it result: "No user ports." infact mactrack don't find any IP address or MAC.

How you have fixed the issue? What can I do on my router to make mactrack able to find all the ip/mac address of my lan?

I have only Hub linked from my router, no other managed switch

Thanks!
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: are Mikrotik Routers supported by Mactrack

Post by TheWitness »

I'm doing some updates to MacTrack and I have my MikroTik RouterOS and SwOS being collected just fine using the 'generic' functions. I'll probably release it as 5.0. It's important to note that you need both a L2 Switch es and L3 Switches or Router to perform the association.
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
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: are Mikrotik Routers supported by Mactrack

Post by gabrifolle86 »

TheWitness wrote: Wed Sep 16, 2020 7:02 am I'm doing some updates to MacTrack and I have my MikroTik RouterOS and SwOS being collected just fine using the 'generic' functions. I'll probably release it as 5.0. It's important to note that you need both a L2 Switch es and L3 Switches or Router to perform the association.
great! that's a good news!

Please try to fix also the problem of deleting device (not working)

Thanks!
User avatar
TheWitness
Developer
Posts: 16897
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: are Mikrotik Routers supported by Mactrack

Post by TheWitness »

gabrifolle86 wrote: Wed Sep 16, 2020 11:11 am
TheWitness wrote: Wed Sep 16, 2020 7:02 am I'm doing some updates to MacTrack and I have my MikroTik RouterOS and SwOS being collected just fine using the 'generic' functions. I'll probably release it as 5.0. It's important to note that you need both a L2 Switch es and L3 Switches or Router to perform the association.
great! that's a good news!

Please try to fix also the problem of deleting device (not working)

Thanks!
Log it on github first.
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