Executing Program

On the occurrence of an alarm, a specific program can be executed. To execute a program, follow these steps:

  1. Select the New Action link from the top menu.
  2. Click Execute Program from the Actions in the left frame and specify the following details:
    • Enter the display name for the action.
    • Choose whether the program to be executed is from the local server or from a remote server.
    • If the program is in a remote server, choose the Host Name from the list of existing servers or else you can add a new host.
    • For configuring a new host, enter the following details - Host Name / IP Address, Mode of monitoring (Telnet/SSH), User Name and Password of the host, port number (Default Telnet port no: 23, SSH port no: 22) and then specify the command prompt value, which is the last character in your command prompt. Default value is $ and possible values are >, #, etc
    • Enter the Program to be executed. Use the Upload Files/Binaries option to upload the script file .
    • Enter the directory path from which the script should be executed.
    • The Abort after field is used to specify the timeout value for the program. Specify the time after which the program should be terminated.

      Note: It is important to provide the required time for aborting the command execution since the alarm processing is held up by the program execution. That is, while executing the program, the command runs synchronously in the mail alarm processing thread. This will delay all the alarms, following the alarms being processed, until the program execution is completed or terminated.

  3. Click Create Action to finish. This will list the Execute Program action name and its details along with the other actions configured.
  4. Click Add New for creating more actions or Delete (on selecting the respective action's check box) to delete the action.

After creating an execute program action, you can edit or execute that action. These two tasks can be performed from the "View Actions" page.

  • To edit the action, click the Edit [ ] icon.
  • You can also have a trial execution of the action. To do so, click the Execute icon [ ] of that action.

Note: Passing arguments to custom scripts can be further enhanced by using Replaceable Tags.

Usages : Pointers to where you can use Execute Progam action

  • Integrate a .vbs script to be executed by writing a simple .bat file. With this you can restart a remote service, reboot a machine etc.
  • Execute custom actions like calling a python script or Java class etc.
  • Invoke a .wav file to make some alarm noise on the server.
  • Execute a script on a remote server.
  • Trigger actions like cleaning up a harddisk when the usage exceeds some threshold limit.

Note: Remote Windows Server is not supported