Running an Alarm Script on the vCenter Server Appliance
When alarms on vSphere are triggered by the vCenter Server there is an option to run a script. That script will run on the vCenter Server appliance in Linux. In this article I will explain how to setup the script location and permissions and will show a demonstration script.
First of all let's look at the alarm definition in the vSphere Client. In the image below you see an alarm definition for a virtual machine event. When the VM reaches the powered off state this alarm will be triggered. The script that is configured to run is: /home/vpxd/alarm.sh.