6.3.2 Configuring the host to automatically execute commands
If you want commands to be automatically executed when an alarm event occurs in PFM - Agent or PFM - RM, in the Service Properties window of the Services tree window in PFM - Web Console, you must set the appropriate Action Handler property on the host where the commands will be executed as follows:
-
Script in Capabilities: Yes
The action handler you select in the Action handler of the Command field in the New Alarm > Action Definitions window is used when executing the commands. By default, the Action Handler that is used is the one that resides on the same host as the agent bound to this alarm event (indicated as LOCAL in the Command tab).
For details on the settings for each alarm, see 6.4.5(2) Executing commands.
The actions in which a command is executed by the Action Handler on the same host as a monitoring agent bound to alarm tables are called local actions. The actions in which a command is executed by the Action Handler on the different host from a monitoring agent bound to alarm tables are called remote actions.
The following figure shows an overview of local actions and remote actions.
Figure 6‒2: Overview of local actions and remote actions
The following procedure describes the processing flow by using the numbers displayed in the above figure:
-
If the Agent Collector or Remote Monitor Collector service detects an alarm status change, an alarm event is issued to the Correlator service via the Agent Store or Remote Monitor Store service.
-
The alarm event information is stored in the Master Store service.
-
The Action Handler service receives an alarm event.
When an alarm event is received, the Action Handler service executes the specified command.
When a local action is required, the Action Handler service executes the command on the same host as the monitoring agent.
When a remote action is required, an Action Handler service (a monitoring manager or a monitoring agent) on a different host from that of the monitoring agent executes the command.