---
title: "How to use properties of Managed Entity in Rules"
description: "Using Managed Entity properties in rules enables evaluation based on attributes and parameters. Rules can reference multiple properties to compare values across different Managed Entities for targeted monitoring."
url: "https://docs.itrsgroup.com/docs/faq/geneos/11999079061021-geneos-how-to-use-properties-of-managed-entity-in-rules/index.html"
---
## Introduction

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](https://docs.itrsgroup.com/docs/geneos/current/processing/monitoring-and-alerts/geneos_rulesactionsalerts_tr/index.html#_Properties) 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

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

![Geneos - How to use properties of Managed Entity in Rules](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-1-image.png)

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](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-2-image.png)

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](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-3-image.png)

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

![Geneos - How to use properties of Managed Entity in Rules](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-4-image.png)

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](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-5-image.png)

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

![Geneos - How to use properties of Managed Entity in Rules](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-6-image.png)

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](https://docscdn.itrsgroup.com/faq/images/geneos/11999079061021-inline-7-image.png)


