|
|
| Author |
Message |
mdurand
Joined: 06 Jul 2006 Posts: 19 Location: marseille in France
|
Posted: Thu Jul 27, 2006 7:14 am Post subject: lack of ip addresses |
|
|
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
| Description: |
|
| Filesize: |
989.81 KB |
| Viewed: |
5747 Time(s) |

|
|
|
| Back to top |
|
 |
mdurand
Joined: 06 Jul 2006 Posts: 19 Location: marseille in France
|
Posted: Thu Jul 27, 2006 7:20 am Post subject: |
|
|
a little bit more information
| Description: |
|
| Filesize: |
426.71 KB |
| Viewed: |
5745 Time(s) |

|
|
|
| Back to top |
|
 |
mars246
Joined: 24 Aug 2006 Posts: 2 Location: Coulmbia,SC
|
Posted: Thu Aug 24, 2006 11:51 pm Post subject: |
|
|
| This look like the same problem i am having also.
|
|
| Back to top |
|
 |
mdurand
Joined: 06 Jul 2006 Posts: 19 Location: marseille in France
|
Posted: Sat Aug 26, 2006 7:44 am Post subject: |
|
|
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
|
Posted: Sat Aug 26, 2006 3:08 pm Post subject: |
|
|
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
|
Posted: Mon Aug 28, 2006 7:36 am Post subject: |
|
|
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
| 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
|
Posted: Thu Aug 31, 2006 2:10 pm Post subject: |
|
|
i found an error in the code i wrote
shame on me
i send you the code corrected
| 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
|
Posted: Mon Feb 19, 2007 11:24 pm Post subject: |
|
|
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 |
|
 |
|