PHP Notice: Undefined variable:

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
andyk
Posts: 1
Joined: Thu Dec 11, 2008 10:45 am

PHP Notice: Undefined variable:

Post by andyk »

Hi - I'm using CactiEZ 0.8.7b with MACTrack v1.1

I've added a number of devices and a number of them are working correctly, reporting users, MAC, IP's etc. However, a number of them are showing 0 user ports. If I run the mactrack_scanner manually -

php /var/www/html/plugins/mactrack/mactrack_scanner.php -id=23 -d

The output gives me a couple of errors -
[root@localhost ~]# php /var/www/html/plugins/mactrack/mactrack_scanner.php -id=23 -d
DEBUG: HOST: 10.100.190.111 is alive, processing has begun.
DEBUG: Scanning function is 'get_IOS_dot1dTpFdbEntry_ports'
DEBUG: There are 15 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifAlias data collection complete.
DEBUG: ipAddrTable scanning for link ports data collection complete.
DEBUG: ifSpeed data collection complete.
DEBUG: ifDescr data collection complete.
DEBUG: ifMtu data collection complete.
DEBUG: ifPhysAddress data collection complete.
DEBUG: ifAdminStatus data collection complete.
DEBUG: ifOperStatus data collection complete.
DEBUG: ifLastChange data collection complete.
DEBUG: ifInDiscards data collection complete.
DEBUG: ifInErrors data collection complete.
DEBUG: ifInUnknownProtos data collection complete.
DEBUG: ifOutDiscards data collection complete.
DEBUG: ifOutErrors data collection complete.
DEBUG: ifInterfaces assembly complete.

PHP Notice: Undefined variable: ifInterfaces in /var/www/html/plugins/mactrack/lib/mactrack_functions.php on line 517

Notice: Undefined variable: ifInterfaces in /var/www/html/plugins/mactrack/lib/mactrack_functions.php on line 517

DEBUG: Cisco Voice VLAN collection complete
DEBUG: Voice VLANs exist on this device
DEBUG: ifInterfaces assembly complete.
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 20/VLAN0020 is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 30/VLAN0030 is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 40/VLAN0040 is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 50/VLAN0050 is complete. ACTIVE PORTS: 50
DEBUG: VLAN Analysis for VLAN: 101/VLAN0101 is complete. ACTIVE PORTS: 50
I've tried changing the device type from Hub/Switch/Router but I am still getting these errors.

Any help/suggestions gratefully received.

Andy.


Cacti Version - 0.8.7b
Plugin Architecture - 2.0
Poller Type - Cactid v
Server Info - Linux 2.6.9-67.0.4.plus.c4smp
Web Server - Apache/2.0.59 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.54
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • Global Plugin Settings (settings - v0.3)
    Thresholds (thold - v0.3.9)
    Large Site Performane Booster for Cacti (boost - v1.5)
    Device Monitoring (monitor - v0.8.2)
    Network Discovery (discovery - v0.8.4)
    Network Tools (tools - v0.2)
    Syslog Monitoring (syslog - v0.5.2)
    Device Tracking (mactrack - v1.1)
    RRD Cleaner (rrdclean - v1.1)
    Update Checker (update - v0.4)
    FlowView (flowview - v0.4)
    Host Info (hostinfo - v0.2)
    Error Images (errorimage - v0.1)
    PHP Network Weathermap (weathermap - v0.941)
    Create Aggregate Graphs (aggregate - v0.63)
    Documents (docs - v0.1)
    report it! (report it! - v0.5.0)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you solve this issue? If not, can you please attach your mactrack_functions.php to this post.

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