Page 1 of 2

Check_hpasm and cpqsinfo-mib error again

Posted: Tue Jun 02, 2015 6:54 am
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

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Tue Jun 02, 2015 1:20 pm
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.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Wed Jun 03, 2015 5:07 am
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.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Wed Jun 03, 2015 12:28 pm
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.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Thu Jun 04, 2015 3:48 am
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.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Thu Jun 04, 2015 9:40 am
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.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Thu Dec 08, 2016 7:54 am
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 ?

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Thu Dec 08, 2016 8:30 am
by DennisPR
We solved the issue by installing the HP insight agents

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Thu Dec 08, 2016 2:48 pm
by tgriep
Thanks @DennisPR for posting your findings.

Re: Check_hpasm and cpqsinfo-mib error again

Posted: Sun Jan 29, 2017 2:40 am
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