I'm trying to setup an alarm to email when a OS has crashed. Why is it that vCenter sees the Guest resetting and send an alarm but when it crashes it doesn't, even though it lists it in the events of that VM that it crashed. Why can't VM Error events send an email?
Pretty sure you used to be able to set an alarm for when there was no heartbeat from VMware Tools, and that I tested it with a tool that made Windows blue screen...
Thanks, I think I ran across that. But won't that trigger when a server restarts too?
How else would vSphere know that the guest OS has crashed, given the breadth of guest OSes it supports?
I get that, but why can't I set an alarm from a VM error or off an Event Type ID? I just don't want 100's of emails if a VM restarts or gets shut down for maintenance.
So, this Alarm on the Tools heartbeat is unreliable. I have it alarming when an OS doesn't even crash, or when the OS gets a high memory. And when vSphere detects an OS crash, the heartbeat didn't miss a beat.
Back to my first question, why can't we alarm on vSphere.error when it sees the crash? all the info is there, just throw the alarm
Back to my previous point, how do you think ESXi/vSphere/vCenter actually knows that a guest OS has crashed given the number of guest OSes it supports?
Because it tells me it crashed.
05/06/2021, 1:25:51 PM
on
: Guest operating system has crashed.
And that is way different than the heartbeat. It doesn't give that message with a server that experiences high memory usage.
And where do you see that exactly?
Under the monitor events tab.
I would also like to create an alarm for event vim.event.VmGuestOSCrashedEvent
Did you manage it?
This is what I ended up with, Still flakey. Although it hasn't fired off in awhile 🙂
Hi,
I've added a second condition that checks if VM ist powered on.
@scoutt42 wrote:This is what I ended up with, Still flakey. Although it hasn't fired off in awhile 🙂
Name: VMCrashDescriptionShould detect when a VM OS has crashed.TargetsAll virtual machines in datacenter Cluster_NameAlarm RulesIF VM Heartbeat is equal to No Heartbeat
THEN trigger the alarm as critical and send emails
Seems to me the same. Sadly didn't find any better solution.
William Lam is writing about VEBA but I wasn't able to deploy this appliance.