"What is Vcheck?"
Vcheck is a PS script written by Virtu-al, designed to monitor the working status of the VMware Esx/vsphere, which runs on a regular basis through the Windows scheduled task and reports the results of the operation to the administrator via e-mail.
This is a great script! Isn't it?
Click here to Virtu-al's blog to see the list of Vcheck features
"How to install using Vcheck"
The first step is to ensure that the dot NET Framework 2.0 is installed. If not, please put it in first.
The second step is to install Windows PowerShell 2.0
Download Address: http://support.microsoft.com/kb/968929
Step three Install Powercli
The current latest version is Powercli 4.0u1. You can go here to download: http://communities.vmware.com/community/vmtn/vsphere/automationtools/powercli
POWERCLI is a Windows PowerShell plugin that includes more than 150 cmdlet. Vcheck is a script based on POWERCLI.
Step Fourth Download VCheck5 script
Download from here (right-click to save Target as ...), save it to the C:\Scripts directory (you can also save it elsewhere). It is highly recommended that you carefully read Alan's blog so that you can fully understand the script.
Step Fifth Modify the VCheck5 script
There are a few that must be modified.
(1) After a large version of the annotation, add this sentence:
Add-pssnapin VMware.VimAutomation.Core
The purpose of this script is to tune into the VMware cmdlet.
(2) Modify the SMTP server, modify the message sender, recipient.
# You can change the following defaults by altering the below settings:
#
# Set the SMTP Server address
$SMTPSRV = "Mysmtpserver.mydomain.local"
# Set The Email address to recieve from
$EmailFrom = me@mydomain.local
# Set The email address to send the email to
$EmailTo = me@mydomain.local