SNMP Get Failing - No user ports reported

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

SNMP Get Failing - No user ports reported

Post by scruboy01 »

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP Get Failing - No user ports reported

Post by TheWitness »

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
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?
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

Upped the timeout from 1000 to 1500. Then switched to v1. No luck. All devices are Cisco 6500s with a sup720.

Nate
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP Get Failing - No user ports reported

Post by TheWitness »

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
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?
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

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
devices.JPG (135.2 KiB) Viewed 4367 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP Get Failing - No user ports reported

Post by TheWitness »

Please run the mactrack_scanner.php on one of the devices in debug mode and attach the output.

Thanks,

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?
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

See attached
Attachments
mactrack_scanner-output.txt
(3.45 KiB) Downloaded 194 times
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

Any chance to look at this?

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP Get Failing - No user ports reported

Post by TheWitness »

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
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?
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

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:

Code: Select all

$config["php_snmp_support"] = 0;
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
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SNMP Get Failing - No user ports reported

Post by TheWitness »

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
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?
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

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

Re: SNMP Get Failing - No user ports reported

Post by scruboy01 »

Have you had a chance to look at this yet?

Thanks,
Nate
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests