End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

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

Post by TheWitness »

The -f parameter has not been ported to the Non-Plugin version of this code. I will be posting a new cut either late this weekend or early next week.

Until then, simply change the start time from Settings->Device Tracking to be 1 minute before the next polling time, and a new collection will be automatically queued.

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jarhead,

I am online as we speak. For about another 45 minutes.

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?
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Post by jarhead »

invitation should have been sent to you.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by 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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

On an catalyst switch I was searching for a MAC:
sh cam dyn:
...
35 00-30-6e-3a-d2-46 6/24 [ALL]
...
This is not a trunk port.

Now in Cacti this address is now shown. In the DB this address is in the DB. The text is not case sensitive.


Btw: In phpmyadmin I was examine the mac_track_ip table and found on a L3-switch in the column port-number :" No more variables left".
Attachments
f.gif
f.gif (18 KiB) Viewed 4525 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Two things 1) Make sure your site is not set, 2) Try all upper case. Let me know which one displays the rows.

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?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi Witness,

I set the site to "All" and entered upper case text. No one works.
If I set all filtering to "all" nothing is displayed. If I select one site, the site is displayed. Seems that all equals "none" (did you mixed zero and one in a function call?)

Torsten
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi (cigamit)

sorry - next problem:

Code: Select all

12/05/2005 01:19:58 PM - POLLER: Poller[0] HOST: allmucs41 is alive, processing has begun.
DEBUG: VLAN data collected. There are -2 VLANS.
DEBUG: ifIndex data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifAlias data collection complete.

Notice: Undefined index:  No more variables left in this MIB View (It is past the end of the MIB tree) in /var/www/html/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 272

Notice: Undefined index:  No more variables left in this MIB View (It is past the end of the MIB tree) in /var/www/html/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 273
DEBUG: ifInterfaces assembly complete.
INFO: HOST: allmucs41, TYPE: STRING:  Cisco Internetwork Operating Sy, No active end devices on this device.DEBUG: atifIndexes data collection complete
DEBUG: atPhysAddress data collection complete
DEBUG: atNetAddress data collection complete

Notice: Undefined index:  2.1.3.1.1.1 in /var/www/html/cacti/plugins/mac_track/lib/mactrack_functions.php on line 174
Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Torsten,

The filter "All" by default does not display results because of the potential record size taking too much space. For example, I am scanning 6 times a day at my office and keeping 2 months of history. There are 23k IP/MAC combos per scan.

Therefore, "All" would be a rather large number of IP Addresses. So, to cut it down (or at least the initial view), all mean's None. Maybe, I just make it none. You see the issue?

TheWitness

This other issue you are having is a device speicific issue. Are you using SNMPv1? Just a note, each Cisco device can be sensitive. For example, all Cisco IOS devices may not operate 100% with the IOS scanning function and may require say the "Generic" scanning function. With "-2" vlan's, I would be suspect.
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?
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Post by jarhead »

Larry,
I did a lot more digging into what we looked at late on friday. No matter what I set the options to, when it looks at the ifTypes it returns text in the reply. Not just the oid = return. Anywhere else I can change that besides in just the snmp.php?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In include/config.php there is a setting that forces net-snmp libraries. However, I am not sure I have it written today to use something other thant php_snmp. I will have to get back to you. Might be tomorrow. Please be patient.

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?
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Post by jarhead »

We did make this change in the include/config.php

/* built-in snmp support */
$config["php_snmp_support"] = FALSE;

I don't know if that did fix it or not. It doesn't look like it did.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jarhead and Others,

I have found an issue with php_snmp that is disturbing. You must set an environment variable called MIBS. It must be set to "RFC-1215" prior to poller.php running. This affects all snmpv1 devices performing walks using php_snmp. Please verify that the MIB file exists in your MIBDIRS.

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?
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Post by jarhead »

I have a RFC-1215.txt in my /usr/local/share/snmp/mibs it is 1174 bytes. I did see a place to set this when I was looking at the code but I am unsure where it was. Also I thought the changes that we made on friday disabled php_snmp.
jarhead
Cacti User
Posts: 59
Joined: Tue Nov 22, 2005 2:24 pm
Location: Portland, Or

Post by jarhead »

I did fine this line in the poller_mactrack.php. Is this what you where talking about?

/* Disable Mib File Loading */
putenv("MIBS=RFC-1215");
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests