End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
quinten
Posts: 6
Joined: Wed May 24, 2006 12:29 pm

Post by quinten »

I figured out this part of the problem, and it was because I was not using the Plugin version of Cacti..

PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 53,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,

still working on it to find out the issue with the do_hook() function. Has to be in something I have done, or possibly a PHP4 issue or lib not loaded correctly.
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

I may have overlooked this, but I did scan through all of the pages before posting this. I have gotten mactrack up and running after creating a device type to match my 2950's and it is collecting data for just about everything. The only things that it doesn't seem to be collecting are the end device IP address and the port name. I noticed earlier in the thread where it had been mentioned that there might be an issue with the poller_mactrack.php and the $ip_range["site_id"] field, but I checked mine and it appears fine (I have ran the database_upgrade.php file so that probably accounts for that).

Does anyone have any idea's on what I could look for on this? By the way, this is running on Windows XP, PHP 5.1.2 and Apache 2.0.55. Thanks.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Skept wrote:chadd, thanks for the tip. I have tried that and have created a device type with my oid. but after adding a new device, it still recognizes it as .1.3.6.1.4.1.8072.3.2.10 [the default one, i mean].

I am sure, I missed something.
I tested mactrack on my cacti server (FreeBSD 6.0 - running net-snmp-5.2.2_1) and it works fine. I can't imaging it is that dissimilar. I have included screen shots that may help you.
Attachments
First, create the device in mactrack.
First, create the device in mactrack.
create_device.PNG (65.16 KiB) Viewed 8508 times
Second, create the device type, using the information that mactrack gathered from the device when it did the snmp walk/get on it.
Second, create the device type, using the information that mactrack gathered from the device when it did the snmp walk/get on it.
create_device_type.PNG (60.08 KiB) Viewed 8508 times
Last, success.  Wait for the polling cycle (or do a manual kickoff) and the device should come back as 'UP' - and you should have IP's discovered.
Last, success. Wait for the polling cycle (or do a manual kickoff) and the device should come back as 'UP' - and you should have IP's discovered.
success.PNG (51.22 KiB) Viewed 8508 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

quinten wrote:I figured out this part of the problem, and it was because I was not using the Plugin version of Cacti..

PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,

still working on it to find out the issue with the do_hook() function. Has to be in something I have done, or possibly a PHP4 issue or lib not loaded correctly.
It seems like your /includes/config.php was not patched properly when installing the Plugin Architecture. Use the prepatched file included with the Plugin Architecture, and re-enter your database information into it.
Skept
Posts: 12
Joined: Sun Jul 03, 2005 1:30 pm

Post by Skept »

chadd, Your post has been informative. Thanks.

After following the steps, I finally got this
Freya NOC Up 10.27.27.32 Switch/Router 92 2 2 0 0 0.8

I basically had to create a device type with the oid it has detected and the device identifier.

But what i meant was the mactrack script has detected an OID .1.3.6.1.4.1.8072.3.2.10 and when I do a snmpwalk my [linux box]/[the snmpd on the box] reports that the oid does'nt exist, which surprised me. Secondly after reporting the switch/router ports, the mactrack script did not report the ip-macs pairs in its output.

And I do see the snmpd holding the ip-mac pairs under a different oid. And I was wondering if it would be possible to make the script list them in its output.

Thirdly, possibly a mis-configuration on my part, but I noticed a minor quirk. My linux boxes have their device types as 2.4.31 or .32 with an extra tag, for example 2.4.32-bitchie. The script generated an error [Instead of Up/Down] when I specified the device identifier as 2.4.3% instead of 2.4.32-bitchie. What is wrong with the syntax?

Sorry for the delay in replying. I was bogged down with work. </chuckle>
brassel
Posts: 2
Joined: Fri Sep 30, 2005 4:49 am

MAC NOT USER

Post by brassel »

Hello,

i'am just trying mactrack, but if it scan the switchs (cisco) it discover the vlans, the ports, the ips, but no mac address !! instead it writes "NOT USER" in the database.

Does anyone have an good idea ?

Best Regards

Claude
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Can anyone point me to a quick Readme for setting this up? Besides the standard Plugin architecture stuff, do I need to run any database updates etc? I've got to a point of creating a site, but I get a Save Failed message - oh - does it work under windows?
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

Besides the standard Plugin architecture stuff, do I need to run any database updates etc? I've got to a point of creating a site, but I get a Save Failed message
I had the same issue when I started with it. The answer is a long way back in this message board. After you have done the basic install for this plugin (placed under plugin folder and added it into your config.php file) you need to:

And import the SQL code to your cacti db:
$ mysql -u root -p cacti < mactrack.sql

I got the above statement from an earlier posting but it fixed my error creating sites.

I can not answer your question about running it on windows since I am not but I do not see any reason why it would not work.
Matt`G
Posts: 11
Joined: Wed May 17, 2006 10:26 am
Location: Michigan, USA

Post by Matt`G »

This issue may have been addressed already and I missed it scanning through the thread... but I always thought there were significant performance issues for dumping arp tables via SNMP? I remember Cisco putting a big no-no on doing that because it will peg the CPU on routers with large arp tables. Something about the way the ARP table is accessed and traversed via SNMP. Has anyone found this to be true, and if so, what effect has this plugin had on your routers?
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Has anyone got this working with Avaya kit ?
jga
Posts: 29
Joined: Mon Jul 01, 2002 3:41 pm
Location: Santiago de Chile

Status Error

Post by jga »

Hi
I have problems with status, the condition says error

when run by command line, output this

[root@xxxsvrh6 mactrack]# /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: HOST: 10.20.22.11 is alive, processing has begun.
DEBUG: WARNING: SITE: Impsat, IP: 10.20.22.11, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '1',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',snmp_readstring='Chile#Read',snmp_sysName='BBN_41',snmp_sysLocation='ciscoworks',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.428',snmp_sysDescr='Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1c, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Tue 24-Jun-03 17:31 by yenanh',snmp_sysUptime='2528197177',snmp_status='4',last_runmessage='WARNING: Device Type Not Found in Device Type Table.',last_rundate='2006-06-23 17:01:37',last_runduration='0.0714' WHERE device_id ='1'

and if i run the poller

[root@xxxsvrh6 mactrack]# php /var/www/cacti/plugins/mactrack/poller_mactrack.php -f -d
Content-type: text/html
X-Powered-By: PHP/4.3.9

DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing. Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2006-06-23 17:21:37'
DEBUG: The next database maintenance run time has been determined to be at '2006-06-24 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=2 -d
DEBUG: DNS Resolver process launched
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
06/23/2006 05:16:21 PM - SYSTEM MACTRACK STATS: Time:8.5193 ConcurrentProcesses:7 Devices:2


The values on tables are still 0

Can you advance me?
kenth
Posts: 18
Joined: Tue Sep 21, 2004 8:33 am
Contact:

Silly question - File??

Post by kenth »

Just a silly question but without wading through 41 pages of messages how does one find everything they need to try out this plugin?
miky_willis
Posts: 20
Joined: Tue Apr 25, 2006 6:08 am

Post by miky_willis »

shakey_1 wrote:I may have overlooked this, but I did scan through all of the pages before posting this. I have gotten mactrack up and running after creating a device type to match my 2950's and it is collecting data for just about everything. The only things that it doesn't seem to be collecting are the end device IP address and the port name. I noticed earlier in the thread where it had been mentioned that there might be an issue with the poller_mactrack.php and the $ip_range["site_id"] field, but I checked mine and it appears fine (I have ran the database_upgrade.php file so that probably accounts for that)
Did you solve your problem Shakey ?? because I have the same issue. Nothing in "End Device IP Address" and "End Device DNS Hostname". I also ran the database_uprgade. But for me all the other collumns are OK.

So great plugin I love... but just a little issue. Someone have an idea ?

thanks ;)
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

No, I was never able to get that working. I have since moved from the Windows version to the Linux based CactiEZ, but I am having the same issue.
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Jga: I'd say this is your starting point "Device Type Not Found in Device Type Table"

Kenth: basics are: install cacti, install plugin architecture, install this plugin (run with .sql updates too), then provision. First check the pre-provisioned device types are ones you have, then add the sites and devices.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests