I'm trying to create a new vendor certification for a custom metric family. The problem is that the vendor MIB returns the relevant OIDs as DisplayString instead of one of the number formats. Unfortunately, the Data Aggregator does not automatically convert the values to numbers. I could find any function in the documentation to do that. Is there an expression that I can use to do the conversion?
Here is a fragment from the polling debug:
Jun 29 18:08:36.862: AbstractPollResponseListener Received Snmp4j response to an SNMP GET request: , responseEvent=ResponseEvent [
Jun 29 18:08:36.862: source=Snmp
Jun 29 18:08:36.862: address=172.17.44.113/161
Jun 29 18:08:36.862: request=GET[requestID=735175083, errorStatus=Success(0), errorIndex=50, VBS[
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.21.0 = Null
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.23.0 = Null
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.22.0 = Null
Jun 29 18:08:36.862: ]]
Jun 29 18:08:36.862: response=RESPONSE[requestID=735175083, errorStatus=Success(0), errorIndex=0, VBS[
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.21.0 = 0.00
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.23.0 = 30
Jun 29 18:08:36.862: 1.3.6.1.4.1.2684.1.1.22.0 = 2.0
Jun 29 18:08:36.862: ]]
Jun 29 18:08:36.862: userObject=ItemBasedRequestState[responseReceivedTimestamp=1530295716862, nextIndex=1, itemList=[207824]]
Jun 29 18:08:36.862: error=null
Jun 29 18:08:36.862: ]
Jun 29 18:08:36.862: Sending response:SnmpPollResponse [itemID=207824, deviceItemId=207824, internetAddress=172.17.44.113, pollGroupId=207788, cycleTimestamp=1530295500000
Jun 29 18:08:36.862: readTimestamp=1530295716862, duration=300000, pollRate=-1, error=SUCCESS, errorIndex=-1, rowData=[
Jun 29 18:08:36.862: SnmpResponseVariable [oid=1.3.6.1.4.1.2684.1.1.21.0, type=OCTET_STRING, value={48,46,48,48}, isDelta=false, isList=false, error=SUCCESS, isDynamicIndex=false, indexList=null]
Jun 29 18:08:36.862: SnmpResponseVariable [oid=1.3.6.1.4.1.2684.1.1.23.0, type=OCTET_STRING, value={51,48}, isDelta=false, isList=false, error=SUCCESS, isDynamicIndex=false, indexList=null]
Jun 29 18:08:36.862: SnmpResponseVariable [oid=1.3.6.1.4.1.2684.1.1.22.0, type=OCTET_STRING, value={50,46,48}, isDelta=false, isList=false, error=SUCCESS, isDynamicIndex=false, indexList=null]
Jun 29 18:08:36.862: ]]
Looks like DA converts the string to a list with one integer for each character.