Read the Install.txt file. ~ As below.
How to quick install:
1. Get smtp_send.pl from http://www.vmguru.com/files/10/scripts/entry102.aspx
Put the file in the same folder as health_check.sh.
Please read in smtp_send.pl about prerequesites (MIME::Lite) installation.
2. Get MIME::Lite from http://search.cpan.org/~yves/MIME-Lite-3.01/lib/MIME/Lite.pm
I had to create the MIME folder and copy file to /usr/lib/perl5/5.8.0/MIME/Lite.pm on my test system.
cp MIME-Lite-3.01/lib/MIME/Lite.pm /usr/lib/perl5/5.8.0/MIME/Lite.pm
3. Copy health_check.conf.example to health_check.conf
cp health_check.conf.example health_check.conf
4. Edit health_check.conf with maildata (set mailoutput=0 if you do not want to use email) and other adjustments
5. Make sure to open firewall port 25 out
esxcfg-firewall -o 25,tcp,out,smtp_out
6. Make sure that health_check.sh and smtp_send.pl scripts has the right execute permissions
chmod 744 health_check.sh
chmod 744 smtp_send.pl
Thanks for your reply but the link of smtp_send.pl file is not working. And i wants to know how to do all this at ESX server . I wanna make a brief step by step guide.
Copy all the files to a directory on ESX
Remove the .example from the health_check.conf.example script
make the script executable with the command 'chmod 744 health_check.sh'
do you need it to email out? If so, you will need to chmod the smtp_send.pl file aswell.
If not, edit the health_check.conf script, mailout=0 instead of 1
Run the script.
Here's the attach file you need. Read here for details on the script file
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!
iGeek Systems Inc.
VMware, Citrix, Microsoft Consultant
smtp_send.pl 3.9 K
Just so you know.
A new release of the ESXHealthScript is out.
Hope you can use it.
If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points.
You needs a smtp to send email to you ?
If no, follow archive ready to use.
1. Copy the health_check.sh to / tmp
2. Run health_check.sh (if necessary change the permissions chmod 775 health_check.sh)
3. This will create a file with the implementation date. Html in / var / log
**If you found this information useful, please consider awarding points for
"Correct" or "Helpful"**
You can also check out these two health scripts I wrote:
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
If you find this information useful, please award points for "correct" or "helpful".