All,
There have been recent changes in the behavior of PHP_SNMP that are causing problems with MacTrack. If you encounter these problems. Here is a temporary workaround of IOS and Generic devices.
I will have to make a more formal patch when I am back from my current off site assignment.
The two files, contained herein, need to be placed in the mactrack/lib directory. Make a backup first.
TheWitness
MacTrack Issues Obtaining Ports
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
MacTrack Issues Obtaining Ports
- Attachments
-
- mactrack_lib.zip
- (14.32 KiB) Downloaded 461 times
Last edited by TheWitness on Tue Mar 23, 2010 11:12 pm, edited 1 time in total.
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?
Hello,
I tested your workaround since I seem to have this problem (no active port showing up). Now with the generic devices switch I can get all the ports fine.
What I have here however is a bunch of Nortel BayStack (450, 470 and 5520). When I try to use the norbay_switch device it doesn't seem to work properly...maybe it's the same issue with PHP-SNMP?
Also I see a bunch of :
PHP Notice: Undefined index: trunkPortState in /appl/loc/cacti-0.8.7d/plugins/mactrack/lib/mactrack_norbay.php on line 164
Let me know if there's something I can do to help/test.
I tested your workaround since I seem to have this problem (no active port showing up). Now with the generic devices switch I can get all the ports fine.
What I have here however is a bunch of Nortel BayStack (450, 470 and 5520). When I try to use the norbay_switch device it doesn't seem to work properly...maybe it's the same issue with PHP-SNMP?
Also I see a bunch of :
PHP Notice: Undefined index: trunkPortState in /appl/loc/cacti-0.8.7d/plugins/mactrack/lib/mactrack_norbay.php on line 164
Let me know if there's something I can do to help/test.
Did a bit of testing today, I don't know if it's for this problem but the ifType being returned is ethernetCsmacd(6) instead of just 6.
So I made use of your new function mactrack_strip_alpha and added this to mactrack_norbay.php
For the PHP Notice: Undefined index: trunkPortState issue, it seems there's something missing in the function get_norbay_switch_ports
So I made use of your new function mactrack_strip_alpha and added this to mactrack_norbay.php
Code: Select all
ifInterfaces[$ifIndex]["ifType"] = mactrack_strip_alpha($ifInterfaces[$ifIndex]["ifType"]);
Code: Select all
$ifInterfaces[$ifIndex]["trunkPortState"] = @$vlan_trunkstatus[$ifIndex];
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Check out the updated norbay functions in SVN. You may have to also update a few others. As of right now, I don't think I have broken anything, and have not made any database changes. Make a backup copy just the same.
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?
Who is online
Users browsing this forum: No registered users and 0 guests