We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Assistance needed in setting up SNMP monitoring on VMWare

qvfps
qvfps asked
on
Medium Priority
48 Views
Last Modified: 2020-06-17
I am trying to setup SNMP monitoring on a remote VMWare 5.5 server.  

I have a remote VMWare server on which I would like to monitor disk, fan, power supplies suing SNMP.    I have enabled SNMP on the server and I can do a snmpwalk and see all of the OIDs.   I have looked on VMWare's website for information on setting up SNMP monitoring and downloaded the MIB files.  

I am having a problem determining what OIDs I should be polling to monitor storage. The server is setup with direct attached storage in a RAID array.  Has anyone else set this up?  Can you explain how I identify drives, storage pools etc.  All I  need is to know is when there is a problem with a drive.   If I can get just get that a drive has a problem I can go onsite and identify it and get it replaced before another drive fails and bring the server down.
Comment
Watch Question

andyaldersaggar maker's framemaker
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
What make/model server? There may be an easier way than monitoring through VMware.

Author

Commented:
It is an HP ML 150 but the iLO interface always freezes and I can not retrieve information from it.  
Sreejith VanjipattuIT Consultant | Freelancer
CERTIFIED EXPERT

Commented:
You can use HOST-RESOURCES-MIB and WMWARE-RESOURCES-MIB.

HOST-RESOURCES-MIB will give you details of EXSi Host.
Here is the list of ODIs
http://net-snmp.sourceforge.net/docs/mibs/host.html 

For WMWARE-RESOURCES-MIB
https://iphostmonitor.com/mib/VMWARE-RESOURCES-MIB.html 

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Do you have licensed server or FREE?

If you have FREE licenses your cannot monitor via SNMP

As your server is HPE are you using the HPE OEM edition which has the communication links to the hardware?

If you want to monitor the OS otherwise enable SNMP on the iLo card and also enable IPMI

5.5 is end of life!

Author

Commented:
It is a licensed version of VMWare, I have enabled SNMP and I can poll specific OIDs from the server.  I just dont see what OIDs refer to a disk/volume etc.  I have looked at the VM MIB files and I am just not seeing how to identify the OID to pull information on a drive.  

Unfortunately the iLO is finicky on the server and only runs for a short time before it stops responding.  

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
As your server is HPE are you using the HPE OEM edition which has the communication links to the hardware?

Do you have vCenter Server ?

When you connect directly to your server using the vSphere Client, can you see hardware status, fans, cpu, disks etc

Author

Commented:
The image is ESXi-6.5.0-20170702001-standard (VMware, Inc.).   I can see the hardware status of the server from both a direct connection to the Host or through VCenter.  

I just realized I stated the wrong VMWare version.   It is 6.5  not 5.5.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
is it HPE OEM ?

If that is the image profile it may not be the OEM HPE edition, but checking your server, I'm not actually see-ing it on the HCL, which maybe wise not to use the OEM edition, because the server may not work with it...

which then does put this server into an unsupported state...

just checking the HCL again for HP ML 150
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
ProLiant ML150 Gen9 is on the HCL for 6.5 U3, so OEM HPE edition would help.

You'll have to add the HPE  bits from HPE, the offline bundle.

Author

Commented:
I didnt build it.  But based on the name of the image profile I do not think so.  

I can poll the server.   I am just having an issue identifying the correct OID to poll.  
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Download is here...

https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_ca7c5cf6636640c78a00036722

you will also want to make sure....firmware is up to date, and ESXi 6.5 is at the latest build.

SNMP can also be read from Ilo, ESXi and vCenter Server but it may not show you want you want to detect, and HP Management is better.

Author

Commented:
What would that help with?
andyaldersaggar maker's framemaker
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
I'm not at all sure it will work since the iLO generates the traps and sends them to VMware for forwarding and your iLO may be broken, I would try removing a PSU cable to test.

https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=emr_na-a00026111en_us

Author

Commented:
Ilo is out.   It does not remain connected on this server so I can not rely on it to send alerts or to poll.    It was my first choice but it is not available..  

However I can view the status in vmware and I can poll it if I can figure out what OID i need to query.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
At present you have the wrong version of ESXi installed.

the OEM versions should be installed from HPE, which has all the correct drivers and bits to communicate with the hardware.

if you've not installed the correct version you can add the required bundle, to make up for the short fall...

but if ilO is broken....then.... agents cannot communicate with hardware.

We don't usually have to much around with MIBs, OID.... because we install

1. Correct OEM version of ESXi (or add the bundle).
2. Monitor via vCenter Server, ESXi and iLo.
3. HP Managements Agents are best to monitor.

because often, vCenter Server and ESXi does not notify if hardware is out...

Author

Commented:
I would agree.   But I did not set this server up I am just asked to maintain it and keep it running as it is.   I was hoping to setup monitoring since it is at a location I visit at most once a month and the drives are getting old.  

In VMWare it shows that it can poll the hardware and see the status.   Wether it is accurate or not I will not know until there is a failure.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
that information is available from vCenter Server.
andyaldersaggar maker's framemaker
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Actually it may work with disks but not PSUs ad fans if iLO is broken as AMS does that. AMS is in the bundle.
MIB kit may help https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c04272529

Author

Commented:
a few days after rebooting the server I lose iLO access to it.  I can not ping, view in a web browser or pull SNMP information from it.   (all by IP address).   I need the OID for disks in VMWare which I have not been able to figure out what OID to poll from anything I have found online.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
You will only get an Event Trap from vCenter Server based on an event trigger, e.g. hardware, disk fail.

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-B42AD147-C7AC-48EF-B85B-F6D0F33032F2.html
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
when you log into ESXi do you see the hardware for the Fans, Temp, Disks, RAID, Battery for the RAID controller ?

which SNMP tool are you using ?

Author

Commented:
If I look at hardware status in VCenter or while directly connected to ESXi I can see the hardware status.  

Right now I am retrieving and viewing SNMP information using snmpwalk and snmpget to view the OIDs.  
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
so you don't have a monitoring platform ?
IT Consultant | Freelancer
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
andyaldersaggar maker's framemaker
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
So you wanted to know what VMware resources you had rather than know if a disk had failed after all? If multiple disks go off line a VMware MIB might work since you would lose the array but it isn't going to help much if just one disk dies as VMware will still see the volume. I thought you wanted hard disk status from cpqida.mib.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
I am having a problem determining what OIDs I should be polling to monitor storage

.1.3.6.1.2.1.25.3.2.1.3.6

 HOST-RESOURCES-MIB::hrDeviceDescr.6

This is the LUN. (which is made up of disks). as AndyAlder has stated, you cannot check if a disk is bad from this MIB.
andyaldersaggar maker's framemaker
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
1.3.6.1.4.1.232.3.2.5.1 is the OID for physical drive status.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
it's not shown on ESXi, when a LUN is created.

and for SNMP to respond to a failed disk in an array under Smart Controller, ilO is required and HPE Insight Management Agents and HPE Insight Management Web-based Enterprise Management (WBEM) Providers to be installed on the target device. (as you previously mentioned).
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.