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    


Place Your Feature Requests & Bug Reports Here
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
cjennings_cr



Joined: 06 Jan 2005
Posts: 20

PostPosted: Thu May 31, 2007 8:51 am    Post subject: Reply with quote

Feature Request: Ability to choose to show only the hostname portion of the RDNS:
Code:
PCRE REGEX: \A(\S*?)\.
Back to top
alteleid



Joined: 04 Mar 2007
Posts: 8

PostPosted: Mon Jun 04, 2007 2:33 pm    Post subject: Re: undefined index errors Reply with quote

sstringham wrote:
I updated from the .0.0.1b code to the svn version today. (I am just now getting started with MacTrack - so far so good).

PHP Notice: Undefined index: <number> in /usr/share/cacti/plugins/mactrack/lib/mactrack_functions.php on line 465

Thanks


Same issue on switches, after upgrading PHP from 4.3.9

PHP 5.1.2 / CentOS 4
Back to top
alteleid



Joined: 04 Mar 2007
Posts: 8

PostPosted: Fri Jun 08, 2007 4:57 am    Post subject: Reply with quote

Can macTrack do following?:

1. Find from the router (routers), what is the router's IP on certain VLAN
2. For each Switch perform a check, on which port it has MAC of this router's interface
3. Automatically add it into the list of disabled ports.
Back to top
TheWitness
Developer


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

PostPosted: Sat Jun 09, 2007 9:19 am    Post subject: Reply with quote

I don't think so, however, you could simply write that one yourself. You would look for ports on a switch that have multiple mac's associated with them but are not trunk ports. This would likely indicate a link port.

This technique could be used to detect router uplinks and also for rougue switches. However, there are many other techniques for performing that, including the higher end switches themselves.

TheWitness
Back to top
NetAdmin
Cacti User


Joined: 30 Aug 2006
Posts: 69

PostPosted: Thu Jun 21, 2007 9:12 am    Post subject: Feature Request Reply with quote

I like the idea of having multiple sites. Unfortunately for us, each site has their own DNS server and machines at each site register on the DNS server at that site. So basically, the machines at remote sites are not able to resolve their hostnames. Hence, would it be possible to have different DNS server settings for each site?

Thanks.

NetAdmin
Back to top
TheWitness
Developer


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

PostPosted: Thu Jun 21, 2007 9:57 pm    Post subject: Reply with quote

That's kind of WHAC. Why do you now have forwarding of information, or a hierarchy setup?

TheWitness
Back to top
NetAdmin
Cacti User


Joined: 30 Aug 2006
Posts: 69

PostPosted: Fri Jun 22, 2007 9:41 am    Post subject: Reply with quote

Oops.. I stand corrected. Everything does forward to the central DNS servers. In fact, I can do a reverse lookup on the central servers for any IP at a remote site. I guess this is a mactrack issue then. I do notice that it is able to resolve a couple of remote IP address names (like maybe 3 or 4 out of several hundred), but that's it.. Any thoughts?
Back to top
TheWitness
Developer


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

PostPosted: Fri Jun 22, 2007 10:02 am    Post subject: Reply with quote

Can you use Wireshark to perform a capture during that portion of the scanning. You can run it manually in debug mode and then do the capture during the resolution portion. PM or e-mail me the capture file.

TheWitness
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Jun 27, 2007 7:48 am    Post subject: Reply with quote

Found a Bug, but not sure if it's been reported yet or not, I do have the latest version of MacTrack installed.

If you're on Mac/IP Report and you select a site. If the listing of information flows over to a second page, and you select that page, then select another site. It will attempt to display records starting at an incorrect index.

I think the images will make more sense.



MacTrackError1.jpg
 Description:
First Site, with second page selected.
 Filesize:  40.64 KB
 Viewed:  3330 Time(s)

MacTrackError1.jpg



MacTrackError2.jpg
 Description:
Second site, with incorrect starting index.
 Filesize:  17.78 KB
 Viewed:  3330 Time(s)

MacTrackError2.jpg


Back to top
TheWitness
Developer


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

PostPosted: Wed Jun 27, 2007 8:24 am    Post subject: Reply with quote

Yup, the form logic is missing a check for the siteid. I will fix momentarily, since I am sort of on vacation and have a few minutes.

TheWitness
Back to top
TheWitness
Developer


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

PostPosted: Wed Jun 27, 2007 8:30 am    Post subject: Reply with quote

Ok, should be fixed. You should now be going to the main Cacti site plugins repository and not the old mactrack one, just in case you did not know.

Larry
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Jun 27, 2007 8:33 am    Post subject: Reply with quote

TheWitness wrote:
Ok, should be fixed. You should now be going to the main Cacti site plugins repository and not the old mactrack one, just in case you did not know.

Larry


Can you post a link to that? Because if I click the "repository" link at the top of this page, there ain't nothing there. If I go to the main Cacti Page, I have no idea where the stuff is kept. Previously I had been getting plugins from cactiusers.org, but it doesn't appear it's being updated that much anymore.

Overall, I think the site organization needs revamped, IMO.
Back to top
TheWitness
Developer


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

PostPosted: Wed Jun 27, 2007 8:37 am    Post subject: Reply with quote

I think this is what you should use:

Code:
http://cvs.cacti.net/var/svnroot/cacti_plugins


or

Code:
svn://cvs.cacti.net/var/svnroot/cacti_plugins


TheWitness
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Jun 28, 2007 8:58 am    Post subject: Reply with quote

TheWitness wrote:
I think this is what you should use:

Code:
http://cvs.cacti.net/var/svnroot/cacti_plugins


or

Code:
svn://cvs.cacti.net/var/svnroot/cacti_plugins


TheWitness


Thanks, after some digging, I figured out how to get SVN installed on my CactiEZ box and get the new code from repository.

I found another bug though. Although, I don't think it's a bug from one of your areas. I think someone else wrote this module.

Just a minor display issue with the number of rows returned on the mactrack_macauth.php page.

I seem to have found another oddity. If you look at the second image. You'll see that anywhere MacTrack could resolve the name, it does not fill in the vendor, and anywhere the vendor is filled in, it doesn't resolve the name.

I have also found that some entries when added to the Authorized list, when you switch the Selection from Yes to No for Authorized, some entries remain listed as unauthorized, even though they've been added to the list.



MacTrackAuthError.jpg
 Description:
 Filesize:  48.19 KB
 Viewed:  3284 Time(s)

MacTrackAuthError.jpg



MacTrackDNSError.jpg
 Description:
 Filesize:  31.13 KB
 Viewed:  3284 Time(s)

MacTrackDNSError.jpg


Back to top
burked



Joined: 09 Jul 2007
Posts: 1
Location: Fall River, MA

PostPosted: Tue Jul 10, 2007 8:25 am    Post subject: Possible Mactrack bug/fixes Reply with quote

Thank you all for a great tool!

My apologies if I'm incorrect or have an older version (5/15/07. I've been looking at this for a few days, it arbitrarily detects macs on some switches and not on others. In any case, my finding are below.

mactrack_cisco.php - 2 places

$device["vlans_total"] = sizeof($vlan_ids) - 3;
mactrack_debug("There are " . (sizeof($vlan_ids)-3) . " VLANS.");

VLANS 1002, 1003, 1004, 1005 are ignored - the count is off by one, I think you need to subtract 4, not 3 - cosmetic I think.


mactrack_functions.php

Within function get_base_dot1dTpFdbEntry_ports :

if (@$port_status[$key] == "3") {
$port_key_array[$i]["key"] = $key;

I think it should be :

if (!in_array($port_number, $ignore_ports)) {
if ((@$port_status[$key] == "3") || (@$port_status[$key] == "5")) {

as in the function get_base_wireless_dot1dTpFdbEntry_ports, otherwise the "static" macs on switch ports get ignored, hence no macs reported for any vlans.

There is also something up with the Voice Vlan detection in mactrack_cisco.php. All my switches return "4096" as the Voice port vlans - which means there isn't a voice vlan (acc'd to Cisco mib)
Yet it is being detected as a voice vlan because all ports report back, (size > 0, the logic in the php) .

Thanks again,
Dave
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
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11  Next
Page 9 of 11

 



Powered by phpBB © 2001, 2005 phpBB Group