Hi,
I have defined a very simple alarm action in VCSA 5.5 based on "VM migrated" at the Data Center object as the trigger event.
The alarm action is to run a command which invokes a very simple shell script as below:
>>>>>>>>>>>>>>>>>>
#!/bin/bash
echo `date` ${VMWARE_ALARM_EVENT_VM} migrated to ${VMWARE_ALARM_EVENT_HOST} >> /tmp/VMTestLogs/vMotion.log
>>>>>>>>>>>>>>>>>
The problem I encountered is that there seems to be intermittent failures in getting the alarm action.
My script is not getting invoked consistently with every vMotion, when I did vMotion back and forth
between the same two hosts:
vCenter_44:/tmp/VMTestLogs # more /tmp/VMTestLogs/vMotion.log
Fri Sep 12 14:09:43 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
Fri Sep 12 14:15:40 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
Fri Sep 12 16:02:34 UTC 2014 EP3_lite (1) migrated to 10.150.11.1
Fri Sep 12 16:10:26 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
Fri Sep 12 16:21:36 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
Fri Sep 12 16:28:20 UTC 2014 EP3_lite (1) migrated to 10.150.11.1
Fri Sep 12 16:35:09 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
Fri Sep 12 16:50:42 UTC 2014 EP3_lite (1) migrated to 10.150.11.1
Fri Sep 12 17:02:08 UTC 2014 EP3_lite (1) migrated to 10.150.11.1
Fri Sep 12 17:44:07 UTC 2014 EP3_lite (1) migrated to 10.150.44.1
The vCenter Events log below shows that even although the alarm of interest always occurred, it did not
always trigger an action:
Any help would be much appreciated.
Thanks.