Criteria in configuration rules

Criteria in configuration rules

When adding a configuration rule, an important step is defining the Criteria. These are the standards by which rules are formulated. This involves selecting two options:
  1. Condition (AND or OR) 
    Note: By default, the condition is set as AND.
  2. Monitor Type - Server Monitor for servers; Docker for docker containers
Use Case:
Consider an environment where 1000 servers are present, out of which 500 servers are production servers. Majority of them are Windows servers and rest of them are Linux. User wants to add a threshold profile, notification profile, and a resource profile to only the production servers.

Problem Statement:
Since there is a mix of Windows and Linux servers among the production servers, manually selecting the servers and associating the threshold, notification, and resource profiles in such a large environment is a manually tedious task.

Solution:
A configuration rule with the following conditions can be set to solve the above use case:
  1. Display Name: Production Servers
  2. Monitor Type: Server Monitor
  3. Condition: OR
    Operating System is Windows OR Tags contain Production Servers
  4. Actions:
    Threshold Profile: Default Threshold - Server
    Notification Profile: Default Notification
    Resource Profile: My Profile 
Since the condition is set as OR, servers which are either of Windows OS or with the tag Production Servers will be associated with this rule.
You can set AND if you want all of the conditions to be taken into consideration for executing an action.