Esxi MIB's

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Esxi MIB's

Post 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?
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: Esxi MIB's

Post 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>
Be sure to check out our Knowledgebase for helpful articles and solutions!
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Esxi MIB's

Post 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.
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: Esxi MIB's

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Esxi MIB's

Post by sutenag »

Yes :)

It was enough to increase the timeout and numbers to 1000, then all mib's shows up.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Esxi MIB's

Post by rkennedy »

Glad to hear. Are we good to mark this thread as resolved then?
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Esxi MIB's

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Esxi MIB's

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked