MacTrack + SNMPv3 and Security contexts

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: MacTrack + SNMPv3 and Security contexts

Post by janchan88 »

TheWitness wrote:This error?

Code: Select all

PHP Notice:  Undefined variable: snmp_readstring in /opt/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 356
TheWitness
Any fix on this?
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: MacTrack + SNMPv3 and Security contexts

Post by janchan88 »

janchan88 wrote:
TheWitness wrote:This error?

Code: Select all

PHP Notice:  Undefined variable: snmp_readstring in /opt/cacti/plugins/mactrack/lib/mactrack_cisco.php on line 356
TheWitness
Any fix on this?
I downloaded the svn and it fixed the issue but i got no mac addresses:

/usr/share/cacti/site/plugins/mactrack# php -q poller_mactrack.php -f
No log handling enabled - turning on stderr logging
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
No log handling enabled - turning on stderr logging
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
No log handling enabled - turning on stderr logging
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
No log handling enabled - turning on stderr logging
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
No log handling enabled - turning on stderr logging
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
03/23/2011 11:39:31 AM - SYSTEM MACTRACK STATS: Time:14.4391 ConcurrentProcesses:7 Devices:4
Attachments
Untitled.png
Untitled.png (33.39 KiB) Viewed 3760 times
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: MacTrack + SNMPv3 and Security contexts

Post by janchan88 »

I also got into the authorizationError...


MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1104/Data-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1504/Voice-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1704/WAP-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
janchan88
Posts: 15
Joined: Tue Nov 03, 2009 6:50 pm

Re: MacTrack + SNMPv3 and Security contexts

Post by janchan88 »

janchan88 wrote:I also got into the authorizationError...


MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1/default is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1104/Data-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1504/Voice-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
Error in packet
Reason: authorizationError (access denied to that object)
DEBUG: VLAN Analysis for VLAN: 1704/WAP-4fl is complete. ACTIVE PORTS: 0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (RFC-1215): At line 0 in (none)
I fixed the above (add "snmp-server group GroupName v3 auth context vlan-1234" in Cisco switch) but i got the following "MAC Address XXXXX on device 'XXXXX' is NOT Authorized" messages


DEBUG: Bridge port information collection complete.
DEBUG: Final cross check's now being performed.
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi3/46, NAME: , MAC: 00:0B:85:77:50:60
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi5/45, NAME: , MAC: 00:0B:85:77:50:D0
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi3/45, NAME: , MAC: 00:0B:85:77:54:10
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi4/46, NAME: , MAC: 00:0B:85:77:55:C0
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi5/46, NAME: , MAC: 00:0B:85:77:56:50
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi4/45, NAME: , MAC: 00:0B:85:77:61:30
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi6/46, NAME: , MAC: 00:0B:85:77:F9:40
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi6/45, NAME: , MAC: 00:0B:85:79:00:10
DEBUG: VLAN: 1701, NAME: WAP#1-1fl, PORT: Gi3/43, NAME: , MAC: 00:0B:85:79:00:40

INFO: HOST: 172.19.225.3, TYPE: Cisco IOS Software, Catalyst 4500 L3 Swi, TOTAL PORTS: 198, ACTIVE PORTS: 9
DEBUG: MAC Address '00:0B:85:77:50:60' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:50:D0' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:54:10' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:55:C0' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:56:50' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:61:30' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:77:F9:40' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:79:00:10' on device 'LIC_1FL' is NOT Authorized
DEBUG: MAC Address '00:0B:85:79:00:40' on device 'LIC_1FL' is NOT Authorized
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests