# Active Directory Services 2.0 extension - metric error

**URL:** <https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879>\
**Category:** Extensions\
**Tags:** windows, dynatrace-managed, extensions\
**Created:** [July 15, 2022, 9:21pm UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879 "2022-07-15T21:21:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivart\_89](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sivart\_89](https://community.dynatrace.com/u/sivart_89)\
**Post date:** [July 15, 2022, 9:21pm UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/1 "2022-07-15T21:21:59Z")

</div>

Anyone using the Active Directory Services 2.0 extension in their environment and have not modified it? If so are you getting the error below with the metric below

metric name:

Total DHCP requests/s

metric key:  
func:com.dynatrace.extension.active-directory.dhcp.server.requests.persec.total

error when pulling up metric in metrics page:

Error reading metric data. - Description: Stored metric is invalid: Can not handle metric key ‘func:com.dynatrace.extension.active-directory.dhcp.server.requests.persec.total’ because the stored expression ‘(com.dynatrace.extension.active-directory.dhcp.server.requests.persec)+(com.dynatrace.extension.active-directory.dhcp.server.v6.requests.persec)’ is invalid. No metric found using the Metric Id “com.dynatrace.extension.active-directory.dhcp.server.requests.persec”. Stored metric is invalid: Can not handle metric key ‘func:com.dynatrace.extension.active-directory.dhcp.server.requests.persec.total’ because the stored expression ‘(com.dynatrace.extension.active-directory.dhcp.server.requests.persec)+(com.dynatrace.extension.active-directory.dhcp.server.v6.requests.persec)’ is invalid. No metric found using the Metric Id “com.dynatrace.extension.active-directory.dhcp.server.v6.requests.persec”. Metric Expression: (func:com.dynatrace.extension.active-directory.dhcp.server.requests.persec.total:splitBy():avg:auto:sort(value(avg,descending)):limit(10)):limit(100):names

I do see the below in the Log viewer when filtering for logs specific to the extension, I’m&nbsp;wondering if this could be causing the issue we are seeing

DEVICE\_CONNECTION\_ERROR:Cannot execute query: DHCPServer on device localhost: Exception occurred. (Invalid class )&nbsp;[status code=38]; DEVICE\_CONNECTION\_ERROR:Cannot execute query: DHCPServerv6 on device localhost: Exception occurred. (Invalid class )&nbsp;[status code=38]; OK:All queries;

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [January 12, 2023, 10:08pm UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/2 "2023-01-12T22:08:33Z")

</div>

[@sivart\_89](https://community.dynatrace.com/user/17361)&nbsp;were you able to get this resolved? have you tried the latest version of the extension? If you were able to get this working could you please share with us what you had to do to get it working?

---

<div class="post-metadata">

**Author:** ![RSarafaniuk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rsarafaniuk/32/14727_2.png) [@RSarafaniuk](https://community.dynatrace.com/u/RSarafaniuk)\
**Post date:** [March 22, 2023, 1:09pm UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/3 "2023-03-22T13:09:10Z")

</div>

[@travis\_anderson](https://community.dynatrace.com/user/17361)&nbsp; I had similar problem and found that I didn’t have DHCP server on host. Check it.

And if you don’t have DHCP just turn off checkbox with DHCP metrics.

 ![RSarafaniuk_0-1679490518246.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/9/497fa68af9386a9d9e7c25cd4a291b439fa5b084.png)

---

<div class="post-metadata">

**Author:** ![jannick\_deturck](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jannick_deturck/32/26735_2.png) [@jannick\_deturck](https://community.dynatrace.com/u/jannick_deturck)\
**Post date:** [February 23, 2024, 9:25am UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/4 "2024-02-23T09:25:58Z")

</div>

After updating this extension to version 3.1.9, the extension is not working anymore?&nbsp; Any update/feedback how I can resolve this issue?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 23, 2024, 10:12am UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/5 "2024-02-23T10:12:06Z")

</div>

Please create a support case.

---

<div class="post-metadata">

**Author:** ![jannick\_deturck](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jannick_deturck/32/26735_2.png) [@jannick\_deturck](https://community.dynatrace.com/u/jannick_deturck)\
**Post date:** [February 23, 2024, 10:13am UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/6 "2024-02-23T10:13:13Z")

</div>

already created a support ticket

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [March 7, 2024, 4:06pm UTC](https://community.dynatrace.com/t/active-directory-services-2-0-extension-metric-error/35879/7 "2024-03-07T16:06:14Z")

</div>

Hi&nbsp;[@jannick\_deturck](https://community.dynatrace.com/user/21940)&nbsp;.

We had an issue with topology after upgrade to 3.1.9.

Support told us 3.1.9 version need to run locally with OneAgent. Remote WMI for this extension is no longer supported.

However, the metrics are still correctly collected for us and we can fix toplogy by ourself 🙂
