Bulk add component monitors with Orion SDK

I'm not seeing a lot on this at this time; can you bulk add component monitors using PowerShell with SDK? I've got something around 380 directories I need to apply a monitor to, and it'd be great if I didn't have to do that manually.

It looks like some API in this area was added in SAM 6.8, released recently! But I am having trouble finding the public documentation that would actually explain how to use it. Let me check with the SAM team.

Would be great with an update to this. I need to somehow make a couple of hundred component monitors in a few application templates, AND also hopefully be able to programmatically add more later to the already created applications. I've been able to run export template, add the xml to the file, however running import creates a new application template while I'd prefer to just add the changes to the one I've exported from.

Have you tried the "Copy Component Monitors within Application Templates" feature yet? That's been built into SAM for years now and it does a great job. You basically build one component monitor in one template, then you can copy that component monitor as many times as you want to either the same template or other templates. It's a pretty handy feature.

Can you provide more details on what you are trying to do as there may be an easier way than what you are currently doing?

Regarding the creation of new components and component templates via SWIS, this was unfortunately omitted in the last release, but as this is desired, the feature is tracked under internal jira ticket: SAM-9636.

I seem to remember a post at some point on the Orion SDK forums (can't find it right now) where you can update SQL data over the API. With that in mind, wouldn't it be possible to send a SQL Update and/or Insert statement to make this possible?

This does exist (search the forum for "ExecuteSQL"), but I would not recommend it for this purpose. The data collection services keep a bunch of in-memory state. Even if you updated the database directly, this state would be out of sync.

SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.