Page 1 of 1

Esxi MIB's

Posted: Mon Jan 25, 2016 6:46 am
by sutenag
Hi.

I wanna use vmware MIB's with snmp to monitoring servals esxi hosts hardware like powersupply failure and cooling system down etc. NagiosXI version 5.2.3 , centos 6.7.

i have done https://assets.nagios.com/downloads/nag ... ios_XI.pdf and Integrating_SNMP_Traps_With_Nagios_XI.pdf

Uploaded servals MIB's to the nagios server as the attached file.

What is the next step? I have try to run the snmp, snmpwalk and snmp trap wizard but cant see any mib to add in the wizard.
snmp service is running on the esxi hosts and all ports are open for this. How is this done, to get it to work?

Re: Esxi MIB's

Posted: Mon Jan 25, 2016 2:08 pm
by lmiltchev
Do you want to use active SNMP checks (run on the Nagios XI server) or you want to use passive checks (SNMP traps, sent to the Nagios XI server)? Can you elaborate?

Can you run successfully snmpwalk against the ESXi server from the command line?

Code: Select all

snmpwalk -v2c -c <community> <ip address>

Re: Esxi MIB's

Posted: Tue Jan 26, 2016 4:36 am
by sutenag
Active snmp checks, nagios do an poll from the host. see attached file about check command. It seems to find all mib files i have upload but they are not showing up when i run the snmp wizard?

I have also attached an screen with the snmp services that are avaiable in the snmp wizard.

Re: Esxi MIB's

Posted: Tue Jan 26, 2016 1:52 pm
by lmiltchev
In Step 1 of the "SNMP Walk" wizard, clear the "OID" field completely (leave it blank), increase the timeout if needed, and increase the "Max Results" from 100 to let's say 100000.
Select "Force Scan"="Yes", and click on "Next".
See if you are going to get more MIBs in the output.

One of my co-workers (Tom) also pointed out that you will need to add our custom mibs to a file "/etc/snmp/snmp.conf" in the following format:

Code: Select all

mibs +VMWARE-CIMOM-MIB
mibs +VMWARE-ENV-MIB
Note:
1. The file probably doesn't exist on your system, so you will need to add it manually. Set permissions as "root:nagios".
2. Make sure that the actual name of the MIB is consistent with the filename and whatever you place in the "snmp.conf". You can open each MIB file in a text editor to see the actual name.

You can also add ALL MIBs by adding the following line in the "/etc/snmp/snmp.conf":

Code: Select all

mibs +ALL
There is a danger of running into some errors if you load all MIB files this way. Also, the snmpwalk can take a longer time to complete.

Hope this helps.

Re: Esxi MIB's

Posted: Wed Jan 27, 2016 3:12 am
by sutenag
Yes :)

It was enough to increase the timeout and numbers to 1000, then all mib's shows up.

Re: Esxi MIB's

Posted: Wed Jan 27, 2016 10:59 am
by rkennedy
Glad to hear. Are we good to mark this thread as resolved then?

Re: Esxi MIB's

Posted: Thu Jan 28, 2016 8:27 am
by sutenag
Yes we can do that, next thing i have to figure out is which vmware mib is for hardware and for what part, for example what mib is for the powersupply failure and what mib is for the cooling fan on the cpu, so on.

Re: Esxi MIB's

Posted: Thu Jan 28, 2016 9:53 am
by lmiltchev
I am glad your issue has been resolved! I will be locking this post now. If you have any more questions/issues, please start a new thread.