[TODO] norbay undefined index problem

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

[TODO] norbay undefined index problem

Post by zgamer »

PHP Notice: Undefined index: 2 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 234
PHP Notice: Undefined index: 2 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 249
PHP Notice: Undefined index: 3 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 234
PHP Notice: Undefined index: 3 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 249
PHP Notice: Undefined index: 3 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 234
PHP Notice: Undefined index: 3 in /srv/cacti/plugins/mactrack/lib/mactrack_norbay.php on line 249

The lines both deal with: $ifNames[$ifIndex];

$ifIndex returns undefined instead of a value.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is this a problem with the switch's agent? Please advise.

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
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

doesn't appear to be...or if it is it is happening on around 80 baystack 450's.
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

What version of Baystack 450 code are you running? I have this working on a whack of my 450's and they're running firmware v1.48 and software v4.5.1.2.
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

Baystatck: 450-24T
HW Revision: L
Firmware: v1.48
Software release: 4.5.2.4
warnesj
Cacti User
Posts: 173
Joined: Sun May 29, 2005 7:34 pm

Post by warnesj »

Sorry, I just got back from Mexico and I'm catching up. I'll update a couple of my 450's to that code level and see if I have the same problem.
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

It might be something with the Hardware revision as we have about 60 Baystack 450's revisions from the old split-port Bay Networks ones to the newer Nortel ones.
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

For future reference of those who encounter this error. Mactrack did work fine for approximately three months after which time some additional addons were added to cacti which one of them ended up resulting in the formentioned error. This error is causing when the port number called by mactrack prior to rendering is nulled out by another addon referencing the same variable name.

In a nut shell start with a fresh install, add mac track and then the other addons one by one testing mac track after each install. When you mac track stops working whatever the last addon installed is the cause of the conflict in which case you can use that addon or mactrack but not both without re-writing one or the other to not use that variable name.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Which plugin stomped on MacTrack? Another reason to do it in a class library.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests