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    


Problems with MACTrack

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Thu Jul 05, 2007 4:07 pm    Post subject: Problems with MACTrack Reply with quote

Hey Witness,
Thanks for the patch for the SVN version of MACTrack. I am now having a problem getting the system to add the MAC Addresses for my devices to the DB.

I have one Cisco 6509 Switch with a SupII router card in it. I have added that device type to the system as a Switch/Router with an OID of .1.3.6.1.4.1.9 and a sysDescription of c6sup2_rp-JK2S-M, both of which i am pretty sure are correct.

When i run
Code:
php.exe mactrack_scanner.php -id=1 -d

I see the system run, and it reports back that there are 267 IPs, and 4 trunk ports but no user ports, and no active MACs. I ran the same command outputting it to a log file, and i got some errors.

Code:
PHP Notice:  Undefined index:  270 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  270 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  271 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  271 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  272 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  272 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  273 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  273 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  274 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  274 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  275 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  275 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  276 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  276 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  277 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  277 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  278 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  278 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  279 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  279 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  280 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  280 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  281 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  281 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  282 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  282 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  283 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  283 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  284 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  284 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  285 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  285 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  286 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  286 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  287 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  287 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  288 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  288 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  289 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  289 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  291 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  291 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  341 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  341 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  342 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  342 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474
PHP Notice:  Undefined index:  344 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 465
PHP Notice:  Undefined index:  344 in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 474


For some reason, nothing is getting written. When i look at the log, i see the MAC Addresses beign picked up, but it doesn't do anything with them.

I have attached the log in Zip format for review.

Thanks

app
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Thu Jul 05, 2007 4:11 pm    Post subject: Reply with quote

Apparently, the system thinks i have uploaded too much, so i am unable to upload the log. If someone wants, I can PM it to them.

thanks

aaron
Back to top
TheWitness
Developer


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

PostPosted: Thu Jul 05, 2007 9:11 pm    Post subject: Reply with quote

Resync your SVN and try again. Post your results.

TheWitness
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Fri Jul 06, 2007 9:07 am    Post subject: Reply with quote

Hey Witness,
Thanks for the update. Now i am no longer getting the errors, but i still cannot get the data to transfer to the DB. Actually, let me correct that, it looks like it is getting into the DB but i have no way of seeing it. I am attaching a couple of Screen Shots for your review. One is a screenshot of what MySQL Admin says. It looks like it sees 344 interfaces, and 280 IPs. I did notice something odd this morning. I have created 1 device in Mac Track, and added it to my 1 site, Emeryville, and that looks correct on the device setup, but when i am on the console and click on Sites, I see Emeryville, but no devices associated with it.

Am i missing something?

thanks

app



Mac Track Sites.PNG
 Description:
What the MAC Track sites looks like.
 Filesize:  34.76 KB
 Viewed:  1694 Time(s)

Mac Track Sites.PNG



Mac Track Device.PNG
 Description:
The view of the MAC Track device page
 Filesize:  41.24 KB
 Viewed:  1694 Time(s)

Mac Track Device.PNG



MySQL Cacti DB.PNG
 Description:
MySQL DB view
 Filesize:  33.83 KB
 Viewed:  1694 Time(s)

MySQL Cacti DB.PNG


Back to top
TheWitness
Developer


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

PostPosted: Fri Jul 06, 2007 11:02 am    Post subject: Reply with quote

Post a screen shot of the device edit. Also, run the macktrack poller from the command line like this and post your output.

Code:
php -q poller_mactrack.php -f -d


TheWitness
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Fri Jul 06, 2007 11:53 am    Post subject: Reply with quote

Hey Witness,
Here is a screenshot of the Device page for the device i have setup. I setup the site before i setup the device.

Also, running
Code:
php -q poller_mactrack.php -f -d
returns nothing.
It just sits there for a second, and then returns me to a command prompt. When i output it to a file, the file is empty.

Let me know where you want to go from here.

app



MacTrack Device Page.PNG
 Description:
 Filesize:  127.47 KB
 Viewed:  1680 Time(s)

MacTrack Device Page.PNG


Back to top
TheWitness
Developer


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

PostPosted: Fri Jul 06, 2007 12:22 pm    Post subject: Reply with quote

Try the "mactrack_scanner.php --help" and then, I think if you review the usage, it will be:

Code:
php -q mactrack_scanner.php -id=1 -d


Somethings not right in the poller_mactrack.php though. If you do a --help on that, try again. Also, review your Cacti log file after doing so.

TheWitness
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Fri Jul 06, 2007 12:36 pm    Post subject: Reply with quote

OK, I will try running that and see what happens. I think that there may be some sort of problem with my Cacti installation. Nothing, with the exception of Discover, that is supposed to run after the poller runs, is running. Uptime doesn't run, i cannot get Mac Track to run. Something is very odd here.

I will let you know what happens when i can log back onto the system and run those commands.

app
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 353
Location: Emeryville, CA

PostPosted: Fri Jul 06, 2007 3:11 pm    Post subject: Reply with quote

OK, here is an update on the problems with MAC Track. I got it to run and add the data to the DB. Don't ask me what i did, but it is working now.

Now, i added a new Device, a PIX firewall that holds the ARP cache for many of our network segments. I did a SNMPWalk and got the SysDescr and added the device type to MAC Track. I added it as a Router only, since it doesn't have any direct user ports. When i try and run a Discover, i get the following errors:

Code:
Notice: Undefined variable: atEntries in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 296
Warning: Invalid argument supplied for foreach() in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 296
Notice: Undefined variable: atEntries in E:\cacti\plugins\mactrack\lib\mactrack_functions.php on line 316


Any thoughts?

thanks

app
Back to top
TheWitness
Developer


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

PostPosted: Fri Jul 06, 2007 5:24 pm    Post subject: Reply with quote

Problem is that the PIX does not support the ARP table via snmp. You have to write a quick script to get it using SSH and then use that script instead of the standard arp function.

I will check into those error message and see what's up otherwise.

TheWitness
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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group