3Com Superstack 3's

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

3Com Superstack 3's

Post by streaker69 »

I believe I have everything in MacTrack setup properly to poll my switch, but I continue to receive the following messages in the Poller Log. I was hoping that maybe someone had some insight into what could be wrong.
10/30/2006 08:16:11 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(mac_track_ip_ranges.ip_range) FROM mac_track_ip_ranges INNER JOIN mac_track_sites ON (mac_track_ip_ranges.site_id=mac_track_sites.site_id) "
10/30/2006 08:16:11 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed "SELECT mac_track_sites.site_id, mac_track_sites.site_name, mac_track_ip_ranges.ip_range, mac_track_ip_ranges.ips_max, mac_track_ip_ranges.ips_current, mac_track_ip_ranges.ips_max_date, mac_track_ip_ranges.ips_current_date FROM mac_track_ip_ranges INNER JOIN mac_track_sites ON (mac_track_ip_ranges.site_id=mac_track_sites.site_id) LIMIT 0,30"
10/30/2006 08:10:42 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='0'"
10/30/2006 08:10:39 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(*) FROM mac_track_processes WHERE device_id <> '0'"
10/30/2006 08:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='1'"
10/30/2006 08:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max"
10/30/2006 08:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed "SELECT * FROM mac_track_processes WHERE device_id = 0"
10/30/2006 08:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='-1'"
10/30/2006 08:10:38 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT count(*) FROM mac_track_processes WHERE device_id > 0"
10/30/2006 08:10:36 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(*) FROM mac_track_processes WHERE device_id <> '0'"
10/30/2006 08:10:36 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('0', '24329', 'Running', NOW())"
10/30/2006 08:10:35 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='2'"
10/30/2006 08:10:35 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('1', '24278', 'Running', NOW())"
10/30/2006 08:10:35 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='3'"
10/30/2006 08:10:35 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='4'"
10/30/2006 08:10:34 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('4', '24284', 'Running', NOW())"
10/30/2006 08:10:34 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('2', '24282', 'Running', NOW())"
10/30/2006 08:10:34 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('3', '24280', 'Running', NOW())"
10/30/2006 08:10:33 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO mac_track_processes (device_id, process_id, status, start_date) VALUES ('-1', '0', 'Running', NOW())"
10/30/2006 07:55:36 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "DELETE FROM mac_track_processes WHERE device_id='0'"
10/30/2006 07:55:33 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "SELECT COUNT(*) FROM mac_track_processes WHERE device_id <> '0'"
10/30/2006 07:55:32 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max"
10/30/2006 07:55:32 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (XXX.X.X,1,12,2006-10-30 07:55:28)"
I have X'ed out my IP range. The Switch is reporting the MAC's attached to it, but even though it was up and running all weekend long it wasn't until this morning that I started to see End Device IP information related to those MAC's. I don't know if it's because of the Switch maybe not supporting certain features or if it's because of the error messages I'm getting above.

Anyone have some insight as to what could be wrong? I have created the device Type for the 3Com Switch, and I believe I have done that correctly. The Switch is showing that it's up with no errors.

Current system is:

1.3Ghz Celeron
512M RAM
CactiEZ 0.2
mjaz
Posts: 9
Joined: Mon Apr 18, 2005 7:33 am

Post by mjaz »

I'm also stuggling with the same issue. I've created a new Device type to match my device (3com superstack 3) and told it to use get_generic_switch_ports as the scanning function. When the mactrack poller runs I'm missing all data for End device ip address, end device DNS hostname, Port Name, Vlan ID and Vlan Name. All other data is returned correctly although the log files have the following errors:

Code: Select all

10/30/2006 01:55:51 PM - SYSTEM MACTRACK STATS: Time:29.0340 ConcurrentProcesses:7 Devices:7  
10/30/2006 01:55:48 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max"  
10/30/2006 01:55:47 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES ('172.16.6',1,'134','2006-10-30 13:55:22')"  
Any ideas how i can get this working correctly? I've attached a full snmp trace of the device.

Thanks in advance

Mark
Attachments
superstack.rar
(96.94 KiB) Downloaded 1761 times
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Just thought I'd post the Device Type information for the 3Com SuperStacks. This one will work with the 4200 Series switches. Should work for anything between 1 and 50 port switches. I've tested in a 24 +2 (3C17300) and a 48+2 (3C17302A) Switch and it appears to be functioning just fine now.

Maybe we should start a thread of custom device types, so that everyone doesn't have to figure these things out on their own.
Attachments
MacTrack-SS3.jpg
MacTrack-SS3.jpg (53 KiB) Viewed 14483 times
mjaz
Posts: 9
Joined: Mon Apr 18, 2005 7:33 am

Post by mjaz »

OK, got this working now. Added the device type as streaker69 had it and installed the latest version of mactrack from the cvs. I can also confim the standard scanning functions also work with Allied Telesyn AT-8326GB switches (OID: .1.3.6.1.4.1.207.1.4.72)

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

Post by TheWitness »

I keep promising to get Release 1.0 out, but I keep getting stuck on things like "Boost" and a plugin that I am writing for my company. It pretty huge. My goal is to issue a second release of MacTrack by sometime January. It's going to take a lot of work though, gulp!

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?
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

Just wondered if you are still on track for a January time frame? I have users interested in the capabilities of Mactrack. I would have to write scanning functions for all the foundry switches we have (I presume), but mostly I was wondering if there are a lot of changes between the current version and the 1.0 release. If so, I can wait until you get it completed, if not maybe I will install it and try to get the foundry stuff taken care of. Thanks for all your work on Cacti.

P.S. Do you have any pointers for creating new scanning functions, or for implementing support for new vendors - like Foundry?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please review the top post under MacTrack for my status. I am working on this 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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

For some unknown reason, I am unable to get IP Addresses, despite using the correct settings (as per Steaker69's screenshot). There are no errors in the log, and I've run database_upgrade.php - the files are also the latest SVN.

Anyone have any ideas, as I'd love to get this to work...

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

mcutting wrote:For some unknown reason, I am unable to get IP Addresses, despite using the correct settings (as per Steaker69's screenshot). There are no errors in the log, and I've run database_upgrade.php - the files are also the latest SVN.

Anyone have any ideas, as I'd love to get this to work...

Thanks
Do you have a Router paired up with the switch at the Site?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I have a PIX firewall as the gateway ({PIX 515), although the switches are local to my LAN ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Can anyone shed some light on this ?

TIA
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mcutting,

The latest SVN allows for you sto store a userid and password per device and define a IP Scanning function per device type, say a pix. With the PIX, you will have to SSH to the device and then run the arp command and then parse the output into the mac_track_ips table.

You should amend the mactrack_cisco.php vendor library with your scanning function and then post the modified file here. Good luck.
I don't have a PIX, so I can not do it.

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks, but do I need to be concerned about the PIX ? These switches are on my local LAN ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

MacTrack requires at least 1 L3 device. If all your switches are L3 and you declare them as such, you won't have a problem, but if they are L2, you will need to get information from either the PIX or an upstream L3 device.

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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness - thanks for the explanation

Streaker69 - could you offer a brief outline of what you did to get these working, as it looks like you have the same switches as I ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests