Looking to see if anyone knows of a method on how to import multiple alert rules in solarwinds. I have 61 unique alerts rules that I need to import for our VPN Tunnel monitoring.
To the best of my knowledge built is tool options do not provide this option, you can do a bulk import/export of alerts into SolarWinds. You can rather do only 1 at a time.
But i do know that a few folks were trying to achieve this through Orion SDK or Scripts, but honestly I am not sure if that was achieved or not. One such examples is mentioned below:
https://thwack.solarwinds.com/product-forums/the-orion-platform/f/orion-sdk/44001/proper-way-to-export-import-alert-configurations-via-sdk
If you do find a way to get this done or if something has changed in the latest version do let me know.
Interesting link. Wonder if you could do a partial restore of the database on the alert configuration table.
You can try the import and export options in the Manage Alerts section.
Not sure how to change AlertRefID values when you import back.
eg: <AlertRefID>f52e699e-8ef1-4dff-a686-4b54d71e591e</AlertRefID>
<d2p1:PropertyValue>301a76fc-35ae-48a4-b576-1968d3f1bcd4</d2p1:PropertyValue>
I had this example powershell script in my repo
github.com/.../AlertArchiver.ps1