Back to Geneos FAQ

Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview

Rules, How do I get the value from a non-standard numeric format, Alerts

Problem Copied

How do I apply a value for a rule if I have data that is showing as a non-numeric value?

Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview

Solution Copied

Strings are treated as a valid number if they begin with a numerical value. All other strings, except for empty strings, are treated as 0-valued.

For the snippet above, the rule will treat it as 10 instead of the whole string.

Given this, a simple rule can be used for the value above:

if value <= 0 then
severity critical
elseif value <= 5 then
severity warning
elseif value <= 30 then
severity ok
endif

Severity output for the following values:

Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview

Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview

Geneos - Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview

Some further examples are available here.

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

Was this topic helpful?