End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you have a device that has 48 user ports, but reports 52, say with a Cisco 3750, and you wish to ignore ports 49-52, you would specify a low port of 1 and high port of 48.

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?
prettyshygrrl
Posts: 1
Joined: Fri Dec 09, 2005 4:08 pm

Installations Questions, Where to obtain latest version etc.

Post by prettyshygrrl »

Greetings!

I have been trying to determine where I can get the latest version of the addon (mactrac). Is it an addon? I'm so confused! :) I was also unable to find any documentation and on that end I'm volunteering to cook up a howto to get it running ( I'll even maintain it)

Are there any instructions/documents available? Cacti is running beautifully and I would really like to get mactrac functioning as well :)
Thanks!
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

TheWitness wrote:If you have a device that has 48 user ports, but reports 52, say with a Cisco 3750, and you wish to ignore ports 49-52, you would specify a low port of 1 and high port of 48.

TheWitness
Hi Big Boss..
I tried to change to the generic function, but I dont informations from the switch (with V1 and v2). Only v2 works.

Torsten
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Right, I have some additional changes to post. Whaq's your OS 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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

TheWitness wrote:Right, I have some additional changes to post. Whaq's your OS again?

TheWitness
Hi,

if you meen me:
OS: RedHat-Linux, SNMP net-snmp-5.2.1.2, Cacti 086g, CatOS: 6 and 7
IOS: 12.1 and 12.2.

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

Post by torstentfk »

Hi,

just found an entry in the mac-table:
2 identic entries, only the ip-desc is not the same. It would be nice if cacti recognices the entry with the missing IP and replaces this entry with the one having an IP-address.

Torsten
Attachments
f.gif
f.gif (3.01 KiB) Viewed 4585 times
cterpreau
Posts: 6
Joined: Tue Mar 15, 2005 9:17 am
Contact:

Post by cterpreau »

Hello,

can someone tell me what is the state for this plugin and how can i install it ??

Best Regards.
Christophe.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

hello

i am doing test with one switch (sw2 : 192.168.0.108 / hp procurve 2524) and one router (r1 : 172.22.1.1 / cisco 2611)

(my switch is not on the same subnet than workstations so that users can't touch it...)
(my cacti box as 2 ip : 172.22.0.195 and 192.168.0.254)

mac_track doesn't work...


what i have in mac_track_temp_ports is :
site_id device_id hostname description vlan_id vlan_name mac_address ip_address port_number port_name scan_date
2 2 192.168.0.108 sw2 N/A N/A 00:50:DA:59:B7:0A 15 N/A 2005-12-13 16:09:11
2 2 192.168.0.108 sw2 N/A N/A 00:60:B0:00:E8:CE 24 N/A 2005-12-13 16:09:11
...

what i have in mac_track_ips :
site_id device_id hostname description port_number mac_address ip_address scan_date
2 2 192.168.0.108 sw2 29 NOT USER 192.168.0.254 2005-12-13 14:20:54
2 3 172.22.1.1 r1 1 NOT USER 172.22.0.64 2005-12-13 14:20:54
2 3 172.22.1.1 r1 1 NOT USER 172.22.0.73 2005-12-13 14:20:54
...


why NOT USER ??


thanks for your help.
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Guiles,

The reason for NOT user is that the ARP table of whatever router you are polling is returning a zero length string for the MAC address. Please keep in mind, from a site perspective, you need to have the router who is acting as the access router for the site added for that site. If it's a third party such as AT&T, they will need to provide you access to both the System MIB and the AT MIB.

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

Post by TheWitness »

Torsten,

What can happen is the following:

1) Arp Expired on Router Clearing Cache After Switch had been scanned, but before router had been scanned.
2) Your router did not respond to the SNMP query
3) Your router snmp query timed out.

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?
williem
Cacti User
Posts: 69
Joined: Tue Feb 08, 2005 10:36 am

mac track

Post by williem »

Larry,

I am about to start testing the mac track. I have noticed several files over the course of the past few weeks. Do I apply them in sequence to the beta of 0.8.6h?

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
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Sorry if I missed this, but is there a way to run the mac-tracker manually from the command line for testing purposes?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

TheWitness wrote:Guiles,

The reason for NOT user is that the ARP table of whatever router you are polling is returning a zero length string for the MAC address. Please keep in mind, from a site perspective, you need to have the router who is acting as the access router for the site added for that site. If it's a third party such as AT&T, they will need to provide you access to both the System MIB and the AT MIB.

TheWitness

the function get_arp_ip_ranges in mactrack_functions.php doesn't work for me.

how can i debug it ?

i have a cisco 2611

this what i have if i do the command sh arp :
Protocol Address Age (min) Hardware Addr Type Interface
Internet 172.22.3.185 96 0002.551a.98fd ARPA Ethernet0/0
Internet 172.22.3.187 6 0004.232c.6691 ARPA Ethernet0/0
Internet 172.22.3.186 20 0011.252d.3fb6 ARPA Ethernet0/0
Internet 172.22.3.189 0 0004.232d.16a7 ARPA Ethernet0/0
Internet 172.22.3.188 1 0012.3f63.2fa5 ARPA Ethernet0/0
Internet 172.22.3.191 0 0011.4316.87c5 ARPA Ethernet0/0
Internet 172.22.3.190 4 0012.3f63.d739 ARPA Ethernet0/0
Internet 172.22.3.177 5 0004.232d.134e ARPA Ethernet0/0
Internet 10.0.0.2 - 0030.94db.67c1 ARPA Ethernet0/1
Internet 172.22.3.176 0 0012.3f2c.95bd ARPA Ethernet0/0
Internet 172.22.3.179 1 0004.232d.5e77 ARPA Ethernet0/0
Internet 10.0.0.1 205 0010.7b3c.677a ARPA Ethernet0/1
...


plus, the "Ports to Ignore" doesn't work too : is it normal ?
i have try 24, Fa0/24, Fa1/24...
where can i founf info on this ?

thanks
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Port's to ignore is not functional yet. I will not get good time to work on this until next week. Have the entire week off. I will work on this between xmas shopping and cleaning the house...

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

Post by TheWitness »

Willie,

Are you using the plugin architecture?

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest