This section is common to all the editions of IT360 - Professional Edition, Enterprise Edition [Probes only] and MSP Edition [Probes only].
On the occurrence of an alarm, a specific program can be executed.
To execute a program, follow the below steps;
Go to 'Admin --> Servers & Applications' and click 'Actions'.
Now, specify the following details, in the Create Action : Execute Program page.
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 execute. Use the Upload Files/Binaries option, to upload the script file.
Enter the Directory to execute Program, 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 alert processing is held up by the program execution. That is, while executing the program, the command runs synchronously in the mail alert processing thread. This will delay all the alerts, following the alerts being processed, until the program execution is completed or terminated.
Note: You can perform the below tasks from the 'View Actions' page;
Edit the action, by clicking the icon.
You can click Add New, for creating more actions.
You can 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 the 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 noises on the server.
Execute a script on a remote server.