VMware Cloud Community
MikeSchreina
Contributor
Contributor

script to query for event errors and warnings?

i want to have any warning or error event in vcenter automatically email me.  I can't seem to figure out how to do this.

I am no script guy, but i sure wish i had one or knew how to do this.  Any ideas?

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

You could use an Alarm to send you an email when the alarm is triggered.

But the trigger can be 1 or more events, not any event.

Perhaps you should give that a go.

Are there any specific events/errors you want to monitor ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
MikeSchreina
Contributor
Contributor

nothhing specific.  an Error or a Warning event and automatically send me an email.

Reply
0 Kudos
LucD
Leadership
Leadership

Andreas did a good post on creating an Alarm triggered by an event (and which uses the available PowerCLI cmdlets).

See his Creating vCenter alarms with PowerCLI

But the available events, although there are quite a lot of them, are still limited.

It depends on what specific error you want to trap, to be able to use an alarm.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos