I'd like to create an alarm that triggers a script which runs whenever a VM is deleted within a specific vCenter server. The trigger script is used to collect the "will be deleted Vm's detail info for backup" , I see in the API documentation that I could use the EventAlarmExpression->new (eventType=>'VmRemovedEvent') (or perhaps one of the other eventType's dealing with delete). The problem is that I don't see a way to be able to monitor all VM's delete event within a vCenter server, i can only monitor a specific vm's delete event , So what should i do? could you give me some tips? thanks in advance.
↧