Cacti interface data with HP Procurve Switches

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
krismc
Posts: 6
Joined: Sat Dec 18, 2004 6:15 pm

Cacti interface data with HP Procurve Switches

Post by krismc »

Hi,

We've just picked up a couple of Procurve 2626 switches to use instead of our normal choice of Cisco but are having some trouble getting Cacti to read the interface information.

We have Cacti installed on a Debian server and the switch has been added as a Generic SNMP device in Cacti using SNMP v2.

Under 'SNMP Information' on the device page, Cacti displays:

Code: Select all

System: HP J4900B ProCurve Switch 2626, revision H.08.67, ROM H.08.02 (/sw/code/build/fish(f04))
...along with the hostname and uptime as usual. The "SNMP - Interface statistics" line in the "Associated Data Queries" shows

Code: Select all

Success [0 Items, 0 Rows]
and the verbose query output is:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
However, when I try to snmpwalk the same OID as cacti appears to be trying, I can enumerate the interfaces:

Code: Select all

support:/var/www/cacti/log# snmpwalk -c community xxx.xxx.xxx.xxx .1.3.6.1.2.1.2.2.1.1
interfaces.ifTable.ifEntry.ifIndex.1 = 1
interfaces.ifTable.ifEntry.ifIndex.2 = 2
interfaces.ifTable.ifEntry.ifIndex.3 = 3
...etc
Any ideas why Cacti can't see this but I can manually from the same machine that Cacti is installed on?

Many thanks,
Kris
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Post a walk of the entire ifInterfaces tree please. It would appear that the "number of interfaces" value is not being returned:

Code: Select all

+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' 
+ No SNMP data returned 
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?
krismc
Posts: 6
Joined: Sat Dec 18, 2004 6:15 pm

Post by krismc »

Heya,

The following is the output of the entire snmpwalk for that oid.

Code: Select all

interfaces.ifTable.ifEntry.ifIndex.1 = 1
interfaces.ifTable.ifEntry.ifIndex.2 = 2
interfaces.ifTable.ifEntry.ifIndex.3 = 3
interfaces.ifTable.ifEntry.ifIndex.4 = 4
interfaces.ifTable.ifEntry.ifIndex.5 = 5
interfaces.ifTable.ifEntry.ifIndex.6 = 6
interfaces.ifTable.ifEntry.ifIndex.7 = 7
interfaces.ifTable.ifEntry.ifIndex.8 = 8
interfaces.ifTable.ifEntry.ifIndex.9 = 9
interfaces.ifTable.ifEntry.ifIndex.10 = 10
interfaces.ifTable.ifEntry.ifIndex.11 = 11
interfaces.ifTable.ifEntry.ifIndex.12 = 12
interfaces.ifTable.ifEntry.ifIndex.13 = 13
interfaces.ifTable.ifEntry.ifIndex.14 = 14
interfaces.ifTable.ifEntry.ifIndex.15 = 15
interfaces.ifTable.ifEntry.ifIndex.16 = 16
interfaces.ifTable.ifEntry.ifIndex.17 = 17
interfaces.ifTable.ifEntry.ifIndex.18 = 18
interfaces.ifTable.ifEntry.ifIndex.19 = 19
interfaces.ifTable.ifEntry.ifIndex.20 = 20
interfaces.ifTable.ifEntry.ifIndex.21 = 21
interfaces.ifTable.ifEntry.ifIndex.22 = 22
interfaces.ifTable.ifEntry.ifIndex.23 = 23
interfaces.ifTable.ifEntry.ifIndex.24 = 24
interfaces.ifTable.ifEntry.ifIndex.25 = 25
interfaces.ifTable.ifEntry.ifIndex.26 = 26
interfaces.ifTable.ifEntry.ifIndex.63 = 63
interfaces.ifTable.ifEntry.ifIndex.4158 = 4158
Kind regards,
Kris
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sorry,

You did not follow my instructions. Please walk the following:

.1.3.6.1.2.1.2.2

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?
krismc
Posts: 6
Joined: Sat Dec 18, 2004 6:15 pm

Post by krismc »

Sorry about that.

Txt file attached this time.

Many thanks,
Kris
Attachments
snmp.txt
(34.92 KiB) Downloaded 327 times
krismc
Posts: 6
Joined: Sat Dec 18, 2004 6:15 pm

Post by krismc »

Update:

We've just had someone else query these switches using their own Cacti install which seems to work as expected:

Code: Select all

+ Running data query [1]. 
+ Found type = '3' [snmp query]. 
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml' 
+ XML file parsed ok. 
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' 
+ Located input field 'ifIndex' [walk] 
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1' 
+ Found item [ifIndex='1'] index: 1 [from value] 
+ Found item [ifIndex='2'] index: 2 [from value]
:o
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look in your Apache error log for some interesting entries. Also, please confirm wether or not you are using php_snmp.

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?
krismc
Posts: 6
Joined: Sat Dec 18, 2004 6:15 pm

Post by krismc »

Interesting indeed:

error.log contains the following after I try to requery the interfaces:

Code: Select all

Unknown output option passed to -O: Q.
Usage: snmpwalk [options...] <hostname> {<community>} [<objectID>]

UCD-snmp version: 4.2.3
  -h            this help message.
  -H            Display configuration file directives understood.
...and the rest of the usage guidelines
Kris
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's what I thought. What is happening is that since you don't have the PHP extension php_snmp loaded/built, Cacti is using the snmp binaries, which in your case are quite dated.

So, I guess I would definately update the net-snmp binaries and get away from the ucd-snmp (no longer under development) ones. If you update to net-snmp 5.2.x or even 5.1.x, you should be Ok.

Also, if you have a more recent version of PHP and the php_snmp library, it will speed the interface a bit.

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?
Pep
Posts: 4
Joined: Thu Mar 10, 2016 3:26 am

Re: Cacti interface data with HP Procurve Switches

Post by Pep »

Hello,

i have nearly the same problem. I have an ProCurve 1810G.

Cacti is showing the snmp data on the device list:

Code: Select all

HP Switch (192.168.178.250)
SNMP Information
System:HP ProCurve 1810G - 24 GE, P.2.2, eCos-2.0, CFE-2.1
Uptime: 1541700 (0 days, 4 hours, 16 minutes)
Hostname: PROCURVE J9450A
Location: Keller
Contact: User

Code: Select all

snmpwalk -v 2c -c public 192.168.178.250 .1.3.6.1.2.1.2.2
return nearly the same as krismc.

My NET-SNMP version is 5.4.3

and when i klick on "Verbose Query" i get only:
+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 25
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned
In my apache.log there are no matching errors
Can someone help me there?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests