End Device Tracking Add-On for Cacti
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
I have a site with 6 Cat 5500 and 2 3600 routers that i have added, The MACTRACK tab shows results from these devices, bu looking in the cacti.log its reporting CMDPHP Poller ERROR SQL Exec Failed "INSERT INTO mac_track_ips (site_id,devide_id,hostname,description,port_number,mac_address,ip_address,scan_data) VALUES ('2','3','172.16.4.98','PL3540BT','9','NOT USER','10.9.1.1','2006-01-04 13:00:06')"
the device 172.16.4.98 is the router should this not be the catalist?
I am using the 1b plugin with the final release version h of cacti with plugin arch for h
Thanks
the device 172.16.4.98 is the router should this not be the catalist?
I am using the 1b plugin with the final release version h of cacti with plugin arch for h
Thanks
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dwayne,
In the two functions in lib/mactrack/mactrack_functions.php
get_arp_ip_ranges and
db_store_device_port_results
Change "INSERT INTO" to "REPLACE INTO".
I discovered this myself this morning.
Larry
In the two functions in lib/mactrack/mactrack_functions.php
get_arp_ip_ranges and
db_store_device_port_results
Change "INSERT INTO" to "REPLACE INTO".
I discovered this myself this morning.
Larry
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: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I have also found a few more issues that will affect Cisco switches. They are corner cases and will be patched today.
Larry
Larry
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?
Any of them cover the 4006?TheWitness wrote:I have also found a few more issues that will affect Cisco switches. They are corner cases and will be patched today.
I'm still having the issue where mactrack is only picking up addresses from 1 blade of a 4006 switch. I have compared the configurations of that switch and its twin on another floor and there are no significant difference. I've compared the configurations for the 5 switch blades and found no differences. Is there anything I should be looking for, specifically, that might be causing mactrack to fail?
Also, is there a way to clear out all of the data thus far collected to start "fresh" (not devices, just mac addresses)? Just do it through mysql?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You are using snmpv1 for the 4006 right? It has issues with snmpv2. For now, simply "truncate table mac_track_ports". I have to add that feature.
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 hadn't, but do now. I was going to try that before making this post but since I have two, and the one was working, I didn't think that should be an issue. However the two switches are at different code levels and perhaps that's the difference.TheWitness wrote:You are using snmpv1 for the 4006 right? It has issues with snmpv2.
What cisco code versions have you seen problems with SNMPv2? Which have been okay, if any? (anyone else have a 4006 with which they might provide feedback)
{UPDATE}
version 1 didn't help, still get the one blade - ?? Very strange - open to any suggestions!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
knobby, can I remotely access the device? Can you push me a dump of the entire MIB? I would need it two ways, with and without numeric OID's.
TheWitness
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?
Uhmm..it would be difficult to impossible to give you access - but I can try and provide you - privately - what you need to help. This tool will be VERY helpful to us and if we can help in its development we'll be willing to do what ever we can within company policies to do so.
What do I need to do, specifically, and where do I send it?
Guessing an snmpwalk to text file with a couple of different options?
What do I need to do, specifically, and where do I send it?
Guessing an snmpwalk to text file with a couple of different options?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Here are the files. There are some more updates to be made. This will get you back in business though.
http://svn.cacti.net/cgi-bin/viewcvs.cg ... t=MacTrack
Once you have copied all the files, you need to change directories to:
"<cacti_webroot>/lib/mactrack"
Then run:
"php database_upgrade.php"
You will then be back in business. Oh, when you do, your device types table will have to be populated in order for scanning to work.
TheWitness
http://svn.cacti.net/cgi-bin/viewcvs.cg ... t=MacTrack
Once you have copied all the files, you need to change directories to:
"<cacti_webroot>/lib/mactrack"
Then run:
"php database_upgrade.php"
You will then be back in business. Oh, when you do, your device types table will have to be populated in order for scanning to work.
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?
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
I still get theses errors with your latest:TheWitness wrote:Here are the files. There are some more updates to be made. This will get you back in business though.
http://svn.cacti.net/cgi-bin/viewcvs.cg ... t=MacTrack
Once you have copied all the files, you need to change directories to:
"<cacti_webroot>/lib/mactrack"
Then run:
"php database_upgrade.php"
You will then be back in business. Oh, when you do, your device types table will have to be populated in order for scanning to work.
TheWitness
CMDPHP Poller ERROR SQL Exec Failed "INSERT INTO mac_track_ips (site_id,devide_id,hostname,description,port_number,mac_address,ip_address,scan_data) VALUES ('2','3','172.16.4.98','PL3540BT','9','NOT USER','10.9.1.1','2006-01-04 13:00:06')"
Do i need to still change INSERT with REPLACE as per above ?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yes, if you look at that SVN page, there is a "plugin" and a "native" version of the code. Cigamit is a day behind right now. However, I'm not too sure about the "magic" he performs to migrate to the "plugin" architecture. So, I would simply change the "INSERT INTO" to "REPLACE INTO" as noted above and you should be Ok.
I do have a few features that I forgot about that I need to make to the code. However, I am tracking database changes in the "database_upgrade.php" file, so you should be ok.
Let me know how you like the new UI...
TheWitness
I do have a few features that I forgot about that I need to make to the code. However, I am tracking database changes in the "database_upgrade.php" file, so you should be ok.
Let me know how you like the new UI...
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?
It was the wife's BD yesterday, so had to take her out for a night on the town, so no computer for me. I should be able to get it caught up tonight.TheWitness wrote:Yes, if you look at that SVN page, there is a "plugin" and a "native" version of the code. Cigamit is a day behind right now. However, I'm not too sure about the "magic" he performs to migrate to the "plugin" architecture. So, I would simply change the "INSERT INTO" to "REPLACE INTO" as noted above and you should be Ok.
I do have a few features that I forgot about that I need to make to the code. However, I am tracking database changes in the "database_upgrade.php" file, so you should be ok.
Let me know how you like the new UI...
TheWitness
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
I have replaced the INSERT with REPLACE in the plugin version no more errors.
On the MACTRACK tab i now see End Device IP etc no problems.
When on Sites under the Device Tracking Menu, Site Name is displayed with Number of devices and Total IP's but User Ports User Ports Up MACS Found are all 0?
Same goes for the Devices under the Device tracking Menu.
Nothing else to report as yet
Thanks
On the MACTRACK tab i now see End Device IP etc no problems.
When on Sites under the Device Tracking Menu, Site Name is displayed with Number of devices and Total IP's but User Ports User Ports Up MACS Found are all 0?
Same goes for the Devices under the Device tracking Menu.
Nothing else to report as yet
Thanks
Who is online
Users browsing this forum: No registered users and 0 guests