×
Back to Geneos FAQ
Rules - How can I get the value from a Non-Standard Numeric Formats for a dataview
Related to Copied
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?
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:
Some further examples are available here.
["Geneos"]
["Geneos > Gateway"]
["FAQ"]