How I installed mactrack v2.0 with cacti 0.8.7e

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

How I installed mactrack v2.0 with cacti 0.8.7e

Post by jgilmour »

How I installed mactrack v2.0 with cacti 0.8.7e and Plugin Architecture 2.5
Just an FYI of what I did in linux. Hopefully this will help someone...



this is done from a working directory of /root
(checkout svn)

Code: Select all

 svn co svn://svn.cacti.net/cacti_plugins/mactrack
(rename trunk dir to mactrack)

Code: Select all

 mv /root/mactrack/trunk /root/macktrack/mactrack
Note: my cacti installation is in /var/www/html
(mv new renamed mactrack dir to plugins directory in cacti)

Code: Select all

 mv /root/mactrack/mactrack /var/www/html/plugins/
(change permissions for apache to be able to access data)

Code: Select all

 chown -R apache:apache /var/www/html/plugins/mactrack
In /var/www/html/include/global.php

Code: Select all

vi /vaw/www/html/include/global.php

add the line:
$plugins[] = 'mactrack';

under the $plugins = array(); line 
(this is Line 44 for me)
From there I logged into Cacti went to Console -> Config -> Plugin Management. Under MacTrack click Install, then Click Enable.

Then under Console -> Utilities -> User Management -> click on the user and under the 'realm management tab' make sure they have the mactrack stuff checked off... it should be

Code: Select all

 Plugin -> MacTrack Viewer 
 Plugin -> MacTrack Administrator 
 Plugin -> MacTrack Security 
You should now see the mactrack tab and device tracking on the left hand pane.
Go into Console -> configuration ->Settings -> device tracking and setup that stuff...

Update IEEE Vendor MAC/OUI Database going to console -> device tracking -> Tracking Utilities and clicking on Refresh IEEE Vendor MAC/OUI Database

Then go to console -> device tracking -> sites
- create a site
Then go to console -> device tracking -> devices
- create a device
Then go to console -> device tracking -> device types
- create a device type corresponding to the device you just made

if you notice under the device you made, when you click on it, it should show the following info, something like this (this is a foundry superx)

Code: Select all

System: Foundry Networks, Inc. FastIron SuperX, IronWare Version 04.1.00aT3e1 Compiled on May 05 2008 at 21:05:35 labeled as SXL101010
Uptime: 571301900
Hostname: n00bsuperx
ObjectID: .1.3.6.1.4.1.1991.1.3.36.1.3
take note of the system and objectID line.
under device types when you are creating the device you would use (for example)
System Description Match - SuperX
Vendor snmp Object ID Match - .1.3.6.1.4.1.1991.1.3.36.1.3
(notice how we got those from the device output?)

Good luck!
Last edited by jgilmour on Tue Nov 03, 2009 12:25 pm, edited 2 times in total.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The one issue with running the SQL from the command line is that this is not longer required. In fact, you have to simply copy the plugin to the plugins directory and then Install and Enable it from the Plugin Management page. It's that simple.

I suggest you pull a new copy and test for me. I worked quite a bit on it today.

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?
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

Awesome, Thanks for the reply!
I will check it out tomorrow and update the 'what I did' post.

Thanks again,
- Josh
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

I removed the svn by doing the disable / uninstall from plugin manager.

Then grabbed the new trunk, and redid the steps from the original post (which I edited) and everything looks good.

Thanks TheWitness!
piedperler
Posts: 1
Joined: Wed Jul 18, 2007 9:42 am
Location: Charleston

How can you update the plugin without losing the data?

Post by piedperler »

If I disable and uninstall the plugin and then download and install the update. All of the data disappears? I ended up having to backup and then restore the cacti database?
jgilmour
Posts: 21
Joined: Tue Oct 13, 2009 10:02 pm

Post by jgilmour »

I didn't update since I had only one device. I just wiped it, grabbed newest trunk and install so I dont know how the update goes.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok. Next step is Interfaces table. That'll be the bomb!

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?
bipolarkm
Posts: 10
Joined: Wed Jan 20, 2010 4:47 am

Post by bipolarkm »

Hello!
I want to install mactrack-2.x.x but i have not permissions to svn and i can't find mactrack-2.x.x.tar.gz :(

Give me tarball, please !
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You can download the files one at a time right now.

http://svn.cacti.net/viewvc/mactrack/tr ... ot=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?
bipolarkm
Posts: 10
Joined: Wed Jan 20, 2010 4:47 am

Post by bipolarkm »

TheWitness, thanks!
fflyerm
Posts: 8
Joined: Wed Jun 09, 2010 5:46 am

Post by fflyerm »

TheWitness wrote:You can download the files one at a time right now.

http://svn.cacti.net/viewvc/mactrack/tr ... ot=Plugins

TheWitness
Hi,
since I´ve downloaded and installed the files from the link above my cacti appears very strange. Any ideas what went wrong and how to fix it?

thx and regards
Michae[/img]
Attachments
cactiviewvc.JPG
cactiviewvc.JPG (147.02 KiB) Viewed 12930 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

MacTrack 2.9 is on the docs site already.

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

Who is online

Users browsing this forum: No registered users and 2 guests