- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 05:55 AM
Morning,
I am looking for help in adding our customer's company names to each CI as it is being discovered. This is very important to how our alerting works.
I don't think the best practice is to have multiple Business Rules to run after each discovery, as it is not very dynamic and not very scalable. I don't particularly want to add or create a new pattern design for the same reason.
Is there a way to add the company name as a property or value to the customer's MID server so each CI picks it up from there?
Any help on the matter would be very much appreciated.
Thanks,
Dan
Solved! Go to Solution.
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 06:16 AM
Dan,
So I actually just implemented this for a client I am working for. Here's how I did it:
- We had to add a reference field at the schedule level that links to the company table.
- We then had to add a pre-post script which modifies the payload and references the schedule that it was running as and adds the company to it.
- This will only work for patterns. For the old probes/sensors you will need to find a different mechanism to do it but honestly I think you only really care about hardware and possibly application CIs so you could add a company mapping from the hardware on the process classifiers as well.
I hope this helps you out!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 06:16 AM
Dan,
So I actually just implemented this for a client I am working for. Here's how I did it:
- We had to add a reference field at the schedule level that links to the company table.
- We then had to add a pre-post script which modifies the payload and references the schedule that it was running as and adds the company to it.
- This will only work for patterns. For the old probes/sensors you will need to find a different mechanism to do it but honestly I think you only really care about hardware and possibly application CIs so you could add a company mapping from the hardware on the process classifiers as well.
I hope this helps you out!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 08:10 AM
Thanks Robert, I think this is what I am after.
May I ask what the line of script you used to retrieve/reference the schedule that activated the pattern.
Cheers,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2019 10:02 AM
They pass in a few values into it that can be used. g_probe.getCorrelator() is probably the one you want as it should have the ID of the discovery schedule which you can then look up the schedule through a glide record query with that.
If you search for that through all the pre post scripts you will see some examples. Hope this helps.