We are currently using a PowerShell script (using the SDK) to add nodes to Orion (everything works perfect). The next step is to add the nodes to alerts. Anyone have a script that can add nodes to alerts or a SQL query?
What do you mean by "add nodes to alerts"? In general, I would recommend designing your alert configurations so that they don't reference specific nodes. Instead, use attributes of the nodes (including custom properties where appropriate) to control which alerts trigger on which nodes.
We use Advanced and Basic alerts for our server nodes ( many reasons why). After we have our script add the nodes and resources to monitor, we have to manually go the Orion server open up Basic Alerts and add the node to the appropriate alerts. We are looking for a way to automate that piece.
There's no API support for editing basic alerts.
If you don't mind continuing the conversation, is there anything blocking you from moving to the new web-based alerting system in NPM 11.5?
It's on my radar to upgrade to 11.5 and look at the web-based alerting system. I know there isn't support via the API, but there has to be a SQL script or something that can I nodes to basic or advanced alerts.