How to monitor the esxi and vmware servers using nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

How to monitor the esxi and vmware servers using nagios core

Post by Gonela »

Hi Team,

Can anybody tell that how to monitor the esxi and vmware server using nagios core. Is there any document or URL for this.
I want to know end to end process.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to monitor the esxi and vmware servers using nagios

Post by lmiltchev »

These are the steps you would need to take:

1. Install the prerequisites for the MVware SDK
2. Install the VMware Perl SDK on the Nagios Core server
3. Install a suitable plugin that can be used to monitor ESXi servers
4. Test the plugin from the command line to make sure it works
5. Create a command and services

For step 1 and 2, you could follow the document below. It's about Nagios XI, but installing the prerequisites and SDK on Nagios Core would be the same.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

For step 3, I would recommend using the check_vmware_api.pl plugin. You can obtain it from here:

https://github.com/op5/check_vmware_api

Place it in the plugins directory (usually /usr/local/nagios/libexec), and test it by running:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -h
If you can view the usage, you could start testing your checks, and adding your command, and services. It's easier in Nagios XI as you could simply run the vmware wizard. In Nagios Core, you would need to add check manually. Please review our official Nagios Core documentation on object definitions here:

https://assets.nagios.com/downloads/nag ... tions.html

Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked