Objective: Understand the functioning and use of action models.
The action model
An action model is a predefined command that can be used in the configuration of a user service, an equipment or a unit service.
This command will only be executed when there is a confirmed OK to CRITICAL change of state.
Its implementation is linked to the resolution of problems that include, for example, restarting a service (Windows or Linux) or executing a linux command.
This model catalogue will be enriched according to the needs of our customers.
Predefined action commands
The action templates support the following commands:
|Applicable A||Description||Action control|
|User Service||Writing a variable in the external application PCvue||write_arcinfo_pcvue_variable|
|Equipment||Write to the syslog file of the Linux device associated with the action.||write_syslog_host|
|Execution of a Dos or Powershell command on any Windows device via winexe on winrm.||launch_command_windows_host|
|Unit Service||Execute a command via SSH on any port, on the equipment associated with the service||launch_command_linux_debian|
|Execution of a Dos or Powershell command on any Windows device via winexe on winrm.||launch_command_windows_service|
|Rebooting a service on Debian Linux OS, via SSH, and on the equipment associated with the service.||restart_service_linux_debian|
|Reboot a service on Windows OS, via SSH, and on the equipment associated with the service.||restart_service_windows|
|Write to the syslog file of the Linux device associated with the action. Possibility of not executing this action if the device is in CRITICAL or UNKNOWN state. Possibility of not executing this action if the equipment or the service is under maintenance.||write_syslog_service|
To add an action template, go to the section Configuration and then in the menu General > Action models.
Click on "Add": a configuration window opens.
Fill in the general information then click on " Validate ".
You can add action templates for a user service, an equipment or a unit service.
Modification of an action model
You can modify an action template. To do so, click on the name of the template to be modified.
Deleting an action model
Select the action template to be deleted and then click on the "Delete" button.
Confirm the deletion of the action template.
Using the action model
Assigning the model to a user service, equipment or unit service
To assign an action model to a unit service, go to the section Supervision and then in the menu Technical Operation.
Example : I want to automatically restart the Windows Update service if it stops on my server COPCGRE61.
Select the unit service to configure. The configuration window opens. Go to the Action and choose the pattern of action.
Enter the service to be restarted and click on Validate.
Note The configuration is the same for a user department or a piece of equipment.
Changing the assignment of an action model
To change an action template, proceed as for the assignment. Select the command to be used from the list of action templates.
Deleting the assignment of an action model
To delete an action model from a unit service, go to the section Supervision and then in the menu Technical Operation.
Select the unit service you want to change. The configuration window opens. Go to the Action then select the empty field from the list Model.
Then click on Validate.