Place Your Feature Requests & Bug Reports Here

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
cjennings_cr
Posts: 20
Joined: Thu Jan 06, 2005 8:09 am
Contact:

Post by cjennings_cr »

Feature Request: Ability to choose to show only the hostname portion of the RDNS:

Code: Select all

PCRE REGEX: \A(\S*?)\.
alteleid
Posts: 10
Joined: Sun Mar 04, 2007 6:15 am

Re: undefined index errors

Post by alteleid »

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
alteleid
Posts: 10
Joined: Sun Mar 04, 2007 6:15 am

Post by alteleid »

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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Feature Request

Post by NetAdmin »

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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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

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?
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Post by NetAdmin »

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

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.
Attachments
Second site, with incorrect starting index.
Second site, with incorrect starting index.
MacTrackError2.jpg (17.78 KiB) Viewed 9478 times
First Site, with second page selected.
First Site, with second page selected.
MacTrackError1.jpg (40.64 KiB) Viewed 9478 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

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.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think this is what you should use:

Code: Select all

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

Code: Select all

svn://cvs.cacti.net/var/svnroot/cacti_plugins
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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

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

Code: Select all

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

Code: Select all

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.
Attachments
MacTrackDNSError.jpg
MacTrackDNSError.jpg (31.13 KiB) Viewed 9432 times
MacTrackAuthError.jpg
MacTrackAuthError.jpg (48.19 KiB) Viewed 9432 times
burked
Posts: 3
Joined: Mon Jul 09, 2007 7:35 am
Location: Fall River, MA

Possible Mactrack bug/fixes

Post by burked »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests