The agent sends an item with string values from a bash script like
"OK - <varying details>"
"ERROR - <varying details"
On the first dashboard I want to reduce info and space with converting the values to 1/0 and applying a threshold Green/Red.
I don't want to use Preprocessing, because I want to keep the "<varying details>" in the database.
So I created a value mapping
regexp -> ^OK.* -> 1
regexp -> ^ERROR.* -> 0
This works, because I get now 1/0 in the dashboard; but the original value is appended; so it looks like "1 (OK - <varying details)"
And I can't apply thresholds because the item type "character" still seems to be the basic type instead of type integer.
Do I miss something?
"OK - <varying details>"
"ERROR - <varying details"
On the first dashboard I want to reduce info and space with converting the values to 1/0 and applying a threshold Green/Red.
I don't want to use Preprocessing, because I want to keep the "<varying details>" in the database.
So I created a value mapping
regexp -> ^OK.* -> 1
regexp -> ^ERROR.* -> 0
This works, because I get now 1/0 in the dashboard; but the original value is appended; so it looks like "1 (OK - <varying details)"
And I can't apply thresholds because the item type "character" still seems to be the basic type instead of type integer.
Do I miss something?
And as long as I know, there is no option to tune that displaying also, with or without real value...
Comment