Monitoring hardware health of ESXi host

That can be done by the esx-health.pl script.

Requirement

The monitoring script must be launched from a host with the vSphere SDK for Perl installed.

Reference Monitoring VMWare vSphere 4 for installation steps.

The script

Download script from: http://blog.peacon.co.uk/wiki/Esx-health.pl_code

A local copy of esx-health.pl.

Example

Suppose we want to check a host:

  • without proper sensor support for Power Supply
  • send email when there is a problem
  • send email when a problem recovered / more problems appear
  • do not send email when no problem
esx-health.pl --server esxi.example.com --portnumber 9443 \
  --username nagios --password m0n1T0r \
  --exclude "Power Supply" \
  --reportname /tmp/esx-host-health-report.html \
  --statusfile /var/log/esx-health-status.txt \
  --logfile /var/log/esx-health.log \
  --warnonalerts --warnonchange \
  --mailhost mail.example.com --mailfrom root@example.com --mailto alert@example.com
tips/monitoring_hardware_health_of_esxi_host.txt · Last modified: 2011-12-23 16:04 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0