How to Monitor VMware vCenter Using eG Enterprise?
Once the pre-requisites for monitoring vCenter are in place, proceed to manage the VMware vCenter, For this, follow the steps below:
- Log into the eG administrative interface.
eG Enterprise cannot automatically discover the VMware vCenter. You need to manually add vCenter using the COMPONENTS page (see Figure 1) that appears when the Infrastructure -> Components -> Add/Modify menu sequence is followed. Remember that components manually added are managed automatically.
- In Figure 1 that then appears, specify the Host IP/Name of the vCenter server to be monitored, and assign a unique Nick name to the server.
Since eG Enterprise monitors vCenter servers in an 'agentless' manner by default, the Agentless flag is enabled by default. Then, specify the following for monitoring vCenter in an agentless manner:
- OS: Set OS as Linux, if the vCenter server being monitored is a Linux-based appliance. If vCenter is running on a Windows system, then set OS as some flavor of Windows.
- Mode: Set Mode as SSH, if vCenter server being monitored is a Linux-based appliance. If vCenter is running on a Windows system, then set Mode as Perfmon.
- Authentication type: This is applicable only if the Mode is set to SSH. If you want the remote agent to communicate with a target host via SSH, then you should also pick an encryption type/mode for the SSH connection. The options here are: Password authentication and Keybased authentication. If you want the SSH connection to use the Password Authentication mode, then, first make sure that Password Authentication is enabled on the target host. For the steps, refer to Page 1 of the Administering eG Enterprise document. Then, select Password as the Authentication type. Similarly, if you want the SSH connection to use the Keybased Authentication mode instead, then first make sure that Keybased authentication is enabled on the target host. To know how, refer to Page 1 of the Administering eG Enterprise document. Then, set Authentication type as Keybased. Next, when prompted, specify the Key file name.
- Remote port: If SSH is chosen as the Mode, then this will be 22 by default. Make sure that this port is opened on the vCenter host.
User and Password: This is applicable only if Linux is chosen as the OS - i.e., if the vCenter server being monitored is a Linux-based appliance. Typically, when monitoring any Linux host remotely, you need to configure User and Password with the credentials of an SSH user with rights to access the target Linux host via SSH. However, when monitoring a vCenter server appliance remotely, the SSH user whose credentials are to be provided here should also have shell access. In this case therefore, configure User and Password with the credentials of an SSH user who has shell access. Alternatively, you can grant shell access to any SSH user whose credentials are configured here. To achieve this, do the following:
- Make note of the User and Passwordspecified here for an SSH user.
- Then, login to the vCenter appliance as a root user.
- Open the shell prompt.
Run the vipw command. This command is used to edit the file /etc/passwd.
If the command runs successfully, the contents of the /etc/passwd file will be displayed in editable mode.
In the contents, look for an entry that begins with the user name you noted in step 1. For instance, if the remote agent connects to and monitors the vCenter appliance as user elvis, then look for an entry that begins with elvis. Typically, this entry will be as follows:
Change this entry as follows:
- Finally, save the file.
- Remote Agent and External Agent: From the Remote Agent drop-down, pick a remote agent for monitoring the vCenter server in an agentless manner. Next, assign one/more External Agents for monitoring the network connection to the vCenter host.
- Finally, click the Add button to add the vCenter server.
- Next, try to sign out of the eG admin interface.
When you attempt to sign out, a list of unconfigured tests appears (see Figure 2).
Click on any test from the list of unconfigured tests to configure it. Say, you click on the Datacenters test. Figure 3 will then appear.
- To know how to configure the parameters for the tests, refer to Monitoring VMware vCenter.
- Finally, sign out of the eG administrative interface.