I have created a custom alert view and scoped to show alerts related to group of servers.
Alert view Criteria: Resolution State - New, Severity - Warning and Critical, Group - "Group 1"
I am trying to query the Operations Manager database to show the alerts with same criteria using below query.
select MonitoringObjectName, ResolutionState, Priority, Severity, TimeRaised, TimeAdded, TimeResolved, AlertStringName, AlertStringDescription from AlertView where ResolutionState = '0' AND (Severity = '2' or Severity = '1')
AND
MonitoringObjectId IN (select TargetObjectId from RelationshipGenericView
where SourceObjectDisplayName = 'Group 1')
in Console i see both warning and critical alerts where as in SQL query output i see only critical alerts. Could you please correct if I am using wrong query. also please share your suggessions if i am completely wrong on this.
Kind Regards,
Bommi
~Bommi