VMware Cloud Community
nupurk14
Enthusiast
Enthusiast

vrops, alerts, v6.7

Hi Everyone...!!!

Can anyone guide me how can I get the total alert definitions(expect the one which I have locally disabled) in vrops 6.7 in my environment.

Thanks in advance.

0 Kudos
3 Replies
RickVerstegen
Expert
Expert

Try using PowerCLI (Module VMware.VimAutomation.vROps) and use cmdlet Get-OMAlertDefinition.

Get-OMAlertDefinition can be used to find the available alert definitions in the system. You can filter the output to show alert definitions of a given alert type and subtype.

Hope this is useful for you.

Rick

Please consider marking this answer "correct" or "helpful" if you think your question have been answered correctly.

Was I helpful? Give a kudo for appreciation!
Blog: https://rickverstegen84.wordpress.com/
Twitter: https://twitter.com/verstegenrick
0 Kudos
GayathriS
Expert
Expert

Hi

I dont see anything such which lists out all predefined alerts, I am wondering if we have come across something apart from vmware documentation depending on versions

Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

regards

Gayathri

0 Kudos
sxnxr
Commander
Commander

Getting the alert definitions is easy the problem i thing ( Using REST anyway) is filtering them based on being enabled or not.

I know using rest there is no way to quay the policies so no way to know if they are enabled or not. running https://yourvrops/suite-api/api/alertdefinitions will list all the alert deffs you have. You can filter base on adapterKind, resourceKind and ID but that is about it.

0 Kudos