In meshIQ, Model-Clone Sensors lets you define reusable sensor templates (referred to as models), and create multiple clones from them, each with their own specific parameters. This approach simplifies the management and scaling of sensor configurations across environments or systems.
How to Create a Model Sensor
- Open meshIQ Enterprise Manager and Click the
Business view button, A folder is created with the name "Untitled 1".
- Right-click the folder and select New..., or use the
icon on the right toolbar.
- The first window, General Sensor Options, of the BSV Wizard appears. Enter a name in the Sensor Name field (for example: Monitor (QMGRName)-(QueueName) current depth). It is good practice to set the Initial severity from Unknown to Success. You can also enter a short description within the Description field, for example: This sensor is used to evaluate the current depth of a Queue. Click Next.
- The next window, Select Facts to Monitor, of the BSV Wizard appears. In the bottom section of this window, scroll down to meshIQ Domain and drill down to Current depth and click on it. When you click on this fact, you will notice that the fact name appears within the Fact: field located in the middle of the screen. Click the Include button, and then click Next. Note that, the fact can include variables as well. Process for defining variables, and it's values is explained in bullet point number 7.
- If the alert dialog below appears, it means you forgot to click the Include button.
- The next window, Sensor Evaluation Rules, of the BSV Wizard appears. Two severity expressions will appear at the bottom. To add a third expression, click the + sign located to the left of the second expression.
- Complete the expressions (from top to bottom) as shown below. Note that, we're using variables here and not defining the value directly. Variables are defined with-in curly braces. Defining values for the variables is explained in section creating a clone.
-
Error When %f0:Value is greater than {HIGH_DEPTH}:
Set Show value field to: %f0:Value * {HIGH_DEPTH} -
Warning When %f0:Value is greater than {LOW_DEPTH}:
Set Show value field to: %f0:Value * {LOW_DEPTH} -
Success For all other conditions: Always
Set Show value field to: %f0:Value *
-
Error When %f0:Value is greater than {HIGH_DEPTH}:
- Click Next > when finished.
- The next window, Define Alerts and Actions, of the BSV Wizard appears. In this window, select the conditions under Alert on for which you want to receive alerts.
If a condition is not selected under Alert on, the system will not send alerts for that situation, even if the condition is matched.
- Click the Save
button. A confirmation dialog will appear; click Yes to save the changes.
- The Save Document As dialog appears. Select, save under Domain Server and choose model_policies directory. Note that saving model policy under model_policies directory is compulsory. Enter the policy name in the Policy Name field. For this example, set it to Results. Click Save.
Creating a Clone from Model Sensor
- In create business view, right-click and select New Clone or click the New Clone
button located on the right toolbar to display the Select Model Policy screen.
- Select the saved model business view to be cloned and click Open.
- Right-click the Clone and select Properties. The Properties dialog box will appear.
- Under Environment tab, enter the Variable and Value properties, then click Set. You can add more than one variable. Click Apply to save.