Back to Geneos FAQ

Rules - How to compare two values from the dataview

Geneos rules, Gateway rules, rule block, rules, compare values, if operator

Problem Copied

Need to compare the value from the target data-cell with another value from the dataview.

Possible solutions Copied

You can use Path Alias with a Relative Path of the secondary cell in the rule block section.

For example:

  1. Given a cpu_sampler dataview like the following:

cpu_sampler dataview

  1. Define the rule target to point at CPU 0%processorTime:

CPU 0%processorTime

  1. Define the path alias to point at CPU 1%processorTime (Sampler Advanced tab):

CPU 1%processorTime

  1. Define the rule block section to compare the values:

CPU alias rule block section

  1. Check the results on the dataview. Apart from the colour displayed on the data cell, you can also right-click and select the Show Rules menu to check that the gateway rule is applied.

Geneos Active Times

Geneos Active Times

Geneos Active Times

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

Was this topic helpful?