Documentation

Use of action templates

On the page

Need some help?

Introduction

Objective: Understand the function and use of action templates.

Action templates

Definition

An action template is a predefined command that can be used in the configuration of a host, a service or a user service.

The 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.

The available templates will be enhanced according to the needs of our customers.

 

Predefined action commands

Action templates support the following commands:

 

Applies to Description Action command
User Service Writing a variable in the external application PCvue write_arcinfo_pcvue_variable
Hosts 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 or winrm. launch_command_windows_host
Unit Service Execute a command via SSH on any port, on the host associated with the service launch_command_linux_debian
Execution of a Dos or Powershell command on any Windows device via winexe or winrm. launch_command_windows_service
Restart a service on Debian Linux OS, via SSH, on the hostassociated with the service. restart_service_linux_debian
Restart a service on Windows OS, via SSH, on the host 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 host or service is in maintenance mode. write_syslog_service

 

Configuration

Creation of an action template

To add an action template, go to the section Configuration and then in the menu General > Action template.

Action model - Menu2

Click on "Add": a configuration window opens.

Action Model - Add

Fill in the general information then click on " Apply ".

You can add action templates for a host, a service or a user service.

 

Modifying an action template

You can modify an action template. To do so, click on the name of the template to be modified.

Action model - Modification

 

Deleting an action template

Select the action template to be deleted and then click on the "Delete" button.

Action model - Deletion

Confirm the deletion of the action template.

Action model - Deletion2

 

Using action templates

Assigning the template to a host, service or user service

To assign an action template to a service, go to Monitoring and then in the menu Monitoring.

Example : I want to automatically restart the Windows Update service if it stops on my server COPCGRE61.

Action Model - Example

Select the service to configure. The configuration window opens. Go to Action and choose the template.

Action model - Service

Enter the service to be restarted and click on Apply.

Note The configuration is the same for a host or user service

 

Changing the action template

To change an action template, proceed as for the adding. Select the command to be used from the list of action templates.

Deleting an action model

To delete an action model from a service, go to the section Monitoring and then in the menu Monitoring.

Action Model - Example

Select the service you want to change. The configuration window opens. Go to Action then select the empty field from the list Template.

Action model - Service

Action model - Modification2

Then click on Apply.

This may also be of interest to you

ServiceNav STAGE Mozilla Firefox

Monitoring actions

nagios journal 1

Event and notification log

Technical Operation Screen

en_US
fr_FR en_US

Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.

[COVID - 19 ] - TELEWORKING, TARGET AVAILABILITY 100% !

While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and if you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.