End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
jforman
Posts: 27
Joined: Wed Sep 29, 2004 6:58 am

Post by jforman »

TheWitness wrote:Your IP's appear to be IPv6. Is this correct. I currently do not support IPv6. Please respond.

TheWitness
Definitely not running any IPv6 at all inside our corporate lan.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The reason I ask this is the following:

Code: Select all

DEBUG: SQL: REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','16','192.168.1.3','CR-01','1','00:00:10:00:00:00','7F:00:00:34','2006-07-12 21:03:13')
TheWitness[/b]
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?
jforman
Posts: 27
Joined: Wed Sep 29, 2004 6:58 am

Post by jforman »

TheWitness wrote:The reason I ask this is the following:

Code: Select all

DEBUG: SQL: REPLACE INTO mac_track_ips (site_id,device_id,hostname,description,port_number,mac_address,ip_address,scan_date) VALUES ('1','16','192.168.1.3','CR-01','1','00:00:10:00:00:00','7F:00:00:34','2006-07-12 21:03:13')
TheWitness[/b]
Then I am totally at a loss here. :(

One of my coworkers is running the Cacti-EZ cd and it runs mactrack just fine. We're only seeing this issue on a cacti install (0.6.8h with patches) that we did by hand. I'll have to diff it tomorrow when I am back in the office and not running out of battery over VPN.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It may be that your snmp config is returning data with the incorrect mib type. This can be corrected by setting the MIBS environment variable to something simple like "RFC-1215.xxx" where xxx represents your mib extension.

Give that a try.

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?
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

TheWitness wrote:Ok, so here's the trick, you need to open a console and run each device in debug mode. Here is the syntax:

Code: Select all

>php mactrack_scanner.php -h
Network Mac Tracker Version 1.0, Copyright 2005 - Larry Adams

usage: mactrack_device.php -id=host_id [-d] [-h] [--help] [-v] [--version]

-id=host_id   - the mac_track_devices host_id to scan
-d            - Display verbose output during execution
-t            - Test mode, don't log a process id and interfere with system
-v --version  - Display this help message
-h --help     - display this help message
So, if the switch in question is a L3 switch, and definately for the router run the command using the "-d" option. Post the results.

TheWitness


I actually wrote a perl script, to take care of this, and then setup a cronjob to run it automagically.


my $dbh = DBI->connect("dbi:mysql:<DBNAME>", "<UID>", "<PASS>");

my $sth = $dbh->prepare(<<SQL);
select device_id
from mac_track_devices
SQL
$sth->execute;

while (my @row = $sth->fetchrow_array()) {
my ($device) = @row;
system "php /cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=$device 2>&1 >/dev/null";
}
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, but by doing that, you loose all the other processing that goes on in the poller_mactrack.php function that does all the consolidation and additional detailed reporting.... In addition, mactrack gives you a real good if not poorly written way of monitoring progress of you scanning real time.

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?
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

I still have the poller running. Just when i need to startup new devices or similar, i run it this way, since you can't run it by hand w/o specifying the device_id.

donohue
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oh, ok. Np then...

I am thinking that the environment variable MIBS=RFC-1215 will make the output look better.

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?
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

a future add into to the mac/ip report? could you possiable arrange a sort button, ie, Sort by Port or IP addy, or similar?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Actually, when I get around to it, I have added a sort module to Cacti 0.8.6i that you should be able to take advantage of once we release it. Won't be soon enough for some, I know.

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?
jforman
Posts: 27
Joined: Wed Sep 29, 2004 6:58 am

Post by jforman »

TheWitness wrote:Oh, ok. Np then...

I am thinking that the environment variable MIBS=RFC-1215 will make the output look better.

TheWitness
No difference what so ever.
export MIBS=RFC-1215.txt
then i ran both mactrack_scanner and poller_mactrack on all devices.

I'm completely at a loss as to what is going on.

I am not sure whether it makes any difference, but we have VoIP phones (on seperate vlan and subnet) which our desktop computers plug into, so there will be 2 IP and MAC's off of each desktop switch (DS-#) port.
Attachments
desktop switch, possible to have 2 IP's/MAC's per port since there are VoIP phones off of this switch and desktops connect into phones which connect into the wall jack.
desktop switch, possible to have 2 IP's/MAC's per port since there are VoIP phones off of this switch and desktops connect into phones which connect into the wall jack.
ds-22.JPG (134.33 KiB) Viewed 10998 times
server switch, one machine/ip/mac per port.
server switch, one machine/ip/mac per port.
ss-01.JPG (130.09 KiB) Viewed 10998 times
jforman
Posts: 27
Joined: Wed Sep 29, 2004 6:58 am

objectID's

Post by jforman »

does anyone have the correct Object ID OID for a cisco 2950 and 3560 switch running IOS? (and a 4500 or 6000 if also)

i'm thinking something might be going on with that, if at all possible.
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

My Cisco 2950's (C2950-I6Q4L2-M) show an ObjectID of .1.3.6.1.4.1.9.1.324.
emerillat
Posts: 17
Joined: Mon Mar 21, 2005 8:44 am

Post by emerillat »

Okay, i have the plugin installed, some devices created and can manual poll using the id # but they don't seem to be updating. I think I have missed a step somewhere. Do I need to use something other than cactid for this to update?

Thanks!
ddonohue
Cacti User
Posts: 77
Joined: Mon Jul 10, 2006 10:36 am
Contact:

Post by ddonohue »

This is because as witness said, when you don't run the mactrack_poller.php you loose alot of the functions.

so you want to setup a cronjob for your mactrack_poller.php to run.


quick way to test it out by hand is

php /cacti/plugins/mactrack/mactrack_poller.php

Donohue
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests