Managed Entities and Managed Entity Groups
Overview
A managed entity is a logical grouping of samplers on a probe, typically used to group monitoring data from a particular system or area of functionality.
Managed Entities are configured in the Managed entities top-level section of the Gateway setup. Configuration consists of a set of managed entity definitions, each of which contains the configuration for that entity. Each managed entity must be named using a name unique among all other managed entities, so that they can be referenced by this name.
Managed Entity
The minimum configuration for a managed entity consists of the probe that the entity runs on, and a list of samplers. The probe and samplers are specified by referencing the probe or sampler definition by name. An error is raised if you specify a probe that does not exist.
Multiple samplers can be specified in the sampler list, but specifying the same sampler multiple times in a managed entity definition generates a warning. This is because using the same sampler has the same configuration and is therefore monitoring the same systems - it is unnecessary to monitor the same system repeatedly.
How to create and configure a new managed entity
These steps assume that a probe and sampler definition exist to reference in the managed entity. See Probes or Samplers Operation sections for more details on how to do this.
To create a new managed entity using the Gateway Setup Editor, follow the steps below:
- Select the Managed entities top-level section. If this section does not exist, double-click to create it.
- Select the New Managed entity button to create a new entity definition.
- In the Name box, give the new managed entity a unique name. This name is used to refer to the managed entity in other parts of the Gateway. Names are case sensitive.
- In Options, specify the type of probe that this entity is hosted on using the drop-down list. There are three options:
- Probe
- Floating Probe
- Virtual Probe
- Specify the name of the probe using the drop-down list next to your selected probe type.
- To add a sampler, click Add new in the Sampler section.
- Select the sampler using the drop-down list.
Once these steps have been completed, a new managed entity will have been configured on a probe, with zero or more samplers.
This managed entity now appears in the Active Console, and can be examined for monitoring data provided the specified Netprobe is running.
Types
It is often useful to use the same list of samplers across several managed entities. This can be done by using a type (see Types). Types are referenced in a managed entity definition in a similar way to probes and samplers. A warning is generated if the same type is referenced multiple times.
Types can be added to an entity using the Add types setting. When types are added, they can contain an additional reference to an environment (see User Variables and Environments). Samplers referenced from these types resolve variables by looking in the specified environment first.
Types inherited from a containing managed entity group can be removed using Remove types setting. The Remove types setting is processed before the Add types setting, so it is possible to remove a type and then add it back again using a different environment.
Attributes
Managed entities can optionally contain a number of user configured name-value pairs called attributes. These attributes can be used for naming or grouping managed entities for use by other Gateway features. They can also be used by Active Console for searching and sorting purposes. Attributes are typically used with the logical mode of the Active Console state tree.
Attributes are configured as a list of values similar to the list of samplers. Attributes are inherited from a containing managed entity group, and can be overridden by specifying a new attribute value in the managed entity definition. It is a checked error to configure multiple attributes with the same name in a single managed entity definition.
Banner variables
Banner variables allow you to quickly see the value of the most important monitoring metric for a specific managed entity, for example the current CPU load.
Each managed entity can be optionally configured with a single banner variable. The value of this variable is displayed as part of the managed entity icon in Active Console, and is updated as the variable changes.
To configure a banner variable, enable the banner setting in the Advanced tab and supply the name of the data-item to display in the banner. This name can be either an absolute name or a relative name which starts from the managed entity being configured.
Managed Entity Groups
Managed entity groups allow a set of managed entities to be grouped in the Gateway setup.
These groupings can be used to provide a more structured view in the Gateway Setup Editor, but they can also be used to simplify the configuration of managed entities.
As stated above, a managed entity group
can contain definitions for types and attributes.
These are then inherited by any child groups or
entity definitions. Types can be removed by using the
Remove types
setting in a group or
entity definition, and attributes can be overridden
by specifying a new value.
How to create a new managed entity group
To create a managed entity group:
- Right-click on the Managed entities top-level section and select the New Managed entity group option. This creates a new group section.
- Name the managed entity group. This can be a descriptive name e.g. "PATS systems".
- (Optional) Add or remove types to the group.
- Configure attributes for the group in the Attribute section.
- Add managed entities for the group.
- New managed entities can be created in the
group using the New Managed entity button.
- Entities can also be added or removed from the group using drag-and-drop in the Navigation tree.
- (Optional) Add child managed entity
groups.
- Child groups can be added by right-clicking on the group in the Navigation tree and selecting the New Managed entity group option.
Managed entity groups can also be added and removed using drag-and drop in the Navigation tree.
Managed Entity Configuration
Navigation pane
The following sections are available from the Gateway Setup Editor navigation tree, after the appropriate definition has been created.
managedEntities
The managed entities top-level section contains the configuration details of all the managed entities the gateway configures and monitors. This section can contain a number of entities and groups.
managedEntities > managedEntityGroup
A managed entity group allows grouping of managed entity definitions for ease of management.
Groups can contain managed entities and other groups. Contained items inherit any types or attributes specified in the group, which allows an entity to be quickly configured by being placed within the appropriate group.
managedEntities > managedEntity > name
Specifies the name for the managed entity. This name must be unique among all other configured entities, to avoid ambiguity when using the name in other parts of the gateway setup (e.g. rules). The managed entity name is case sensitive.
managedEntities > managedEntity > probe
A named reference to the probe definition. The managed entity will then be hosted on the Netprobe specified by this definition. It is a checked error to specify an invalid probe definition name.
managedEntities > managedEntity > attribute
A managed entity definition can contain any number of attributes. Each attribute is specified as a name-value pair containing a textual value (the attribute value). These attributes can then be used for searching and sorting in Active Console. See Attributes.
managedEntities > managedEntity > addTypes
The add types setting allows Types to be added to a managed entity. Types are referenced by name, and can be linked to an optional environment. See User Variables and Environments.
managedEntities > managedEntity > addTypes > type > environment
The environment setting allows an optional environment to be linked to a type reference, within a particular managed entity definition. Samplers defined in the type will then use this environment to resolve any variables in the configuration. See Types.
managedEntities > managedEntity > sampler
A managed entity definition can contain any number of sampler references, which are run on the host Netprobe for this entity.
Each sampler is referenced by name from Samplers top level section. An error message is produced if samplers are referenced multiple times in the same entity definition.
managedEntities > managedEntity > group
Optionally specifies a group name. See Groups for more details.
managedEntities > managedEntity > description
Optionally specifies a description. See Descriptions for more details.
managedEntities > managedEntity > displayName
Defines a name that is displayed by the Active Console in place of the actual name of the managed entity in the State Tree view. Other views such as Metrics view are not affected.
This name is used for display purposes only - the original name of the managed entity must be used for all references to the data view (e.g. in rules).
managedEntities > managedEntity > environment
An optional named reference to an environment. See User Variables and Environments used for resolving variables in the sampler configuration for this entity.
managedEntities > managedEntity > removeTypes
The remove types setting allows the removal of
inherited types from a managed entity definition.
Types to be removed are listed (referenced) by name
in this setting. Remove types
are processed after
inheritance, but before managedEntities > managedEntity > addTypes to allow "overriding" of an inherited type.
See Types.
managedEntities > managedEntity > removeSamplers
The remove samplers setting allows the removal of samplers from inherited types from a managed entity definition. Samplers to be removed are listed (referenced) by name and the type they belong to in this setting.
managedEntities > managedEntity > var
Any number of variable definitions, configured with a name and value similar to Attributes. Managed entity variables override the entity environment if specified. Variables are used when resolving sampler configurations which contain variables. See User Variables and Environments.
managedEntities > managedEntity > var> name
The name that is used to identify the variable. The name must be unique within each variable scope.
managedEntities > managedEntity > var> ipAddress
Sets the IP address where the variable is connected.
Note: You cannot pass the IP address as variable into a host. It does not allow IP address to be used in names.
managedEntities > managedEntity > var> activeTime
Specifies a variable of type activeTime reference which refers to an active time in the system.
managedEntities > managedEntity > var> boolean
Specifies a variable of type Boolean which can take a value of true or false.
managedEntities > managedEntity > var> double
Specifies a variable of type double which can take a double precision floating point numerical value.
managedEntities > managedEntity > var> externalConfigFile
Specifies a variable which can take the name of an external configuration file.
managedEntities > managedEntity > var> integer
Specifies a variable which can take a numerical integer value.
managedEntities > managedEntity > var> nameValueList
Specifies a variable which can take a list of name value pairs.
managedEntities > managedEntity > var> nameValueList > item
Specifies a single name/value pair in the list.
managedEntities > managedEntity > var> nameValueList > item > name
Specifies the name in a single name/value pair in the list.
managedEntities > managedEntity > var> nameValueList > item > value
Specifies the value in a single name/value pair in the list.
managedEntities > managedEntity > var> regex
Specifies a variable which can take a regular expression.
managedEntities > managedEntity > var> string
Specifies a variable which can take a string.
managedEntities > managedEntity > var> stringList
Specifies a variable which can take a list of strings.
managedEntities > managedEntity > var> stringList > string
Specifies a single string in the string list.
managedEntities > managedEntity > var> macro
Specifies a variable that takes the value from the gateway itself. The macros supported are listed in User Variables and Environments
managedEntities > managedEntity > samplerInclude
A managed entity definition can contain any number of samplerInclude references. This references a samplerInclude configuration section which will be applied to this Managed Entity.
SamplerInclude sections define parts of sampler configuration that will be combined into a sampler.
For example a list of processes that will be added to an instance of a processes sampler.
managedEntities > managedEntity > banner
An optional name specifying the data-item to display as the representative value for this managed entity (see Banner variables).
Names can be specified either as an absolute name, or a relative name starting from the managed entity level.
None
Groups Configuration
managedEntities > managedEntityGroup > name
Specifies the name of the managed entity group. Groups names are not read by gateway, and so can be used for descriptive purposes.
managedEntities > managedEntityGroup > attribute
An entity group definition can contain any number of attributes. Each attribute is specified as a name-value pair containing a textual value (the attribute value). These attributes can then be used for searching and sorting in Active Console. See Attributes.
managedEntities > managedEntityGroup > addTypes
The add types setting allows Types to be added to an entity group. Types are referenced by name, and can be linked to an optional environment. See User Variables and Environments.
managedEntities > managedEntityGroup > addTypes > type > environment
The environment setting allows an optional environment to be linked to a type reference, within a particular entity group definition. Samplers defined in the type will then use this environment to resolve any variables in the configuration. See Types.
managedEntities > managedEntityGroup > group
Optionally specifies a group name, which is then be inherited by contained managed entities (or groups). See Groups for more details.
managedEntities > managedEntityGroup > removeTypes
The remove types setting allows the removal of
inherited types from an entity group definition.
Types to be removed are listed (referenced) by name
in this setting. Remove types
are processed after
inheritance, but before managedEntities > managedEntityGroup > addTypes to allow "overriding" of an inherited type.
See Types.
managedEntities > managedEntityGroup > removeSamplers
The remove samplers setting allows the removal of samplers from inherited types from a managed entity group definition. Samplers to be removed are listed (referenced) by name and the type they belong to in this setting.
managedEntities > managedEntityGroup > var
Any number of variable definitions, configured with a name and value similar to Attributes. Managed entity variables override the entity environment if specified. Variables are used when resolving sampler configurations which contain variables. See User Variables and Environments.