Update the state of Alert based on Event Resolution State
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi,
I’m looking to update the state of an alert based on changes to the event resolution state. Specifically, when the event resolution state is set to "Closing", I want the corresponding alert to reflect this change automatically.
Could anyone guide me on how to implement this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
What are your currently event rules doing? What happens now, if 'closing' comes in? Because with a severity of 0 you can update the alerts as well.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Mark,
We don't have any event rule which does this and if 'closing' comes in it does nothing the alert will still be in 'open' state. Could you guide me with steps on how can i achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When you create events in ServiceNow, source tool sends the information to event table 'em_event' for example, node, severity, type, resource name, metric etc., Source tool typically sends a PROBLEM event [info, warning, minor, major, critical] to signal something is wrong with the system it is monitoring [for example CPU is above 90%] and a CLEAR event to signify the issue is Cleared [CPU is below threshold value of 80%].
You can create an event rule to apply event filtering, transform, threshold and binding configuration. Without any event rules, event would still create an alert in em_alert table. When the source tool sends the CLEAR event, alert will be closed automatically using message key relationship.
One of the key fields when it comes to Event Management is 'Message Key'. Source tool will send a problem event with unique message key with one of PROBLEM severities [info and above] and when issue is cleared, it sends a CLEAR event with same 'Message Key'. This will help to identify the clear event should close the alert it opened for PROBLEM event.
When source do not send message key, combination of source+node+type+resource+metric name is taken as message key and when a CLEAR event is received for same combination, it updates alert opened for a PROBLEM event to status of 'Closed'
When source sends an event to ServiceNow, alert is created in ServiceNow and when CLEAR event is sent from source, alert is set to status == 'Closed'.
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you get a chance to review this ?
If my response helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan