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.
Solved! Go to Solution.
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.
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.
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.
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.
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
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.