15 Oct 2024 01:53 PM
Hi All,
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:
We tested these OIDs using snmpget and received the following result: (example)
SNMPv2-SMI::enterprises.5951.6.2.25.0 = STRING: "52.94"
Has anyone experienced a similar issue or know what might be causing it?
Solved! Go to Solution.
15 Oct 2024 02:39 PM
15 Oct 2024 02:42 PM
Hello @eranga
As an alternative solution:
And in such case:
BR,
Peter.
15 Oct 2024 06:15 PM
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?
15 Oct 2024 09:33 PM
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...
15 Oct 2024 09:42 PM
@eranga BTW,
seems to be a very recent MIB. None of the usual browsers I use show it:
No reason to doubt your snmpget though 😁
15 Oct 2024 11:38 PM
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)
Here is a similar previous discussion about proving metrics out of String OID's
https://community.dynatrace.com/t5/Open-Q-A/SNMP-extension-v2-problems/m-p/176388
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 .