|
|
| Author |
Message |
bmaltais
Joined: 06 Jun 2007 Posts: 11
|
Posted: Wed Jun 06, 2007 7:40 am Post subject: mactrack howto |
|
|
Good morning,
I am new to this plugin and can't figure out what need to be done to get it going. Do you know if there is a quick howto explaining what need to be configured in what order?
Mactrack is running and showing in Cacti but I keep getting an error for the devices I am trying to poll.
Here is what I get when I run /usr/share/cacti/site/plugins/mactrack$ sudo php poller_mactrack.php -d -f
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 '2007-06-06 9:48:35'
DEBUG: The next database maintenance run time has been determined to be at '2007-06-07 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /usr/share/cacti/site/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: CMD: /usr/bin/php -q /usr/share/cacti/site/plugins/mactrack/mactrack_scanner.php -id=2 -d
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: MAC addresses to Vendor MACS association pass complete.
DEBUG: MAC VLAN's in VLAN Table Updated.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
06/06/2007 09:38:48 AM - SYSTEM MACTRACK STATS: Time:2.0587 ConcurrentProcesses:7 Devices:2
Also... is there a way to get mactrack to Refresh IEEE Vendor MAC/OUI Database across a proxy? I tried it and it failed because the server need to use a proxy to access the internet... could this failed download cause me to have problems? I ask because when I try to add a vendor mac address I get the following error: Notice: Undefined index: mactrack_vendormacs.php:edit in /usr/share/cacti/site/lib/functions.php on line 1422
Cheers |
|
| Back to top |
|
 |
bmaltais
Joined: 06 Jun 2007 Posts: 11
|
Posted: Wed Jun 06, 2007 8:14 am Post subject: |
|
|
I sort of found a work around. I manually downloaded the oui.txt file from http://standards.ieee.org/regauth/oui/oui.txt to my cacti directory and then changed lib/mactrack_functions.php from:
$oui_database = file("http://standards.ieee.org/regauth/oui/oui.txt");
to
$oui_database = file("http://my site ip/cacti/oui.txt");
But hopefully there is a way to make the function use a proxy. |
|
| Back to top |
|
 |
bmaltais
Joined: 06 Jun 2007 Posts: 11
|
Posted: Wed Jun 06, 2007 8:27 am Post subject: |
|
|
| Not sure I fixed it... still does not work... and I still get the error message when trying to add vendow mac or device types... any idea? |
|
| Back to top |
|
 |
bmaltais
Joined: 06 Jun 2007 Posts: 11
|
Posted: Wed Jun 06, 2007 8:51 am Post subject: |
|
|
When I try to add a device type I get:
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/plugins/mactrack/lib/mactrack_foundry.php:152) in /usr/share/cacti/site/plugins/mactrack/mactrack_device_types.php on line 103
Any idea what is wrong? |
|
| Back to top |
|
 |
gordon
Joined: 18 May 2007 Posts: 11
|
Posted: Mon Jun 11, 2007 6:46 pm Post subject: |
|
|
It actually adds the device, but when it tries to redirect back to the original page it gets that error. I haven't had time to look into it further, but I found a workaround for it:
http://forums.cacti.net/viewtopic.php?t=21334 |
|
| Back to top |
|
 |
|