Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
A custom alert action is a way for Opsgenie users to quickly and effectively react to alerts. A custom action can be used as contextual information, or it can be an automated action such as pinging a server, creating a ticket, or running a query.
Opsgenie enables creating up to ten custom actions for each separate alert.
Go to Settings > Integrations.
Find the integration you’d like to create a custom action, and select Add.
Select Advanced button from the header to view all settings.
Find Actions under Alert fields.
Enter a name for each action. Press Enter to add more actions.
Opsgenie uses callbacks to pass alert activity information into systems that are not accessible from the public internet. When a user executes an action on an alert, Opsgenie sends an OEC action and passes the information. Opsgenie alerts and executes any executables or script types supported by OEC, for alert actions.
This means, users can execute custom actions by combining the abilities of OEC and custom alert actions.
To run a custom action with OEC, you must first create a custom action in the integration described above. Then,
Go to Settings > Integrations.
Search for OEC and select Add.
Scroll to Opsgenie to OEC in the integration settings and create an action mapping for the custom action you’ve created. Learn more about action filters in Opsgenie.
According to the action mapping, when OEC gets the user and alert data, it will execute any executables or script types supported by OEC, associated with the relevant custom action. View sample OEC scripts. Learn more about how to configure OEC for executing these custom scripts.
This will execute the command for the custom action, and OEC will take action according to that.
Was this helpful?