Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Support questions about the MAC Track plugin
Moderators: Developers , Moderators
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Tue Oct 05, 2010 6:45 am
I am seeing no user ports up and no active MACs. I think it is centered around this error message:
Code: Select all
CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'<hostname>', and OID:'.1.3.6.1.2.1.17.1.2.0'
snmpget from the command line completes successfully.
Running a php snmp2_get from the command line completes successfully.
Running php in interactive mode and going through the cacti_snmp_get function completes successfully (passing snmp version 2).
Any suggestions as to why this is failing in the script but not when run manually?
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Oct 05, 2010 2:15 pm
It's likely attempting a bulkwalk using the snmp binaries and failing due to a timeout. Increase the timeout of this device. If that does not work, you may have to simply use snmpv1. Who is the manufacturer, and what is the model.
TheWitness
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Tue Oct 05, 2010 3:55 pm
Upped the timeout from 1000 to 1500. Then switched to v1. No luck. All devices are Cisco 6500s with a sup720.
Nate
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Oct 05, 2010 7:19 pm
They should report fine as snmpv2. Without more information, I'll have problems with this one. How about a screen shot of the MacTrack devices page? If it's a sup720 and it's really busy, you may have to due a timeout of 4 seconds.
TheWitness
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Wed Oct 06, 2010 5:07 am
See attached print screen.
These things are not tasked at all. CPU is around 3% for most of them. This is a new network so there is not much traffic right now. The command lines snmpget comes back immediately.
Any thing else I can provide? Appreciate the help!
Nate
Attachments
devices.JPG (135.2 KiB) Viewed 4368 times
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Wed Oct 06, 2010 7:49 am
Please run the mactrack_scanner.php on one of the devices in debug mode and attach the output.
Thanks,
TheWitness
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Wed Oct 20, 2010 6:52 am
Any chance to look at this?
Thanks
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Mon Oct 25, 2010 8:36 pm
Hmm. We need another higher level of Debug. If you do the following:
1) Edit include/global.php and where the check happens for snmp, set the values to FALSE;
2) Rerun the scanner from the CLI and let me know if it works fine now.
TheWitness
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Tue Oct 26, 2010 5:55 am
This was the only line I could find in global.php referring to SNMP:
Code: Select all
$config["php_snmp_support"] = function_exists("snmpget");
Changed to:
Results
Code: Select all
[root@ mactrack]# php mactrack_scanner.php -d -id=5
DEBUG: HOST: <l3 switch> is alive, processing has begun.
DEBUG: Scanning function is 'get_IOS_dot1dTpFdbEntry_ports'
DEBUG: There are 16 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifIndexes data collection complete. '95' rows found!
DEBUG: ifTypes data collection complete. '95' rows found!
DEBUG: ifNames data collection complete. '95' rows found!
DEBUG: ifAlias data collection complete. '95' rows found!
DEBUG: ipAddrTable scanning for link ports data collection complete. '16' rows found!
DEBUG: ifSpeed data collection complete. '95' rows found!
DEBUG: ifHighSpeed data collection complete. '95' rows found!
DEBUG: ifDuplex data collection complete. '50' rows found!
DEBUG: ifDescr data collection complete. '95' rows found!
DEBUG: ifMtu data collection complete. '95' rows found!
DEBUG: ifPhysAddress data collection complete. '95' rows found!
DEBUG: ifAdminStatus data collection complete. '95' rows found!
DEBUG: ifOperStatus data collection complete. '95' rows found!
DEBUG: ifLastChange data collection complete. '95' rows found!
DEBUG: ifInOctets data collection complete. '95' rows found!
DEBUG: ifOutOctets data collection complete. '95' rows found!
DEBUG: ifInNUcastPkts data collection complete. '95' rows found!
DEBUG: ifOutNUcastPkts data collection complete. '95' rows found!
DEBUG: ifInUcastPkts data collection complete. '95' rows found!
DEBUG: ifOutUcastPkts data collection complete. '95' rows found!
DEBUG: ifInDiscards data collection complete. '76' rows found!
DEBUG: ifInErrors data collection complete. '76' rows found!
DEBUG: ifInUnknownProtos data collection complete. '76' rows found!
DEBUG: ifOutDiscards data collection complete. '76' rows found!
DEBUG: ifOutErrors data collection complete. '76' rows found!
DEBUG: ifInterfaces assembly complete: 45350
DEBUG: Adding IfInterfaces Records
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: 0
DEBUG: VLAN Analysis for VLAN: 3/VLAN0003 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 4/VLAN0004 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 215/INFOBLOX-GRID-MASTER is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 899/VLAN0899 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 901/VLAN0901 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 902/VLAN0902 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 903/VLAN0903 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 904/VLAN0904 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 906/VLAN0906 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 907/VLAN0907 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 908/VLAN0908 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 947/VLAN0947 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 950/VLAN0950 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 999/VLAN0999 is complete. ACTIVE PORTS: 0
INFO: HOST: <l3 switch>, TYPE: Cisco IOS Software, s72033_rp Software (, No active end devices on this device.
DEBUG: Scanning function is 'get_standard_arp_table'
DEBUG: atifIndexes data collection complete
DEBUG: atPhysAddress data collection complete
DEBUG: atNetAddress data collection complete
DEBUG: atPhysAddress MAC Address Conversion Completed
DEBUG: atEntries assembly complete.
DEBUG: HOST: <l3 switch>, IP address information collection complete
# php mactrack_scanner.php -d -id=8
DEBUG: HOST: <l2 switch> is alive, processing has begun.
DEBUG: Scanning function is 'get_IOS_dot1dTpFdbEntry_ports'
DEBUG: There are 14 VLANS.
DEBUG: ifIndexes data collection complete
DEBUG: ifIndexes data collection complete. '309' rows found!
DEBUG: ifTypes data collection complete. '309' rows found!
DEBUG: ifNames data collection complete. '309' rows found!
DEBUG: ifAlias data collection complete. '309' rows found!
DEBUG: ipAddrTable scanning for link ports data collection complete. '2' rows found!
DEBUG: ifSpeed data collection complete. '309' rows found!
DEBUG: ifHighSpeed data collection complete. '309' rows found!
DEBUG: ifDuplex data collection complete. '266' rows found!
DEBUG: ifDescr data collection complete. '309' rows found!
DEBUG: ifMtu data collection complete. '309' rows found!
DEBUG: ifPhysAddress data collection complete. '309' rows found!
DEBUG: ifAdminStatus data collection complete. '309' rows found!
DEBUG: ifOperStatus data collection complete. '309' rows found!
DEBUG: ifLastChange data collection complete. '309' rows found!
DEBUG: ifInOctets data collection complete. '309' rows found!
DEBUG: ifOutOctets data collection complete. '309' rows found!
DEBUG: ifInNUcastPkts data collection complete. '309' rows found!
DEBUG: ifOutNUcastPkts data collection complete. '309' rows found!
DEBUG: ifInUcastPkts data collection complete. '309' rows found!
DEBUG: ifOutUcastPkts data collection complete. '309' rows found!
DEBUG: ifInDiscards data collection complete. '292' rows found!
DEBUG: ifInErrors data collection complete. '292' rows found!
DEBUG: ifInUnknownProtos data collection complete. '292' rows found!
DEBUG: ifOutDiscards data collection complete. '292' rows found!
DEBUG: ifOutErrors data collection complete. '292' rows found!
DEBUG: ifInterfaces assembly complete: 136755
DEBUG: Adding IfInterfaces Records
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: 0
DEBUG: VLAN Analysis for VLAN: 3/VLAN0003 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 4/VLAN0004 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 899/VLAN0899 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 901/VLAN0901 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 902/VLAN0902 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 903/VLAN0903 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 904/VLAN0904 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 906/VLAN0906 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 907/VLAN0907 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 908/VLAN0908 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 947/VLAN0947 is complete. ACTIVE PORTS: 0
DEBUG: VLAN Analysis for VLAN: 999/VLAN0999 is complete. ACTIVE PORTS: 0
INFO: HOST: <l2 switch>, TYPE: Cisco IOS Software, s72033_rp Software (, No active end devices on this device.
DEBUG: Scanning function is 'get_standard_arp_table'
DEBUG: atifIndexes data collection complete
DEBUG: atPhysAddress data collection complete
DEBUG: atNetAddress data collection complete
DEBUG: atPhysAddress MAC Address Conversion Completed
DEBUG: atEntries assembly complete.
DEBUG: HOST: <l2 switch>, IP address information collection complete
TheWitness
Developer
Posts: 17047 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Tue Oct 26, 2010 8:09 am
It's almost as if you don't have the bridge mib enabled or the port type is not Ethernet. Looks like we need a higher debug level. Interesting as this method has worked for over 5 years. Something must be different on your equipment. What types of ports are these? Send me a walk of the ifInterfaces table.
TheWitness
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Tue Oct 26, 2010 8:38 am
Attached is a walk of .1.3.6.1.2.1.2.2 for a l3 switch and a l2 switch.
Attachments
l3switch.txt
(77.11 KiB) Downloaded 180 times
l2switch.txt
(263.73 KiB) Downloaded 224 times
scruboy01
Cacti User
Posts: 74 Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US
Post
by scruboy01 » Tue Nov 16, 2010 8:20 am
Have you had a chance to look at this yet?
Thanks,
Nate
Users browsing this forum: No registered users and 1 guest