Templates

Templates are Host configuration models or profiles, with a fixed structure and parameters freely preset by the user.

It is possible to assign one or more Templates to a Host, which will inherit its attributes and configuration parameters (as long as the Host does not already have them defined), serving as the basis for the initial modelling of the element and being able to add additional settings if appropriate.

../../_images/4_088_import-tool_templates-tab_0-58.png

In addition to displaying and facilitating the management of the different templates available, this view is also the space where new templates can be added.

List of Host Templates

This list centralises all the Templates designed and registered in the import tool. In addition, it brings together the main attributes of each of the defined models.

The fields that make up this list are as follows:

../../_images/4_089_import-tool_templates-table_0-51.jpg

✓ Name: identifying name of the template.

✓ Check command: operation command executed internally by the system to determine the status of the Host.

✓ Check period: period of time set for the launching of regular operability checks.

✓ Check interval: specific time interval between two scheduled checks.

✓ Max check attempts: maximum number of status verification check attempts set. The system sets three attempts by default.

✓ Retry interval: time interval between checks, when retrying after a minor error.

✓ Templates: list of secondary templates from which the main template inherits attributes.

✓ Packs: list of Monitoring Packs associated with the template.

Important

A template can inherit (not overwrite) attributes from other predefined generic templates, such as generic-host and generic-BPhost, in fact, it is recommended that any new model inherits the configuration of one of them, so that the basic and minimum monitoring requirements are covered.

The order of selection of multiple templates is very important, as the attributes of each template will be inherited in a sequential order from left to right.

Considering the relevance of these default templates, both can be edited, but actions such as their final deletion or configuration of Monitoring Packs are blocked, as misuse could trigger errors in the application.

The icons for these actions will be greyed out.

../../_images/4_089a_import-tool_templates-locked_0-51.jpg

Actions

Because of their significance, the possible actions applicable in the List of Host Templates, are described below in a separate section.

../../_images/4_090_import-tool_templates-actions_0-51.jpg

Spread Template

The purpose of this action is the propagation of (individual) templates in each of the Import-Tools managed in WOCU. For this purpose, a copy of the selected template in the source Realm will be migrated to the different Import-Tools associated to other monitoring Realms.

Attention

The Spread action will only be enabled for Administrator profiles.

Generic template propagation is not allowed: generic-host and generic-BPhost.

By clicking on this option, the following confirmation message will be displayed:

../../_images/4_114_import-tool_templates-spread-action_0-47.jpg

You are about to spread the [name] template to the rest of import-tools. It would be spread to a total of [number] import-tools. Are you sure?. Note: In case a template with that name already exists, it will be updated.

To proceed with the copying of the template to all managed Import-Tools, it will be necessary to authorise the action by clicking the blue button Spread or otherwise cancel the process by closing the view without making any changes.

After the action has been successfully processed and executed in the system, a dialogue box will appear with the following information:

../../_images/4_115_import-tool_templates-spread-table_0-47.jpg

✓ Template: indica el nombre o identificador formal de la plantilla copiada.

✓ Realm: indicates the source Realm from which the template has been exported.

✓ Summary table: through a tabular format links each Import-Tool available in WOCU where the template will be deposited (column Import_Tool Name), with the resulting status of the action: SUCCESS and FAILURE (column Result). The Message column notes any relevant information about the recently executed action.

Important

When a similarly named template exists, it shall be updated by acquiring the configuration and values of the replicated template. This situation shall be indicated by the text Updated in the Message column of the affected Import-Tool.

Note

The different navigation, search and sorting options present in the view are explained in detail in the section: Common navigation, filtering and sorting options in WOCU.

Duplicate Template

This action allows the duplicate of the template in question, generating an exact copy of it. Before the duplicate becomes effective, the following form will appear with the configuration parameters of the original template for possible editing and updating.

Note

These fields to edit match those described in the section: Create new Template (+ Add Template).

../../_images/4_091_import-tool_templates-duplicate_0-52.jpg

Once the modification is complete (if applicable), it will be necessary to confirm the action by using the Duplicate button to keep this new format in the List of Host Templates.

Attention

You can make use of the forced data refresh button (🔁) located at the top right of the List of Host Templates and display the new entry.

Configuration of Monitoring Packs

This action gives access to the Monitoring Packs assignment and configuration module of each template located in the List of Host Templates.

../../_images/4_104_import-tool_templates_packs_0-46.jpg

A Monitoring Pack is a predefined WOCU model or configuration profile, which performs a certain monitoring function. They are designed according to the latest technologies and their assignment and configuration is completely free. You can consult the complete and updated catalogue of WOCU Monitoring Packs at the following link link.

Important

More information on this module can be found at Configuration of Monitoring Packs (Packs).

Delete template

By clicking on the red Delete button corresponding to the row of a particular template, the template will be permanently deleted from WOCU.

../../_images/4_093_import-tool_templates-delete_0-45.jpg

After pressing the button, the following confirmation message will appear and must be accepted (via the red Delete button) in order to perform the final deletion.

Attention

You can make use of the forced data refresh button (🔁) located at the top right of the List of Host Templates and consolidate the last recorded changes.

Detailed Template Information

By clicking on the name of a particular item, the corresponding detail view will pop up with the configuration values of the different attributes of the Host registered in the system.

../../_images/4_113a_import-tool_templates-info_0-51.jpg ../../_images/4_113_import-tool_templates-info-view_0-59.png

The fields in the information window are described below:

Geolocation

  • Name: name of the template in WOCU.

  • Alias: alternative name of the template.

  • Templates: this field contains a series of tags that refer to other templates from which it is inheriting configuration attributes. Each of the tags corresponds to an applied Template configuration.

  • Packs: this field contains a series of tags that refer to the monitoring profiles assigned to the template. Each of the tags corresponds to a Monitoring Pack applied.

  • Check Command: operation performed internally by WOCU to determine the status of the Host that has that template applied.

  • Business impact: indicates through a scale the importance or significance of the Business Process defined in WOCU.

  • Action Url: definition of one or more optional links for integration with other external tools. Typically used to link against graphing tools such as pnp4nagios.

Timming
  • ✓ Check interval: specific time interval between two scheduled checks.

  • ✓ Max check attempts: maximum number of status verification check attempts set. The system sets three attempts by default.

  • ✓ Retry interval: time interval between checks, when retrying after a minor error.

Hierarchy
  • Hostgroups: indicates the Hostgroups that are associated to that Host that has that template applied.

  • ✓ Parents: indicates the Host with which you have a kinship relationship, which will affect your monitoring in the event of incidents.

Services
  • Service excludes: set of monitoring services excluded from the Host configuration. These services are generated by Monitoring Packs.

  • Service overrides: set of services whose values have been edited, regardless of the values preset by the pack that distributes that service

Contacts
  • Contacts: person to contact in the event of an incident.

  • Contact Groups: group of contact persons in case of an incident.

  • Notifications

Business rules
  • ✓ Business Impact: field to assign, through a six-level scale, the importance or significance of the Business Process defined in WOCU. The possible options are:

    • None. Default predefined value in WOCU.

    • Low

    • Medium

    • High

    • Very High

    • Critical

  • ✓ Business rule output template: field for the design of the template that generates the error message when a Business Process is unsuccessful. The default template defined is: Hosts down of BP $HOST_NAME$: $($HOST_NAME$ )$.

Geolocation
  • Latitude: geographical latitude coordinates of the Host.

  • Longitude: geographical coordinates of the longitude of the Host.

Time Period
  • ✓ Check period: selector of the time frame set for the launch of regular operability checks.

  • ✓ Notification period: timeframe selector for sending notifications to contacts. More information can be found in: Notification Settings.

Macros

Macros are elements that WOCU uses internally to store properties and information of the monitored assets.

Editing configuration values

The system allows changes to be made to the configuration of the Templates from the information modal itself. Through the button Edit you can access the editable form with the configuration parameters of the original Template, for free modification and updating.

../../_images/4_092a_import-tool_templates-edit-button_0-52.jpg

The following configuration form will be displayed:

../../_images/4_092_import-tool_templates-edit_0-52.jpg

Note

These fields to edit match those described in the section: Create new Template (+ Add Template).

Once you have modified the data in the corresponding fields, click on the Save button to save the new configuration. If you prefer to discard the changes you have made, press the Go back button to return to the previous view without making any changes.

Attention

You can make use of the forced data refresh button (🔁) located at the top right of the List of Host Templates and consolidate the last recorded changes.

Massive action to delete Templates

As a basic task in the management of the elements, the application allows a massive deletion of items present in the list or table of Templates.

This process is executed from the following selectors:

../../_images/4_062_import-tool_active_assets-action-delete-massive_0-52.jpg

Selection of items from the list


Clicking on this drop-down lists all possible item selection options. Click on the chosen option and the table will immediately reflect the changes.

The options available are:

../../_images/4_062a_import-tool_active_assets-action-delete-massive_0-52.jpg
  • Select All: selects the complete listing.

  • Select Current Page: selects only the page we are currently positioned on.

  • Select none: does not perform any flagging. Useful for disabling the above options.

Selected records will always be highlighted with a coloured background.

Important

Manual selection of items is also possible by clicking on each item. To mark multiple items, hold down the CTRL key while marking the other options you wish to choose.

Delete action selection


Clicking on this drop-down menu displays a single option for deleting items from the list. Once the items to be removed have been previously chosen and the action has been confirmed, they will be definitively removed from the list.

../../_images/4_062b_import-tool_active_assets-action-delete-massive_0-52.jpg

The system will not apply any changes until the Apply button is clicked and the action is confirmed in the following dialogue box:

../../_images/4_123_import-tool_template-delete-confirmation_0-52.jpg

Important

Since the predefined generic templates generic-host and generic-BPhost are locked, they cannot be removed from the list.

Even if templates are proposed for deletion, the system will exclude them from the action and indicate this in the confirmation message. See the following example:

../../_images/4_124_import-tool_snapshots-delete-confirmation_0-52.jpg

Create new Template (+ Add Template)

WOCU offers the user the possibility to manually enter new Host Templates. As many templates as desired can be added.

Adding a new template will be initiated from the + Add Template button, located on the List of Host Templates, as shown in the following image:

../../_images/4_095_import-tool_templates-add-new_0-50.jpg

The process of designing and creating templates is described below, together with the corresponding fields and parameters to be configured in the following form.

../../_images/4_094_import-tool_templates-add-new_0-52.jpg

✓ Realm name: field that records the name of the Realm where the template will be deposited for use.

✓ Name: field to record the name or formal identifier of the template.

✓ Alias: alternative name for the template. Useful for adding a nickname that is easier to remember.

✓ Check command: operation command to be executed internally by the system to determine the status of the associated Host.

✓ Action Url: definition of one or more optional links for integration with other external tools. Typically used to link against graphing tools such as pnp4nagios.

Timming


../../_images/4_096_import-tool_templates-add-new-timming_0-45.jpg

✓ Check interval: specific time interval between two scheduled checks.

✓ Max check attempts: maximum number of status verification check attempts set. The system sets three attempts by default.

✓ Retry interval: time interval between checks, when retrying after a minor error.

✓ Active checks enabled: checkbox to enable/disable active checks on the Host. By default, this option will be checked.

Hierarchy


../../_images/4_097_import-tool_templates-add-new-hierarchy_0-45.jpg

✓ Parents: indicates the Host with which you have a kinship relationship, which will affect your monitoring in the event of incidents.

✓ Poller Tag: in distributed environments, there are machines (Pollers) that are responsible for discovery and execution of checks for the evaluation of operational states applied on a set of receiving Hosts. By defining a tag in this field, it is configured which Poller will be responsible for this new Host, i.e. it will be in charge of sending checks and discoveries to the Host in question. A Host to be monitored with a poller_tag defined, will only use the Pollers tagged with the same tag, and never others with a different tag or none at all. In conclusion, it is necessary that both parties (Host-Poller) share the same tag.

Contacts


../../_images/4_098_import-tool_templates-add-new-contacts_0-46.jpg

✓ Contacts: field to register the contact user(s) for notification in the event of an incident.

✓ Contacts groups: field to register the contact user group(s) for notification in the event of an incident.

✓ Enable notifications: checkbox to enable/disable sending notifications to assigned contacts. By default, this option will be ticked.

✓ Notification interval: field to record the number of minutes that have to elapse before the contact is notified for a new downtime of the asset.

✓ Notification options: field intended for the definition of the statuses of a Host for which notifications can be sent to a contact. Valid options are a combination of some of the following alternatives:

  • d = notificación de estados DOWN.

  • u = notificación de estados UNREACHABLE.

  • r = notificación de estados UP.

  • f = notificación de la alternancia de estados (Flapping).

  • s = notificación al inicio y finalización del periodo de notificación programado.

  • n = esta opción cancela el envío de notificaciones.

Business rules


../../_images/4_099_import-tool_templates-add-new-BR_0-45.jpg

✓ Business Impact: field to assign, through a six-level scale, the importance or significance of the Business Process defined in WOCU. The possible options are:

  • None. Default predefined value in WOCU.

  • Low

  • Medium

  • High

  • Very High

  • Critical

✓ Business rule output template: field for the design of the template that generates the error message when a Business Process is unsuccessful. The default template defined is: Hosts down of BP $HOST_NAME$: $($HOST_NAME$ )$.

Geolocation


../../_images/4_100_import-tool_templates-add-new-geolocation_0-45.jpg

✓ Latitude: field to record the geographical latitude coordinates of the Host.

✓ Longitude: field to record the geographical longitude coordinates of the Host.

Time Period


../../_images/4_102_import-tool_templates-add-new-time_0-45.jpg

✓ Check period: selector of the time frame set for the launch of regular operability checks.

✓ Notification period: timeframe selector for sending notifications to contacts. More information can be found in: Notification Settings.

Others


../../_images/4_101_import-tool_templates-add-others_0-46.jpg

✓ Event handler enabled: by checking this box, the event handler of the Hosts applying this new template shall be enabled.

✓ Flap detection enabled: by activating this checkbox, the detection of the operational state flapping shall be enabled in the Hosts applying this new template.

✓ Process perf data: by ticking this box, performance data processing shall be enabled for this new template.

Advanced Configuration


../../_images/4_119a_import-tool_templates-add-advanced-configuration_0-59.png

✓ Service overrides: this field allows overwriting the values of the directives of a given service for a given Device in service, regardless of the value pre-set by the pack that distributes that service. Services have by default predefined predefined parameters for their directives (configurable variables). Therefore, from this field it is possible to change these values individually and according to operational needs

This listing must be composed of a single service directive per line, maintaining the format: service,directive value.

Examples

Modify for the CPU Stats service, the period of time for sending notifications to contacts, from 24x7 (predefined value in the pack) to 24x5. To do this, the directive will need to be overwritten with the new time criterion:

CPU,notification_period 24x5

Modify the name of the service HTTP, with a new display_name to display a new name for the service in the interface:

HTTP,display_name web A3sec

Once at least one pack has been assigned, by editing the template the user will be able to exclude or discard one or more monitoring services. Then, for each pack implemented, the set of services generated will be listed.

../../_images/4_119_import-tool_templates-add-advanced-configuration_0-52.jpg

Once the desired configuration is obtained, it is necessary to save and consolidate the changes made by pressing the Create button, or on the contrary, cancel the action through the Cancel option.

../../_images/4_103_import-tool_templates-add-new-save_0-52.jpg

You can make use of the forced data refresh button (🔁) located at the top right of the List of Host Templates and display the new entry.

Important

The different navigation, search and sorting options available on this screen are explained in detail in the section: Common navigation, filtering and sorting options in WOCU.