We have a custom Dynatrace extension built using the v2 framework to retrieve NetScaler SDX metrics via SNMP. Recently, we encountered the following error:
“INVALID_CONFIG_ERROR: Text-type OID used as metric value”
This error occurs for the following OID references:
systemCpuUsage (1.3.6.1.4.1.5951.6.2.24)
systemMemoryUsage (1.3.6.1.4.1.5951.6.2.25)
systemDiskUsage (1.3.6.1.4.1.5951.6.2.26)
We tested these OIDs using snmpget and received the following result: (example)
I cannot test it myself as I do not have a netscaler available but I would say that problem is that this OID is string. Also snmpget output says that this OID is of STRING type. So it cannot be used as a metric value.
There is no free accessible version of MIB file with above mentioned OIDs. I was able to find MIBs containing OIDs only up to systemCustomID (1.3.6.1.4.1.5951.6.2.23).
Would it be possible to use different OID that is not STRING?
SNMP doesn’t have float types. So anything like that has to be a string. There are some cases where you have decimal points definition, but that is way harder to sort out…
Hi @eranga , I think the SNMP variables that you are using are the right once, but unfortunately they are being returned as string instead of a gauge or a count (see below link similar issue)
Extension framework currently supports metric payloads in the gauge or count value formats only. Would be good to raise it as a product idea/enhancement .