Andyve_
Enthusiast
Enthusiast

Convert number to text in vROps

Hi.

I am collecting data using from an UPS using SNMP Adapter and I'm getting data for State with a value between 1 and 5 where every value represent a state.

How can I get vRealize Operations to convert the numbers to text?

Do i have to create a SuperMetric og is there any other tricks?

Tags (1)
0 Kudos
4 Replies
sxnxr
Commander
Commander

I dont think you can. The only place i know that you can use text is in a where statement but that is to show a metric when a property is already = to a text string. Even an if statement does not allow text strings as part of the conditional expression like you can in excel.

0 Kudos
Andyve_
Enthusiast
Enthusiast

Thank you for the answer. Not what i wanted but Smiley Happy

I managed to create this view but it would be so much nicer if i could have text instead of numbers.

4 = Resting 2= Discharing osv.

2020-07-01_14-02-02.png

0 Kudos
KabirAli82
Expert
Expert

I think custom properties can help you our here. If you get the value as a metric to an object, you should be able to create custom properties per value.

Head over to environments and try it:


Was I helpful? Give a kudo for appreciation!
Braindumping @ http://kablog.nl/
Tweeting @ https://twitter.com/_Kabir_Ali_
0 Kudos
sxnxr
Commander
Commander

Oh i like that idea

set your membership rule for the group

metric = 1

and have the group add a custom property string value with the text you want Create as many groups as you need and if the value changes it moves group and updates the text in the property.

only thing to be aware of the group membership only updates every 20 mins so the property will be at most 20 mins out of date

That would work. Nice one.

0 Kudos