Using vmware vsphere 6.7 and vim25 apis.I have a third party plugin in vsphere web client.I need to trigger a method in my third party plugin(code in java) whenever a host is added in the vcenter cluster i.e. I need to monitor the addition of hosts in realtime.Currently the plugin is polling (for every 5 minutes) for the hosts present and accordingly triggering the corresponding method.But for a rare task like addition of hosts ,polling every 5 minutes gives performance issues.
So,my question is that how shall I get realtime notification from vcenter on such kind of events and trigger our third party code?
I have searched for methods like waitForUpdatesEx but not quite sure whether it would work or not.
Thanks in advance
Hi,
These posts are dated but they are fine.
Events notification email is posible in vcenter 5.1
Is there a way to be alerted to new servers created in VMware (vsphere 5) - Spiceworks
Alessandro Romeo
Hey,thanks for your response.I will look into it.Notifications mails are fine,but I am looking for getting the notification of host addition in the code itself without involving any mail .