Starting Scripts and Applications in Response to an Event
Previous  Top  Next

We can start an application or a script on the occurence of certain events. This is done to start administrative scripts to perform corrective actions. For example, if a disk runs low on space, you could start a script that deletes temporary files, or if a service fails, a script could restart it.

Our sample, on the other hand, is kept quite simple again. We just show how to generically start an exe file. To do so, we define a new rule, name "Application starts" below. Again, we use the imaginary event 592 as a filter condition. Therefore, the application will start whenever event 592 comes in.

mwagent-21-021
Starting Scripts and Applications in Response to an Event - Figure 1

The start program action is just a "normal" action:

er-70-004
Starting Scripts and Applications in Response to an Event - Figure 2

In the "Start Program" action's parameters, select the file to run as well as all parameters to be supplied to it (if any).

mwagent-21-022a
Starting Scripts and Applications in Response to an Event - Figure 3

Once this configuration is done, the program will be executed as soon as an event matching the filter condition comes in.