Check_hpasm and cpqsinfo-mib error again

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hombre
Posts: 6
Joined: Wed Oct 08, 2014 4:12 am

Check_hpasm and cpqsinfo-mib error again

Post by hombre »

Hello.
Would you help me to fix this problem and make check_hpasm work?

May be cpqsinfo-mib.mib needed on the ESXi or the Nagios system? I have one. If this file is necessary how to install it?

On the Nagios system check_hpasm was compiled with this parameters:

Code: Select all

./configure --with-nagios-user=nagios --with-nagios-group=nagios --enable-perfdata=yes --with-degrees=yes --enable-extendedinfo=yes --libexecdir=/usr/local/nagios/libexec
Monitored host is Proliant DL380 G7. On this host ESXi5.5 is installed and hp-offline (hp-esxi5.5uX-bundle-1.6-22) and hp-hputils (hp-HPUtil-esxi5.5-bundle-1.6-25) packages.

On the Nagios system:

Code: Select all

 snmpwalk -v 2c -c public 192.168.1.2 sysORDescr
SNMPv2-MIB::sysORDescr.1 = STRING: SNMPv2-MIB, RFC 3418
SNMPv2-MIB::sysORDescr.2 = STRING: IF-MIB, RFC 2863
SNMPv2-MIB::sysORDescr.3 = STRING: IP-MIB, RFC 4293
SNMPv2-MIB::sysORDescr.4 = STRING: IP-FORWARD-MIB, RFC 4292
SNMPv2-MIB::sysORDescr.5 = STRING: UDP-MIB, RFC 4113
SNMPv2-MIB::sysORDescr.6 = STRING: TCP-MIB, RFC 4022
SNMPv2-MIB::sysORDescr.7 = STRING: ENTITY-MIB, RFC 4133
SNMPv2-MIB::sysORDescr.8 = STRING: IEEE8021-BRIDGE-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.9 = STRING: IEEE8021-Q-BRIDGE-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.10 = STRING: IEEE8023-LAG-MIB, REVISION 200706200000Z
SNMPv2-MIB::sysORDescr.11 = STRING: LLDP-V2-MIB, REVISION 200906080000Z
SNMPv2-MIB::sysORDescr.12 = STRING: HOST-RESOURCES-MIB, RFC 2790
SNMPv2-MIB::sysORDescr.13 = STRING: VMWARE-SYSTEM-MIB, REVISION 201008020000Z
SNMPv2-MIB::sysORDescr.14 = STRING: VMWARE-VMINFO-MIB, REVISION 201006220000Z
SNMPv2-MIB::sysORDescr.15 = STRING: VMWARE-RESOURCES-MIB, REVISION 200810150000Z
SNMPv2-MIB::sysORDescr.16 = STRING: VMWARE-CIMOM-MIB, REVISION 201008200000Z
SNMPv2-MIB::sysORDescr.17 = STRING: VMWARE-ENV-MIB, REVISION 201005120000Z
but

Code: Select all

snmpwalk -v 2c -c public 192.168.1.2 1.3.6.1.4.1.232
SNMPv2-SMI::enterprises.232 = No Such Object available on this agent at this OID
and

Code: Select all

./check_hpasm -H 192.168.1.2 --community public -v
CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by tgriep »

You do need to install the MIB file on the Nagios XI server for it to be available for use by the server.
To upload the file, login to Nagios XI gui, Click on "Admin" > "Manage MIBs" on the left hand side, browse and upload the MIB file.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hombre
Posts: 6
Joined: Wed Oct 08, 2014 4:12 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by hombre »

tgriep wrote:You do need to install the MIB file on the Nagios XI server for it to be available for use by the server.
Thank you. I copied this file earlier in the /usr/share/snmp/mibs. After reading your post I checked configuration and CPQINSFO was in the list. After that the monitoring service was restarted, but it did not help to find device with snmpwalk.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_hpasm and cpqsinfo-mib error again

Post by lmiltchev »

Run the following commands:

Code: Select all

snmpwalk -v 2c -c public 192.168.1.2 > /tmp/walk1.txt
snmpwalk -v 2c -c public 192.168.1.2 -On > /tmp/walk2.txt
and upload the "walk1.txt" and the "walk2.txt" that were generated in the "/tmp/" directory.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hombre
Posts: 6
Joined: Wed Oct 08, 2014 4:12 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by hombre »

lmiltchev wrote:and upload the "walk1.txt" and the "walk2.txt" that were generated in the "/tmp/" directory.
Sorry. What exactly would you like to find in this files? They have too much information about the host. I can grep and post here parts of files or diffs between them etc.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by tgriep »

We are trying to see if the system returns the same data as the cpqsinfo-mib MIB file and the whole tree for this OID "1.3.6.1.4.1.232".
Also if it reports the product name.
If you like, you could PM the files instead of uploading them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by DennisPR »

I'm having the same issue "CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device" with a
  • HP DL 360 Gen9
    HP BL 460c Gen9
I've performed the following commands and uploaded the MIB files to nagios XI

Code: Select all

 
snmpwalk -v2c -c public 10.77.254.56 > /tmp/hpbl460cg9-mib.txt
snmpwalk -v2c -c public 10.77.255.60 > /tmp/hpdl360g9-mib.txt
When I run the check_hpasm I still get

Code: Select all

/usr/local/nagios/libexec/check_hpasm -H 10.77.255.60 -C public --perfdata=short -v
CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device
What else can I do pls ?
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by DennisPR »

We solved the issue by installing the HP insight agents
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_hpasm and cpqsinfo-mib error again

Post by tgriep »

Thanks @DennisPR for posting your findings.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mjovel
Posts: 4
Joined: Thu Apr 14, 2016 3:56 pm
Location: San Mateo, California

Re: Check_hpasm and cpqsinfo-mib error again

Post by mjovel »

Hello,

Do this plugin works for Windows Servers 2008 R2 x64 / Proliant Gen 8?

I was getting same error as other report here:

Code: Select all

./check_hpasm -H 192.168.1.2 --community public -v
CRITICAL - snmpwalk returns no product name (cpqsinfo-mib), wrong device
- Then I install the 'HPE Insight Management Agents for Windows Server x64 Editions' and now I don't get any output.
- I know SNMP is working because I can do an SNMPWALK with no problem.

Any advise?

Regards,
Maurice
Locked