Hello All,
I have been searching for a way to tell if a vm goes down on a NON-VCSA Esxi host.
So far, no luck.
It there a way using the vSphere client to do this for a running vm?
I suppose I could create a PowerCLi script to run on a windows machine to do this.
Or perhaps creating a cron job on the Esxi host that hosts the vms.
Any suggestions on this? - I hope this is NOT a duplicate post, if it is
please advise on how I can check if my post is a duplicate?
Thanks So Much,
Oliver G
Hi,
https://www.altaro.com/vmware/vsphere-alarms/
See also page 142 of the attachment.
----------------------------------------------------
If you prefer in PowerCli, LucD can help you with more precise indications than mine.
ARomeo
So by “non-VCSA ESXI host” you actually mean a standalone host that is not being managed by vCenter Server.
Alarms are a vCenter Server function, plus the best built-in way of monitoring the state of a VM is HA - which also requires vCenter Server to setup and manage,
Hello AlessandroRomeo68,
I will check the links you sent. I do prefer PowerCLI, etc.
I think I forgot to mention that the host is question in not managed by VCSA.
It is a stand alone host with 2 running vms, version 6.0U3.
I have looked at creating a script on the host itself using commands like: vim-cmd vmsvc/getallvms, etc.
PowerCLI is user friendly - but to use it I have to log on to a Windows VM - windows not so reliable for a "cron" job, etc.
Thanks Again,
Oliver G
PowerCLI is user friendly - but to use it I have to log on to a Windows VM - windows not so reliable for a "cron" job, etc.
You can just use the task scheduler on windows, and you can also install powercli on linux, and do a cron there. I really suggest not doing a cron directly on the appliance or the esxi hosts.
What conditions would you mean by “when the VM goes down” anyway? The actual VM, the guest OS, whatever app/service you’re running through the guest OS, or something else?