Event Management CI which are not operetional
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 07:59 AM
Hi,
Is there a way to exclude events from CIs which are not operational, or which are not found in the CMDB?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 10:23 AM
HI @George18 ,
I trust you are doing great.
Please find the code that may help you.
(function processEvent(event) {
var ciSysId = event.getValue('cmdb_ci');
var ci = new GlideRecord('cmdb_ci');
if (ci.get(ciSysId)) {
// Check if the CI is operational
if (ci.operational_status.getDisplayValue() != 'Operational') {
event.ignore();
return;
}
} else {
// CI not found in CMDB
event.ignore();
return;
}
// Process event normally if CI is operational and exists in CMDB
// Your event processing logic here
})(current);
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 10:28 AM
Hi Amit, thank you for your reply. In which location do I put this code?
Sorry, I am still trying to learn the whole SNOW platform.
Can I also check based on a metric name of the event?
Thanks again

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 09:34 PM
Hi George
One small Input - By Process if a Ci is not operational in CMDB then how its still getting Monitored by Monitoring Tool?
On your Second Point- If a CI is not found in CMDB still alert will be Created with Node value but it will not be binded with CI Value in Alert Table.
Configuration Item Field will be empty when CI is not found in CMDB - Its OOTB
Regards
rP