Back to Geneos FAQ

Internal documentation only

This page has been marked as draft.

How to use Attribute information of Managed Entity in Rules

Question Copied

I would like to create a rule that performs conditional branching based on the Attribute information of a Managed Entity.

Answer Copied

This is documented (at the bottom of this article is the link) and an example is shown below:

Managed Entity GOTMAS02-cordial has the following Attributes defined:

Geneos- How to use Attribute information of Managed Entity in Rules.

There is a sampler for the managed entity that outputs a process dataview. The rule looks like this:

Geneos- How to use Attribute information of Managed Entity in Rules.

Since the rule is targeted on the GOTMAS02-cordial managed entity, then to compare against the “OS” attribute, attribute "OS" was used as a variable to compare a string (“Rocky Linux”) against. Naturally, you would replace the string "OS" with the name of your attribute.

The dataview confirms that the rule is run based on checking against the value of the attribute:

Geneos- How to use Attribute information of Managed Entity in Rules.

And clicking on “Show rules” for the cell also confirms this:

Geneos- How to use Attribute information of Managed Entity in Rules.

In the case of multiple paths, they can also be referenced. In the example below, there is a second managed entity with OS and Location having different values compared to the first managed entity in the example above:

Geneos- How to use Attribute information of Managed Entity in Rules.

Modifying the rule a bit to use a cell from GOTMAS01-RockyMaster’s dataview:

Geneos- How to use Attribute information of Managed Entity in Rules.

You will notice that the dataview for this managed entity also returns OK despite having a different OS attribute (“RHEL 8” instead of “Rocky Linux”) since the Location attribute matched (“Sweden”):

Geneos- How to use Attribute information of Managed Entity in Rules.

Reference Copied

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?