# Timeout during wmi connect

**URL:** <https://community.dynatrace.com/t/timeout-during-wmi-connect/48357>\
**Category:** Extensions\
**Tags:** wmi, extensions, remote-monitoring\
**Created:** [October 16, 2024, 7:09am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357 "2024-10-16T07:09:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 16, 2024, 7:09am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/1 "2024-10-16T07:09:21Z")

</div>

Hi,

customer has several remote winOS vms for remote wmi monitoring, that responds slowly. Wbemtest utility shows 15+ seconds until connection is made. Remote Windows Extension apparently doesn’t wait so long so it treats such devices with “access denied” error message in log. What exactly is time limit of WMI data source in extension 2.0 that needs to be fulfilled? Is there an option to extend this limit?

Thanks

---

<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 16, 2024, 8:05am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/2 "2024-10-16T08:05:52Z")

</div>

Hello&nbsp;[@rastislav\_danis](https://community.dynatrace.com/user/38440)

If possible to review the attached resources:

- [data-sources/wmi-extensions](https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/data-sources/wmi-extensions)
- [connecting-to-wmi-remotely](https://learn.microsoft.com/en-us/windows/win32/wmisdk/connecting-to-wmi-remotely-starting-with-vista)
- [server-manager](https://learn.microsoft.com/en-us/windows-server/administration/server-manager/server-manager)
- [allowing-users-access-to-a-specific-wmi-namespace](https://learn.microsoft.com/en-us/windows/win32/wmisdk/securing-a-remote-wmi-connection#allowing-users-access-to-a-specific-wmi-namespace)

 ![2024-10-16_12h00_31.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0b6e843d7fdba3d7c7ee642101149985737f65ff.png)

 ![2024-10-16_12h04_27.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/9/396bc8d64265f30da5237d9de6d9b1cfb6f1b503.png)

Hoping it adds value.

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 16, 2024, 8:11am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/3 "2024-10-16T08:11:11Z")

</div>

Hi Peter

thanks for sources, i was just wondering if wmi data source in ext 2.0 has some built in timeout limit. As i said wbemtest utility connects well (even from AG vm, that is used for this extension). Problem is probably in some network stuff, wbemtest wait for response, but extension probably not.

---

<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 16, 2024, 8:13am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/4 "2024-10-16T08:13:28Z")

</div>

Hi&nbsp;[@rastislav\_danis](https://community.dynatrace.com/user/38440)

- If it possible to check the configurations listed in the attached Activegates directories regarding WMI extension.
- Access denied : check the assigned permissions.  
**Linux**

 ![2024-10-16_12h07_23.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e407b0f2157669498ad8ec89dfb387aa83449fb0.png)

**Windows**

 ![2024-10-16_12h09_21.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/b/0b27ed830b80d0b095ac507e422876aeaf6e46c9.png)

BR,

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 16, 2024, 8:28am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/5 "2024-10-16T08:28:33Z")

</div>

Hi&nbsp;[@rastislav\_danis](https://community.dynatrace.com/user/38440)

Might be network or FW settings, so kindly join a call with NW or FW team to pinpoint the RC.

- find a stable configuration and try to simulate and apply the same.

There is&nbsp; solution should be applied on the target endpoints not on the AG:

- [https://checkmk.atlassian.net/wiki/spaces/KB/pages/9470631/How-to+increase+WMI+timeout](https://checkmk.atlassian.net/wiki/spaces/KB/pages/9470631/How-to+increase+WMI+timeout)
- [https://help.pdq.com/hc/en-us/articles/220532387-WMI-operation-timed-out](https://help.pdq.com/hc/en-us/articles/220532387-WMI-operation-timed-out)

BR,

peter.

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 16, 2024, 10:14am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/6 "2024-10-16T10:14:54Z")

</div>

Sorry, but i was asking about capability (timeout value) of extensions 2.0 wmi data source. Endpoint is ok obviously. And also i’m not trying to solve customer’s reasons of such slow responses.

---

<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 16, 2024, 11:13am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/7 "2024-10-16T11:13:21Z")

</div>

Hi&nbsp;[@rastislav\_danis](https://community.dynatrace.com/user/38440)&nbsp;, I think the default timeout is 10 sec. Can you please try adding timeout attribute under&nbsp;wmiRemote and see if that helps ?

```markup
"wmiRemote": {
      "devices": [
        {
          "host": "x.x.x.x",
          "user": "DOMAIN\\Administrator",
          "password": "Pass",
          "timeout": 30
        }
      ]
    },

```

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 16, 2024, 11:26am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/8 "2024-10-16T11:26:47Z")

</div>

Hi, nice try but unfortunately it’s not possible:

![rastislav_danis_0-1729077988784.png](https://global.discourse-cdn.com/dynatrace/optimized/2X/b/bb113b2d6615c60fe88e419f51010526ff2d9075_2_690x18.png)

---

<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 16, 2024, 11:31am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/9 "2024-10-16T11:31:18Z")

</div>

Hi&nbsp;[@rastislav\_danis](https://community.dynatrace.com/user/38440)

You can define the timeout in the schema, so when you perform check it won’t fail.

BR,

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [October 17, 2024, 6:34am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/10 "2024-10-17T06:34:52Z")

</div>

When i add timeout parameter to schema will it actually work as overrride to default?

---

<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 17, 2024, 8:54am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/11 "2024-10-17T08:54:40Z")

</div>

Yes, it should.

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [November 15, 2024, 9:46am UTC](https://community.dynatrace.com/t/timeout-during-wmi-connect/48357/12 "2024-11-15T09:46:12Z")

</div>

Timeout is probably 10s as [@p\_devulapalli](https://community.dynatrace.com/user/21657) suggested. I was not able to extend it and in the end it seems ok, that such slow reponsing devices are not included in monitoring.
