S.I.G.M.A. Network s.r.l. | Via Vinicio Cortese 147/F 00128 Roma | P.IVA/C.F. IT05255401001
Registro Imprese Roma – R.E.A. RM-870189 | Capitale sociale i.v. €10.200,00
Copyright © S.I.G.M.A. Netrwork srl
Cookie | Durata | Descrizione |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Monitoring VMware ESX, ESXi, vSphere and vCenter Server
Monitoring VMware ESX, ESXi, vSphere and vCenter Server
The purpose of this article is to describe how op5 Monitor or Nagios used with the Check VMware API Plugin can be used to monitor your VMware ESX(i) and vCenter servers. You may monitor either a single ESX(i) server or a VMware vCenter Server and individual virtual machines. If you have a VMware cluster you should monitor the vCenter Server and not the ESX/vSphere servers by themselves.
More information can be found in Monitor Virtual Infrastructure with op5 Monitor and in the document What can you monitor in a VMware Server/cluster?
Prerequisites
Before you start you need to make sure you have an account on the server with correct access rights.
In the default installation of VMware ESX/vSphere there is a ‘read only’ profile you should use when creating a new user. That profile has enough rights to be used for monitoring. The user you create must be:
You must install the VMware vSphere SDK for Perl on your op5 Monitor server. Please read the how-to about Installing vSphere SDK for Perl for instructions.
If you want to monitor a VMware 5.1 environment please read the Installing vSphere SDK for Perl 5.1 how-to.
This will be done
We will go through:
Check commands
Add the required check-commands, if they don’t already exist in your configuration (‘Configure’ -> ‘Commands’ -> ‘Check Command Import’):
You should also define a username and password in /opt/monitor/etc/resource.cfg to hide this information from the CGI:s:
$USER11$=username
$USER12$=password
Note:We’ll use the $HOSTALIAS$ macro in the command_line because we need to use the VM-names as they are defined in your VMware server. Set this name as an Alias in the host definition. These changes don’t affect the history of your host.
The following commands should be preconfigured in op5 Monitor, if any is missing use the function “Check command import” from the configuration utility
Commands for ESX(i) Datacenter/vCenter
Commands for ESX(i)/vSphere Hosts
Commands for virtual machines on ESX(i)/vSphere servers
Commands for ESX/vSphere Hosts through your Datacenter/vCenter
Generic commands for ESX(i)/vSphere
There are three generic commands for check_vmware_api which could be used if you want to monitor anything not mentioned in the tables above. If you do not have them in your system you may add them with the import functionality in op5 Monitor (‘Configure’ -> ‘Check Command Import’).
Adding the services
Add the required services, (‘Configure’ -> ‘Host: ‘ -> ‘Go’ -> ‘Services for host ‘ -> ‘Add new service’ -> ‘Go’):
Add the following services (Arguments are just examples, you need to adjust them to suite your environment).
Services for ESX(i) Datacenter
warning!critical
warning!critical
Services for ESX(i) hosts
Services for virtual machines on ESX(i)/vSphere server
102400!204800
Services for virtual machines through your Datacenter/vCenter
!102400!204800
Services for ESX/vSphere Hosts through your Datacenter/vCenter
!102400!204800
Notes:
* Warn and critical in percent.
** Warn and critical in kb/s
*** Anything else than “green” as response results in a Critical state
**** Any issues found results in a Critical state
***** Warn and critical in ms
“” as the last char on each row means that the command is split for readability, should be on one line.
Ranges for Warning and Critical thresholds:
10 < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. ∞})
~:10 > 10, (outside the range of {-∞ .. 10})
10:20 < 10 or > 20, (outside the range of {10 .. 20})
@10:20 ≥ 10 and ≤ 20, (inside the range of {10 .. 20})
10 < 0 or > 10, (outside the range of {0 .. 10})
Articoli recenti
Categorie
Recent Posts
Ciao mondo!
20 Settembre 2022Improving Your Technology
13 Novembre 2019Apply These 5 Secret Techniques
13 Novembre 2019Calendar