Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


lack of ip addresses

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
mdurand



Joined: 06 Jul 2006
Posts: 19
Location: marseille in France

PostPosted: Thu Jul 27, 2006 7:14 am    Post subject: lack of ip addresses Reply with quote

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



mac-ip.jpg
 Description:
MAC-IP Report
 Filesize:  989.81 KB
 Viewed:  5747 Time(s)

mac-ip.jpg


Back to top
mdurand



Joined: 06 Jul 2006
Posts: 19
Location: marseille in France

PostPosted: Thu Jul 27, 2006 7:20 am    Post subject: Reply with quote

a little bit more information


devices.jpg
 Description:
 Filesize:  426.71 KB
 Viewed:  5745 Time(s)

devices.jpg


Back to top
mars246



Joined: 24 Aug 2006
Posts: 2
Location: Coulmbia,SC

PostPosted: Thu Aug 24, 2006 11:51 pm    Post subject: Reply with quote

This look like the same problem i am having also.
Back to top
mdurand



Joined: 06 Jul 2006
Posts: 19
Location: marseille in France

PostPosted: Sat Aug 26, 2006 7:44 am    Post subject: Reply with quote

i solved the poblem by changing the code
as i remember i replace mac track method by my code using arpwatch
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Sat Aug 26, 2006 3:08 pm    Post subject: Reply with quote

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

TheWitness
Back to top
mdurand



Joined: 06 Jul 2006
Posts: 19
Location: marseille in France

PostPosted: Mon Aug 28, 2006 7:36 am    Post subject: Reply with quote

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



poller_mactrack.txt
 Description:
poller with my modifiactions

Download
 Filename:  poller_mactrack.txt
 Filesize:  23 KB
 Downloaded:  474 Time(s)



Last edited by mdurand on Thu Aug 31, 2006 2:11 pm; edited 1 time in total
Back to top
mdurand



Joined: 06 Jul 2006
Posts: 19
Location: marseille in France

PostPosted: Thu Aug 31, 2006 2:10 pm    Post subject: Reply with quote

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

i send you the code corrected



mactrack_functions.txt
 Description:

Download
 Filename:  mactrack_functions.txt
 Filesize:  48.23 KB
 Downloaded:  506 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Mon Feb 19, 2007 11:24 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group