End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Re: Mactrack tab not available

Post by OMFan »

vedd99 wrote:I have just downloaded and installed the mactrack plugin as I have several others, but I do not ever see the mactrack tab appear on top.

The Device Tracking settings for the plugin appear under the Console settings, but the tab never appears.

To setup, I downloaded the tar.gz archive (version 0.1b) from http://cactiusers.org/downloads/?.

Extracted the archive to:
/var/www/localhost/htdocs/cacti/plugins/mactrack/

And added the following line to:
/var/www/localhost/htdocs/cacti/include/config.php

$plugins[] = 'mactrack';

I am using Cacti 0.8.6h with the plugin architecture installed (and running the monitor and thold plugins with no problem).

Am I missing something somewhere? I've checked all over and I saw where one other person had a similar problem but I didn't see the resolution.

Thanks!
Hello,

I have got the same error. I read all the posts and i can't find the solution.
Also, since my server is behind a proxy server, i can't do the update through the svn repository.

Can you help me ?

Thansk a lot
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's HTML based here:

http://svn.cacti.net/cgi-bin/viewcvs.cg ... t=MacTrack

Granted, you have to download 1 file at a 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?
sobacha
Posts: 7
Joined: Fri Jan 13, 2006 12:56 am

Post by sobacha »

Hi,

Great Plug-in!! Thanks.

Anyway, I want to see the end-device hostname on the cacti traffic graph. :D

--------------------------------
gig0/1 www.example.com (or IP, MAC,,, but, hostname is the best)
--------------------------------

...::::::::::.....:::::...... <--traffic graph

--------------------------------
gig0/2 mail.example.com
--------------------------------

...::::::::::.....:::::...... <--traffic graph


//sob
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

Thanks for your quick answer.

But, i would like to know if the version of MacTrack on cactiusers website is the same that you can find on the svn.

Thanks a lot
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well,

Officially, we have not released the project to production. Cigamit is moving forward in any event. I guess, I should release this thing then...

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?
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

So have you got any idea about my problem ?
Do you advice me to download all the files on svn ?


Thanks a lot.
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Post by vedd99 »

OMFan wrote:So have you got any idea about my problem ?
Do you advice me to download all the files on svn ?


Thanks a lot.
The plugin can be downloaded with http from http://cactiusers.org/
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

I have done it.

I have got the same problem than you vedd99.

What was the solution for you ?


Thanks a lot for your answer.
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Re: Mactrack tab not available

Post by vedd99 »

OMFan wrote:
vedd99 wrote:I have just downloaded and installed the mactrack plugin as I have several others, but I do not ever see the mactrack tab appear on top.

The Device Tracking settings for the plugin appear under the Console settings, but the tab never appears.

To setup, I downloaded the tar.gz archive (version 0.1b) from http://cactiusers.org/downloads/?.

Extracted the archive to:
/var/www/localhost/htdocs/cacti/plugins/mactrack/

And added the following line to:
/var/www/localhost/htdocs/cacti/include/config.php

$plugins[] = 'mactrack';

I am using Cacti 0.8.6h with the plugin architecture installed (and running the monitor and thold plugins with no problem).

Am I missing something somewhere? I've checked all over and I saw where one other person had a similar problem but I didn't see the resolution.

Thanks!
Hello,

I have got the same error. I read all the posts and i can't find the solution.
Also, since my server is behind a proxy server, i can't do the update through the svn repository.

Can you help me ?

Thansk a lot
It ended up being a permissions issue, you have to grant yourself access (even if your admin). Go to Console / Utilities / User Management and grant yourself access to the Realm. It isn't enabled by default.
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

It works !!!!!

Thanks a lot vedd99.
User avatar
vedd99
Posts: 32
Joined: Wed Jan 11, 2006 4:51 pm
Contact:

Post by vedd99 »

OMFan wrote:I have done it.

I have got the same problem than you vedd99.

What was the solution for you ?


Thanks a lot for your answer.
You also need to be sure to run the database_upgrade.php file:
$ php database_upgrade.php

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

I also had to create some new Device Types to match my equipment. All of our stuff here is Cisco, so I just ran the scanner script and got the identifier and copied one of the existing device types.
$ php mactrack_scanner.php -d -id=<id#>

where <id#> is the id number of the device you setup (you can get this from the device screen URL when you hover over an entry).
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:I will likely be online Friday evening EST. I am not online at the moment. As fare as the max-repeater "-Ccr50". YOU NEED TO REMOVE THE STATEMENT ENTIRELY. I belive that the 4006 Agent does not process the max-repeaters portion of the inbound snmp request.

When I removed the max-repeater section entirely, I got data predictably.

TheWitness
So I should comment out the following:

Code: Select all

 $exec_string = trim($path_snmpbulkwalk .
                " -c " . $snmp_readstring .
                        " -OnUQ -v " . $snmp_version .
                        " -r " . $snmp_retries .
                        " -t " . ceil($snmp_timeout/1000) . " " .
                        $hostname . ":" . $snmp_port . " " . $OID);

I'm going to go ahead and do it, but in case this isn't correct, you can lead me along. :)

No, that can't be write...I'll wait to hear from you.
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

vedd99 wrote:
OMFan wrote:I have done it.

I have got the same problem than you vedd99.

What was the solution for you ?


Thanks a lot for your answer.
You also need to be sure to run the database_upgrade.php file:
$ php database_upgrade.php

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

I also had to create some new Device Types to match my equipment. All of our stuff here is Cisco, so I just ran the scanner script and got the identifier and copied one of the existing device types.
$ php mactrack_scanner.php -d -id=<id#>

where <id#> is the id number of the device you setup (you can get this from the device screen URL when you hover over an entry).
All of my devices are Cisco too.

What is the name of the script you ran ?



Thanks.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

OMFan wrote:What is the name of the script you ran ?

If the device is already defined in cacti you can simply go its device page and it will give you the model number at the top.
OMFan
Posts: 7
Joined: Fri Jan 13, 2006 5:41 am

Post by OMFan »

When i go to Management -> Devices Menu, i click on the device and i don't find the id number.

The only id I found in the webpage is at the end of URL.

But when i run "php mactrack_scanner.php -d -id=6" i have got the following error : "ERROR: Device with Id of '6' not found in database. Can not continue."



Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests