[FC] lack of ip addresses

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

[FC] lack of ip addresses

Post by mdurand »

hello all,

i just installed mac track plugin on cacti
and everything work well
but i have, for my devices about 200 mac address but only less than 10 ip adresses (see the attachment)

so lot of my mac address aren't associated to an ip address

i would like to know if it is normal
and if it's not how i can resolve the problem?
if i know how does mac track do to get the ip address i will probably know why i don't have enough ip adresses
Attachments
MAC-IP Report
MAC-IP Report
mac-ip.jpg (989.81 KiB) Viewed 11890 times
marion
User avatar
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

Post by mdurand »

a little bit more information
Attachments
devices.jpg
devices.jpg (426.71 KiB) Viewed 11888 times
marion
mars246
Posts: 2
Joined: Thu Aug 24, 2006 3:37 pm
Location: Coulmbia,SC
Contact:

Post by mars246 »

This look like the same problem i am having also.
User avatar
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

Post by mdurand »

i solved the poblem by changing the code
as i remember i replace mac track method by my code using arpwatch
marion
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Post code and make sure it is "device type" sensitive.

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
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

Post by mdurand »

i think there's no problem with the different types of devices
because my solution is:

with "arpwatch" i get all ip/mac correspondences (from all devices of my network)
i put it in mac_track_ips
of course there are many ip/mac addresses that are unuseful
(i do it in get_arp_ip_ranges function of mactrack_functions.php file)

then in poller_mactrack.php in the collect_mactrack_data function
when you do the INNER JOIN with mac_track_temp_ports
all ip/mac addresses that are unuseful disappear

i change a little bit the code of the collect_mactrack_data function:
i added something for the dns in the INNER JOIN
and i change the way of calculating ips_total in this function

summarizing:
1- get all ip/mac correspondence for my network
2- for each device: i have the mac address and i find the right ip address thks to 1-

I don't use the oid so i have no problem with the device type

i add here the files that i modified
the comments are in french
tell me if that is a problem for you

hoping i've been clear enough
Attachments
poller_mactrack.txt
poller with my modifiactions
(23 KiB) Downloaded 1175 times
Last edited by mdurand on Thu Aug 31, 2006 2:11 pm, edited 1 time in total.
marion
User avatar
mdurand
Posts: 19
Joined: Thu Jul 06, 2006 2:04 am
Location: marseille in France

Post by mdurand »

i found an error in the code i wrote
shame on me

i send you the code corrected
Attachments
mactrack_functions.txt
(48.23 KiB) Downloaded 1107 times
marion
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mdurand,

Please check out the latest version of the SVN MacTrack and see if the change I have implemented allows you to publish a vendor specific module for scanning IP's? Please post your response.

Thanks,

TheWitness

The mod essentially allows you to specify both the port scanning function and the IP scanning function on a device type by device type basis.
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 »

MacTrack SVN 2.0 will now support ArpWatch. Although the approach that I have used is a bit different than yours.

Thank you very much for your assistance.

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