Back to Geneos FAQ

How to use properties of Managed Entity in Rules

Introduction Copied

When creating rules, it may be useful to be able to reference a Managed Entity’s property values for rule evaluation. An example of a property value can be a Managed Entity’s attributes, snooze details, and parameters (such as hostname or Netprobe type).

The documentation lists the Managed Entity properties that can be referenced in rules. This guide illustrates an example of rule evaluation making use of a Managed Entity’s attributes.

Setup Configuration Copied

A Managed Entity GOTMAS02-cordial has the following Attributes defined:

Geneos - How to use properties of Managed Entity in Rules

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

Geneos - How to use properties 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 properties of Managed Entity in Rules

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

Geneos - How to use properties of Managed Entity in Rules

In the case of multiple paths and properties, 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 properties of Managed Entity in Rules

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

Geneos - How to use properties of Managed Entity in Rules

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 properties of Managed Entity in Rules

["Geneos"] ["FAQ"]

Was this topic helpful?