cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 12

Bulk add component monitors with Orion SDK

Jump to solution

Greetings,

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.

0 Kudos
1 Solution
Level 19

At this time, SAM supports programmatically assigning existing application templates to nodes, but there is no API for customizing the templates or adding arbitrary component monitors.

View solution in original post

0 Kudos
10 Replies
Level 19

At this time, SAM supports programmatically assigning existing application templates to nodes, but there is no API for customizing the templates or adding arbitrary component monitors.

View solution in original post

0 Kudos

Hi Tim, any chance this functionality has been added since this question was posed in 2014?

0 Kudos

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.

0 Kudos

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?

0 Kudos

Hi,

wiki documentation: SAM Application Monitoring Templates · solarwinds/OrionSDK Wiki · GitHub has been improved and we will continue to cover more details.

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.

Hi

Thank you very much for the feedback! It would make our workflow very much easier to be able to script in new components to a template, so I'm very happy this is now getting some attention

0 Kudos

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? 

0 Kudos

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.

Thought so.  Just thought I'd check.

0 Kudos