TECHZEN Zenoss User Community ARCHIVE  

GraphPoint RPN exression - translate value

Subject: GraphPoint RPN exression - translate value
Author: Vaclav Cerny
Posted: 2017-08-03 06:09

Hello,

ours Wireless radio ALCOMA returns the RATE value in numeric value, which I need to convert to correspondig value. I try it with RPN expression with multiple IFs, but without success.

Translation table example:
SNMP get return / Correspondig value
1 / 5
2 / 8
3 / 11
4 / 14
.
.
164 / 123
165 / 135

You have some idea how to solve it

Thanks

Forest

------------------------------
Vaclav Cerny
United Networks SE
------------------------------


Subject: RE: GraphPoint RPN exression - translate value
Author: Jane Curry
Posted: 2017-08-03 07:26

How perverse!  What are you wanting to actually do with these values?
Not sure where you are using the RPN??
I assume you are monitoring these devices with SNMP from zenperfsnmp?

One trick I have used in the past when SNMP returns "difficult" values for an OID, is to swap to using zencommand and construct the appropriate snmpget command to retrieve the value and then to post-process it - so you could have a Python dictionary to perform the translation between the SNMP response and the value you want to store.  That way, the actual data that is stored is your real rate value.

Have a look at my OlsonPower Zenpack -     https://github.com/jcurry/ZenPacks.ZenSystems.olsonPower/blob/master/ZenPacks/ZenSystems/olsonPower/lib/getPowerValues.sh   - the getPowerValues.sh script should give you some clues.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: GraphPoint RPN exression - translate value
Author: Vaclav Cerny
Posted: 2017-08-04 02:17

After long hours I finally solved it by defining my own graph. I read CDEF Tutorial on RRDtool homepage and that gave me the right directon.

Thank you for you response.

------------------------------
United Networks SE
------------------------------


Subject: RE: GraphPoint RPN exression - translate value
Author: Jane Curry
Posted: 2017-08-04 07:24

Any chance you could share your solution on the forum here?
Thanks,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Changing severity for a high cpu alert.
  Next
Latest Linux Monitor ZenPack (2.2.5) breaks Windows Filesystem Transform
>