# SNMP extension 2.0 INVALID\_CONFIG\_ERROR error

**URL:** <https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339>\
**Category:** Extensions\
**Tags:** netscaler, snmp, extensions\
**Created:** [October 15, 2024, 12:53pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339 "2024-10-15T12:53:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eranga](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@eranga](https://community.dynatrace.com/u/eranga)\
**Post date:** [October 15, 2024, 12:53pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/1 "2024-10-15T12:53:11Z")

</div>

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:

- 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&nbsp;snmpget&nbsp;and received the following result: (example)

```auto
SNMPv2-SMI::enterprises.5951.6.2.25.0 = STRING: "52.94"

```

Has anyone experienced a similar issue or know what might be causing it?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 15, 2024, 1:39pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/2 "2024-10-15T13:39:04Z")

</div>

Hello&nbsp;[@eranga](https://community.dynatrace.com/user/67788)

**For the custom extension**

 ![2024-10-15_17h31_26.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7064f45f01a871ba17ae01b9862b45821fc80580.png)

 ![2024-10-15_17h34_38.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/9/192d630a7ad531e2f717c878210e0a042e712a58.png)

**Dynatrace Doc:**

- [data-sources/snmp-extensions](https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/data-sources/snmp-extensions)
- [snmp#activate-extension](https://docs.dynatrace.com/docs/extend-dynatrace/extend-metrics/ingestion-methods/snmp#activate-extension)
- [eec-custom-configuration](https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/eec-custom-configuration)

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 15, 2024, 1:42pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/3 "2024-10-15T13:42:23Z")

</div>

Hello&nbsp;[@eranga](https://community.dynatrace.com/user/67788)

**As an alternative solution:**

- If it’s possible to use the developed extension by Dynatrace from Dynatrace Hub would be good.

**And in such case:**

1. Revisit&nbsp;[citrix-netscaler-sdx.](https://www.dynatrace.com/hub/detail/citrix-netscaler-sdx/?query=netscal&filter=all)
2. Review&nbsp;[Citrix error-messages](https://developer-docs.netscaler.com/en-us/adc-sdx-nitro-api-reference/current-release/error-messages/error-messages)&nbsp;and&nbsp;[configuration](https://developer-docs.netscaler.com/en-us/adc-sdx-nitro-api-reference/current-release/configuration/configuration)&nbsp;with NetScaler team.
3. First of all you should validate the FW configurations are conducted properly between the assigned EAGs and the end points.
4. Ensure the endpoints are configured properly as per app owner inputs.
5. Disable SSL certificate check.

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![PetrVlacil](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@PetrVlacil](https://community.dynatrace.com/u/PetrVlacil)\
**Post date:** [October 15, 2024, 5:15pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/4 "2024-10-15T17:15:03Z")

</div>

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&nbsp;systemCustomID (1.3.6.1.4.1.5951.6.2.23).

Would it be possible to use different OID that is not STRING?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 15, 2024, 8:33pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/5 "2024-10-15T20:33:00Z")

</div>

[@eranga](https://community.dynatrace.com/user/67788), [@PetrVlacil](https://community.dynatrace.com/user/67769)

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…

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 15, 2024, 8:42pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/6 "2024-10-15T20:42:50Z")

</div>

[@eranga](https://community.dynatrace.com/user/67788)&nbsp; BTW,

seems to be a very recent MIB. None of the usual browsers I use show it:

- [https://mibs.observium.org/mib/SDX-ROOT-MIB/](https://mibs.observium.org/mib/SDX-ROOT-MIB/)
- [OID 1.3.6.1.4.1.5951.6.2 — systemGroup | OID Reference](https://oidref.com/1.3.6.1.4.1.5951.6.2)
- [Free Mib Browser Online](https://mibbrowser.online/mibdb_search.php?mib=MIB)

No reason to doubt your snmpget though 😁

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 15, 2024, 10:38pm UTC](https://community.dynatrace.com/t/snmp-extension-2-0-invalid-config-error-error/48339/7 "2024-10-15T22:38:51Z")

</div>

Hi&nbsp;[@eranga](https://community.dynatrace.com/user/67788)&nbsp;, 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)

[https://community.citrix.com/forums/topic/253266-issue-with-oid-13614159514114120-on-netscaler-adc-sd-8930-no-such-object-available-on-this-agent-at-this-oid/#\_=\_](https://community.citrix.com/forums/topic/253266-issue-with-oid-13614159514114120-on-netscaler-adc-sd-8930-no-such-object-available-on-this-agent-at-this-oid/#_=_)

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](https://community.dynatrace.com/post/176388)

Extension framework currently supports metric payloads in the gauge or count value&nbsp; formats only. Would be good to raise it as a product idea/enhancement .
