oem.tgz with native NUT client for ESXi (Network UPS Tools)
I wrote a small oem.tgz including a NUT client to gracefully shutdown an ESXi host when a NUT server raises an alert on power failure.
It includes a small tool to send an email alert on poweroff.
The oem.tgz can't be used out of the box. You will have to extract files, edit the upsmon.conf file to match your NUT configuration and repack the archive.
You can also edit the notify.sh script to set the destination mail address for alerts (defaults to root@yourdomain, yourdomain is guessed fron ESXi hostname domain).
file can be downloaded here : oem.tgz
More explanations here (in french) : Client nut natif pour vmware esxi
Hope this will be useful.