It would be really nice to be able to schedule the "Pause all alert actions" checkbox when our company is doing maintenance at nights.
Instead of doing it manually every time, it´s an awesome function but would be nice to be able to schedule it.
/M
Thumbs up from me! Wish I could find the flag for this option in the DB so that I can script it!
This can be done through the API, probably, but it definitely needs to be available out of the box!
@dgsmith80 here is the query for it:
SELECT SettingID, Name, Description, Units, Minimum, Maximum, CurrentValue, DefaultValue, HintFROM Orion.Settings where SettingID like 'AlertEngine-PauseActionsOfAllAlerts'
Based off the comment that @acurrent left, I added a task to my patching automation to pause alert actions before patching my Orion environment. You'll need to replace the <Username>, <Password>, <Server> and <SwisUriSystemIdentifier> if you want to use this in your environment. This could be adapted to PowerShell or the language of your choice. I've been using cURL for API calls from the patching environment because it is more OS agnostic.cURL -k -u <Username>:<Password> https://<Server>:17778/SolarWinds/InformationService/v3/Json/swis://<SwisUriSystemIdentifier>/Orion/Orion.Settings/SettingID="AlertEngine-PauseActionsOfAllAlerts" -X POST -H "Content-Type: application/json" -d "{\"CurrentValue\":1}"To resume alert actions, you'd just change CurrentValue back to 0 (zero).
You can get your SwisUriSystemIdentifier by running the SWQL query below.SELECT SettingValue FROM Orion.WebSettings WHERE SettingName='SwisUriSystemIdentifier'
This should also be available in Service Manager. Pausing alerts as an option before shutting down services to prevent thousands of triggered alerts..