It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Managed Workplace

Set Up Alert Conditions for Scripts in a Package

  • Last updated on

You can set an alert condition, called a notification, to any script result in a package, which can then be used to generate an alert when the automation package is used in a scheduled task. Notifications are useful when you want to set up individual alerts for scripts in a package, as opposed to an alert for the package as a whole.

To set up alert notifications on a script in a package, you specify the script result that would trigger an alert, and you can provide the message that will  appear in the body of any alert emails generated, for example "Succeeded". An alert email from a scheduled task can include many of these messages in a single email, and you can set up multiple alert conditions for each script.

You should know the return code, standard output, or standard error on which you want to alert before setting up the notification in Service Center.

  1. In Service Center, click Automation > Library.
  2. To access the script package you want to modify, do one of the following:
    • In the Name column, begin typing the name of the script package.
    • Click the triangle beside the Category in which the script package resides.
    Note: Script packages are indicated with a package icon worddav6ba99de8089110c4247b19103d440f6d.png.
  3. Click the name of the script package.
  4. In the Package Content area, click the name of the script for which you want to set a notification condition.
  5. In the Notifications area, click Add.
  6. From the Condition list, select the type of condition.
  7. In the Value box, type the text of the return code, standard error, or standard output that you selected in the previous step.
  8. In the Script Notification Message area, type the message that will appear in the body of any alert emails.
  9. Click Save.

    When scheduling the package as a task, this alert notification appears as "Package Notification Flag Set" when setting up an alert rule. See To add an alert if the script fails to be executed or returns output that is not considered a successful execution.

Last updated on