Back to Geneos FAQ

Internal documentation only

This page has been marked as draft.

Gateway SQL and Rule Query

Context:

Client wants to advise on how to traverse through geneos variables and compare data.

Setup of the client for better analyzation:

Bondscope first isin and benchmarkisin pair is US053373Bj51 and US91282CMN82, then you want that pair be also paired in bbg_benchmark. Then be alerted if those didn’t match.

Geneos: Gateway SQL and Rule Query Geneos: Gateway SQL and Rule Query

Workaround:

Comparing two columns using the gateway-sql sampler and created a rule whenever there’s a discrepancy between the two columns on the same row.

For your GatewaySQL the tables should be set as the full path of your table to compare the value of columns against each other.

Geneos: Gateway SQL and Rule Query

Next should be your SQL Query which should SELECT the columns FROM the table “comparecolumn”, compare it to each other that outputs 1 when there’s a discrepancy and 0 when there’s none.

Geneos: Gateway SQL and Rule Query

Last is the rules. The rules we’ve set are simplified: when the discrepancy flag is set to 0, it sets as ok and if the output is 1, it will send a critical severity.

Geneos: Gateway SQL and Rule Query

Output:

Geneos: Gateway SQL and Rule Query

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

Was this topic helpful?