End Device Tracking Add-On for Cacti
Moderators: Developers, Moderators
The packaged version I had wasn't actually suppose to be there, I was using my file download script to transfer the files from home to work, and forgot to disable it after transferring.knobdy wrote:Do I have to download it out of SVN (one file at a time) or do you have it packaged somewhere (mactrack plugin I mean)?
I will attach the latest SVN version until we can get anonymous SVN access kicking for this.
\
EDIT: Attachment removed since its out of date.
Last edited by cigamit on Fri Jan 27, 2006 10:59 am, edited 1 time in total.
We need to place the newer snmp.php file in the /lib directory off the root of cacti rather than the /lib off the root of the plugin correct?cigamit wrote:Yes, the plugin is up-to-date, so you should be able to pull it from SVN and have everything working. (but yes, you do have to use the snmp.php from the add-on version)
I've reinstalled the plugin architecture and the updated mactrack plugin. I the searched the poller.php file again for a mention of mactrack, but still didn't find anything.
A diff between the one I unzipped and the one that is installed shows no differences. I must still be confused...
Also of note, with the new mactrack code I'm getting data back from the 4006s again, but on the one I'm still only getting back one blade - and still nothing from the 4000 or switches hanging off of those 4006s.
A diff between the one I unzipped and the one that is installed shows no differences. I must still be confused...
Also of note, with the new mactrack code I'm getting data back from the 4006s again, but on the one I'm still only getting back one blade - and still nothing from the 4000 or switches hanging off of those 4006s.
Correct.vedd99 wrote:We need to place the newer snmp.php file in the /lib directory off the root of cacti rather than the /lib off the root of the plugin correct?cigamit wrote:Yes, the plugin is up-to-date, so you should be able to pull it from SVN and have everything working. (but yes, you do have to use the snmp.php from the add-on version)
You will not see any meantion of mactrack, search forknobdy wrote:I've reinstalled the plugin architecture and the updated mactrack plugin. I the searched the poller.php file again for a mention of mactrack, but still didn't find anything.
A diff between the one I unzipped and the one that is installed shows no differences. I must still be confused...
Code: Select all
do_hook("poller_bottom");
Okay, well this is what was throwing me off - because I didn't see that in any of the versions I had. It's 1:20 now and I have it set to run at 2...we'll see.TheWitness wrote:What happens when you manually run "php poller_mactrack.php -d"? Also, please check <cacti>/poller.php for the "poller_mactrack.php" exec_background call.
TheWitness
I've also gone back and configured all of the devices for v2 - maybe that'll help, if not, I'll move them all to 1 and see what happens....tomorrow.
{UPDATE} It ran! WIth v2 the 4006s definately do not want to give anything up, but I did manage to get a couple of MACs from the other side of them. For the next run I'll just change them to v1 and see what happens.
I must say I like the different views. Unfortunate that the attached one doesn't reflect our need for ports.
- Attachments
-
- site_report.JPG (85.03 KiB) Viewed 7014 times
mactrac_view / Bug with Mac Track Results Filtering
Hello
In mactrac_view "Mac Track Results Filtering" the filter doesn't function perfectly:
+ I 've tried "IP Begin with". As you can see in the picture 1 it is the function "contains"
+ I 've tried "Contains". As you can see in the picture 2 it is empty.
+ but "contains" with a whole IP address gives a result like "matches" see picture3
I am using mactrac with plugin from 17/01/2006
Problem has been solved in the next released ...
I have to remove the picture because I have reached the limitation for the post...
In mactrac_view "Mac Track Results Filtering" the filter doesn't function perfectly:
+ I 've tried "IP Begin with". As you can see in the picture 1 it is the function "contains"
+ I 've tried "Contains". As you can see in the picture 2 it is empty.
+ but "contains" with a whole IP address gives a result like "matches" see picture3
I am using mactrac with plugin from 17/01/2006
Problem has been solved in the next released ...
I have to remove the picture because I have reached the limitation for the post...
Last edited by pepj on Mon Dec 11, 2006 5:17 pm, edited 1 time in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
TheWitness,
Here is the output of mactrack_scanner for one of my 4006 switches. It is currently only showing MACs for one blade. The output begs the question, what makes an active "user port"?
DEBUG: HOST: _1s1..com is alive, processing has begun.
DEBUG: Scanning function is 'get_catalyst_dot1dTpFdbEntry_ports'
DEBUG: VLAN data collected. There are 7 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: Cisco Voice VLAN collection complete
DEBUG: Voice VLANs do not exist on this device
DEBUG: ifInterfaces assembly complete.
DEBUG: portNames data collected.
DEBUG: portTrunking data collected.
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 2/_mgmt is complete. ACTIVE PORTS: 2
DEBUG: VLAN Analysis for VLAN: 6/voice_fl1_11.111.6.0 is complete. ACTIVE PORTS: 128
DEBUG: VLAN Analysis for VLAN: 10/usr_fl1_11.111.10.0 is complete. ACTIVE PORTS: 241
DEBUG: VLAN Analysis for VLAN: 19/test_fl1_11.111.19.0 is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 40/usr_fl1_11.111.40.0 is complete. ACTIVE PORTS: 3
DEBUG: Processing has begun for VLAN: 1
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 1, VLAN_NAME: default, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 2
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 2, VLAN_NAME: _mgmt, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 6
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 6, VLAN_NAME: voice_fl1_11.111.6.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 10
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 10, VLAN_NAME: usr_fl1_11.111.10.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 19
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 19, VLAN_NAME: test_fl1_11.111.19.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 40
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 40, VLAN_NAME: usr_fl1_11.111.40.0, ACTIVE PORTS: 0
DEBUG: Final cross check's now being performed.
INFO: HOST: _1s1..com, TYPE: Cisco Systems, Inc. WS-C4006 Cisco Catal, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',vlans_total='242',ports_active='0',ports_trunk='131',macs_active='0',snmp_readstring='02r',snmp_sysName='_1s1',snmp_sysLocation=' Building 1st Floor',snmp_sysContact=' Helpdesk ',snmp_sysObjectID='.1.3.6.1.4.1.9.5.46',snmp_sysDescr='Cisco Systems, Inc. WS-C4006 Cisco Catalyst Operating System Software, Version 6.3(5) Copyright (c) 1995-2002 by Cisco Systems, Inc.',snmp_sysUptime='3369065215',snmp_status='3',last_runmessage='Data collection completed ok',last_rundate='2006-01-18 06:40:26',last_runduration='110.413' WHERE device_id ='1'
Here is the output of mactrack_scanner for one of my 4006 switches. It is currently only showing MACs for one blade. The output begs the question, what makes an active "user port"?
DEBUG: HOST: _1s1..com is alive, processing has begun.
DEBUG: Scanning function is 'get_catalyst_dot1dTpFdbEntry_ports'
DEBUG: VLAN data collected. There are 7 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: Cisco Voice VLAN collection complete
DEBUG: Voice VLANs do not exist on this device
DEBUG: ifInterfaces assembly complete.
DEBUG: portNames data collected.
DEBUG: portTrunking data collected.
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 2/_mgmt is complete. ACTIVE PORTS: 2
DEBUG: VLAN Analysis for VLAN: 6/voice_fl1_11.111.6.0 is complete. ACTIVE PORTS: 128
DEBUG: VLAN Analysis for VLAN: 10/usr_fl1_11.111.10.0 is complete. ACTIVE PORTS: 241
DEBUG: VLAN Analysis for VLAN: 19/test_fl1_11.111.19.0 is complete. ACTIVE PORTS: 5
DEBUG: VLAN Analysis for VLAN: 40/usr_fl1_11.111.40.0 is complete. ACTIVE PORTS: 3
DEBUG: Processing has begun for VLAN: 1
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 1, VLAN_NAME: default, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 2
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 2, VLAN_NAME: _mgmt, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 6
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 6, VLAN_NAME: voice_fl1_11.111.6.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 10
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 10, VLAN_NAME: usr_fl1_11.111.10.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 19
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 19, VLAN_NAME: test_fl1_11.111.19.0, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 40
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 40, VLAN_NAME: usr_fl1_11.111.40.0, ACTIVE PORTS: 0
DEBUG: Final cross check's now being performed.
INFO: HOST: _1s1..com, TYPE: Cisco Systems, Inc. WS-C4006 Cisco Catal, TOTAL PORTS: 0, ACTIVE PORTS: 0DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',vlans_total='242',ports_active='0',ports_trunk='131',macs_active='0',snmp_readstring='02r',snmp_sysName='_1s1',snmp_sysLocation=' Building 1st Floor',snmp_sysContact=' Helpdesk ',snmp_sysObjectID='.1.3.6.1.4.1.9.5.46',snmp_sysDescr='Cisco Systems, Inc. WS-C4006 Cisco Catalyst Operating System Software, Version 6.3(5) Copyright (c) 1995-2002 by Cisco Systems, Inc.',snmp_sysUptime='3369065215',snmp_status='3',last_runmessage='Data collection completed ok',last_rundate='2006-01-18 06:40:26',last_runduration='110.413' WHERE device_id ='1'
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
pepj,
That looks like a codering issue with Mr. Cigamit. It works perfectly on my integrated version. It's likely an issue with the plugin version of the config_arrays.php hook. Cigamit is monitoring this post, he will know what to do.
TheWitness
That looks like a codering issue with Mr. Cigamit. It works perfectly on my integrated version. It's likely an issue with the plugin version of the config_arrays.php hook. Cigamit is monitoring this post, he will know what to do.
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?
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?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
knobdy,
Please run a full snmpbulkwalk of the OID's. Please verify that you have the correct Cisco MIB's loaded.
The command's will be:
Set Environment Variables
set mibs=all
set mibdirs="/your/mib's/directories"
Commands to Run
snmpbulkwalk -v 2c -c <your_com> <your_ip> .1.3.6.1.4.1.9 > outfile_non_numeric_oids.txt
snmpbulkwalk -v 2c -c -On <your_com> <your_ip> .1.3.6.1.4.1.9 > outfile_numeric_oids.txt
If you don't have the Cisco MIBS, goto the following site and get the bulk of them:
http://www.oidview.com/mibs/detail.html
To get the entire suite of Cisco Mibs, use the following:
http://www.oidview.com/mibs/9/asn1-9.zip
I will need both files. Email might be the best medium. I am assuming that the reason you have 131 trunks is because of IP Phones. Is this correct?
TheWitness
Please run a full snmpbulkwalk of the OID's. Please verify that you have the correct Cisco MIB's loaded.
The command's will be:
Set Environment Variables
set mibs=all
set mibdirs="/your/mib's/directories"
Commands to Run
snmpbulkwalk -v 2c -c <your_com> <your_ip> .1.3.6.1.4.1.9 > outfile_non_numeric_oids.txt
snmpbulkwalk -v 2c -c -On <your_com> <your_ip> .1.3.6.1.4.1.9 > outfile_numeric_oids.txt
If you don't have the Cisco MIBS, goto the following site and get the bulk of them:
http://www.oidview.com/mibs/detail.html
To get the entire suite of Cisco Mibs, use the following:
http://www.oidview.com/mibs/9/asn1-9.zip
I will need both files. Email might be the best medium. I am assuming that the reason you have 131 trunks is because of IP Phones. Is this correct?
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?
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?
I have noticed that same problem. I have been using the "Contains" to find an exact match and "Begins With" to find a partial.TheWitness wrote:pepj,
That looks like a codering issue with Mr. Cigamit. It works perfectly on my integrated version. It's likely an issue with the plugin version of the config_arrays.php hook. Cigamit is monitoring this post, he will know what to do.
TheWitness
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
knobdy,
It also looks as though I am not storing VLAN's correctly into the Devices table.
TheWitness
EDIT: Looks like I have IP addressed where VLAN's should be What do you expect for free...
It also looks as though I am not storing VLAN's correctly into the Devices table.
TheWitness
EDIT: Looks like I have IP addressed where VLAN's should be What do you expect for free...
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?
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?
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Who is online
Users browsing this forum: No registered users and 4 guests