Adding fields to Additional information field on an event (via connector definition)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 06:21 AM
Hello,
I recently began using the vCenter connector with our Event Management module in ServiceNow. Is there anyway for the vCenter connector (and other connectors) to be modified to pull in more fields for the 'Additional Information' field of an event?
My specific scenario is I am monitoring the remaining storage on our datastores. When they have less than a certain amount of storage left, I trigger an alert. However, the alert does not mention how much space is left, it just mentions that it met the threshold. I am looking to add the actual number of GBs left in the datastore.
I have looked around online for a few days and have found nothing.
Any help would be appreciated!
David
- Labels:
-
Event Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 10:06 AM
Hi David,
When you say you want to pull more data out - are you asking to pull more data from the source (in this case from vCenter) into the actual raw event? Or is that storage figure in Additional_info already and you want to parse it using an event rule into the Alert?
Thanks,
-Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 11:11 AM
Hey Ryan,
I want to do the first option... pull more data from the source (vCenter) into the raw event.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 01:39 PM
If you look at the vCenter_JS mid server script include, at around line 900 or so you'll see where we start take into account fields for Additional_info, if you just follow the syntax of ::
if (event.key) {
additional_info["key"] = event.key;
}
I don't think you'll have a problem with us adding more info to Additional_info... let me know how this works for you. I have tried this with other connectors (each are a bit different) and it does work - keep in mind once you modify the script include you'll own it - so you may want to create and modify a copy and use that one.
Thanks,
-Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 10:32 AM
Hey Ryan,
I was able to print out all of the fields coming from the 'event' record. However, I don't see the field I want to pull in. Is there a way to add more fields to the 'event' record? Do I need to update the query itself to pull that field in or am I getting all available fields and if it isn't there then I can't get it?
Let me know!
David