Skip to main content
Version: 10.2

Hostgroup Creation based on Hostnames

Introduction

Configure host-to-groups.map to create groups based on hosts.

warning

Apply the configurations shown in the Open iT Core Server.

Configuring host-to-groups.map

  1. Open host-to-groups.map in the Configuration directory, which is by default in C:\Program Files\OpeniT\Core\Configuration.

    Notice that it contains instructions on how to edit the file.

  2. Specify host names with the following syntax:

    Mapping Syntax
    MAP: <HostGroupName> (<GroupType>)
    <Hostname1>
    <Hostname2>
    info

    It is recommended to include the GroupType, although the mapping will work regardless of its inclusion.

    Empty lines are allowed — any line beginning with # as the first non-whitespace character is considered a comment. Globbing is also supported, allowing you to use several globbing patterns; however, remember that they are slower than exact matches. To make your mapping files more effective and efficient, refer to the Optimizing Rules to Speed Up Rename or Mapping page.

    In the mapping file, entries are case-insensitive, meaning that capitalization variations, such as 'Hostname' and 'hostname', will be recognized as identical. Also, note that leading and trailing spaces are removed from entries.

    Each host can belong to multiple groups.

    Example
    MAP: MNL-Group (Location)
    mnl*

    This example maps all hosts starting with mnl in MNL-Group and using the Location as group type.

    You can also include custom configurations in this mapping file, such as default mapping, setting date limits on specific mapping entries, or creating nested maps.

  3. Save the changes.

This mapping may affect the following data types:

Next Steps?

Proceed with data regeneration after configuring all the necessary mapping files to apply the changes in the real-time and historical reports.

For real-time reports:

For historical reports: