Last week I realized this configuration at a customer, and I used this chance to finally put on paper the needed steps. You will find in the link the PDF guide. As usual, suggestions and comments are welcome.
How to use an APC UPS to shutdown vSphere environments (PDF)