Configure Script as a NotificationConfigure Script as a Notification
This topic provides instructions to define and configure a Script as a notification output. ESA allows you to run scripts in response to ESA alerts. You need to define the script using the (Admin) > System > Notifications > Output tab. You can use any script for ESA notifications.
To configure the script as a notification
- Go to (Admin) > System.
- In the options panel, select Global Notifications.
On the Output tab, from the drop-down menu, select Script.
In the Define Script Notification dialog, provide the required information and click Save.
Note: To retrieve alerts information in the scripts, use command line arguments based on the scripting language. For Example:
- If you are using Python as the scripting language, use sys.argv (command line arguments) to retrieve alerts information.
- If you are using Bash as the scripting language, use $*, $1, $2, and $@ (command line arguments) to retrieve alerts information.
Note: Use Temp folder to create files or folders as a part of the script.
For details of the parameters and descriptions, see Define Notification Server Dialogs.