Specify Script - RAM Decrease

Use this dialog box to specify a script to run when an alert is triggered by a decrease of RAM on a machine.

Field Name

Description

Script Name

Enter the name of the script.

Where to Run

Select the agent where you want the script to run from the drop-down list.

Script Parameters

This section displays what parameters will be passed to the script when it is run. The parameters will be passed in the order specified.

  • computer - computer name where the triggering condition occurred
  • current-ram MB - the current value of the RAM in MB
  • old-ram& MB - the previous value of the RAM in MB

Running Scripts in response to an alert

When you define an alert, you can define a script to be run when the triggered condition is met.

  1. Check Run Script on the Alert page.
  2. Press Define. The Specify Script dialog box displays.
  3. Enter the name of the script in the Script Name field
  4. Note: This script name is used to tell the server what script to send to the agent. If the script sent by the aerver is run by the agent, the name of the script will not be the name you specify in the Script Name field. Instead, the agent names the script as temporary file, runs it, then deletes it after the script has run. Because of this, you should not have code in your script that depends on this script name.

  5. Specify where you want the script to run in the Where to Run field. You can select a specific agent or the triggering computer. For example, if an alert is violated on a specific machine, you would typically want the script to run the machine that triggered the alert. (For some types of alerts such as Job Failed, you will not have the option to run the script on the triggering computer.)

    The Script Parameters section displays what parameters will be passed to the script when it is run. Each triggering condition passes different parameters. The parameters will be passed in the order specified on the dialog box.

  6. Click OK. The script will run when the alert is triggered.

See Running Scripts - Overview for more information.