|
|
| Author |
Message |
cjennings_cr
Joined: 06 Jan 2005 Posts: 20
|
Posted: Thu May 31, 2007 8:51 am Post subject: |
|
|
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
|
Posted: Mon Jun 04, 2007 2:33 pm Post subject: Re: undefined index errors |
|
|
| 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
|
Posted: Fri Jun 08, 2007 4:57 am Post subject: |
|
|
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: 9719 Location: MI, USA
|
Posted: Sat Jun 09, 2007 9:19 am Post subject: |
|
|
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
|
Posted: Thu Jun 21, 2007 9:12 am Post subject: Feature Request |
|
|
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: 9719 Location: MI, USA
|
Posted: Thu Jun 21, 2007 9:57 pm Post subject: |
|
|
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
|
Posted: Fri Jun 22, 2007 9:41 am Post subject: |
|
|
| 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: 9719 Location: MI, USA
|
Posted: Fri Jun 22, 2007 10:02 am Post subject: |
|
|
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
|
Posted: Wed Jun 27, 2007 7:48 am Post subject: |
|
|
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.
| Description: |
| First Site, with second page selected. |
|
| Filesize: |
40.64 KB |
| Viewed: |
3326 Time(s) |

|
| Description: |
| Second site, with incorrect starting index. |
|
| Filesize: |
17.78 KB |
| Viewed: |
3326 Time(s) |

|
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9719 Location: MI, USA
|
Posted: Wed Jun 27, 2007 8:24 am Post subject: |
|
|
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: 9719 Location: MI, USA
|
Posted: Wed Jun 27, 2007 8:30 am Post subject: |
|
|
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
|
Posted: Wed Jun 27, 2007 8:33 am Post subject: |
|
|
| 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: 9719 Location: MI, USA
|
Posted: Wed Jun 27, 2007 8:37 am Post subject: |
|
|
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
|
Posted: Thu Jun 28, 2007 8:58 am Post subject: |
|
|
| 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.
| Description: |
|
| Filesize: |
48.19 KB |
| Viewed: |
3280 Time(s) |

|
| Description: |
|
| Filesize: |
31.13 KB |
| Viewed: |
3280 Time(s) |

|
|
|
| Back to top |
|
 |
burked
Joined: 09 Jul 2007 Posts: 1 Location: Fall River, MA
|
Posted: Tue Jul 10, 2007 8:25 am Post subject: Possible Mactrack bug/fixes |
|
|
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 |
|
 |
|