# Monitoring OS resources on remote server

**URL:** <https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 10, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879 "2022-08-10T16:15:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [August 10, 2022, 4:15pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/1 "2022-08-10T16:15:33Z")

</div>

8.1.x

I’d like to monitor CPU, RAM, and storage space on some remote (non-Ignition) Windows Server 2019 VMs. Has anyone tried this before?

Ideally I’m looking for a free solution that doesn’t require user credentials for the remote machine and is set-and-forget. Presumably that would be some python solution. If free isn’t feasible, I think the easiest option is just to install Ignition Edge with Sync Services ($400 ea). Thoughts?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 10, 2022, 4:43pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/2 "2022-08-10T16:43:21Z")

</div>

`perfmon` is built in to the OS and can connect to remote hosts:

> **[Using Performance Monitor](https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc749115(v=ws.11))**

I would be very surprised if there weren’t other Windows built-ins that could offer at least basic insight into data like this.

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [August 10, 2022, 7:18pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/3 "2022-08-10T19:18:07Z")

</div>

That makes sense and I figured those would exist. I should have mentioned, my end goal is to get this data into an Ignition tag and poll regularly to use in a Vision application. Currently getting hung up finding a way to directly query those Windows components.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [August 10, 2022, 8:00pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/4 "2022-08-10T20:00:58Z")

</div>

This looks like it could work (I have not tested):

> **[Python - Monitor Windows Remotely With WMI](http://coreygoldberg.blogspot.com/2008/12/python-monitor-windows-remotely-with.html)**
>
> Corey Goldberg's Blog - Technology, Programming

> **[WMI](https://pypi.org/project/WMI/)**
>
> Windows Management Instrumentation

I'm guessing you'll need Ignition running under a user that is a member of Performance Monitor Users on the remote machines:

> [@\[Bug-5368\] Ignition Gateway Service User](https://forum.inductiveautomation.com/t/bug-5368-ignition-gateway-service-user/57914/8):
>
> Try adding the user that is running the Ignition Gateway to the Performance Log Users group. You will have to restart the gateway for it to take effect. It looks like this may be required to actually query the performance counters system to retrieve process cpu load.

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [August 11, 2022, 12:51pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/5 "2022-08-11T12:51:44Z")

</div>

Ah, that looks like it could do the trick. Thanks!

---

<div class="post-metadata">

**Author:** ![atsm26](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@atsm26](https://forum.inductiveautomation.com/u/atsm26)\
**Post date:** [August 15, 2024, 7:45pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/6 "2024-08-15T19:45:02Z")

</div>

@Cory.grube hey, interested in doing something exactly like this. were you able to get this to work?

I have the WMI library installed and it is recognized but I get a ton of errors with it trying to connect to pywin32 stuff and specifically cant get past win32api, but apparently those dont work since there is underlaying C code so Im just wondering how you circumvented that if at all? Thanks!

---

<div class="post-metadata">

**Author:** ![Cory.grube](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cory.grube/32/20476_2.png) [@Cory.grube](https://forum.inductiveautomation.com/u/Cory.grube)\
**Post date:** [August 15, 2024, 8:44pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/7 "2024-08-15T20:44:53Z")

</div>

Unfortunately, I never had the chance to dig in and try it. Other work ended up getting in the way. If it's relying on C code, I don't think there's any real workaround short of finding a different library. If you find a solution though, definitely follow up!

---

<div class="post-metadata">

**Author:** ![atsm26](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@atsm26](https://forum.inductiveautomation.com/u/atsm26)\
**Post date:** [August 15, 2024, 9:01pm UTC](https://forum.inductiveautomation.com/t/monitoring-os-resources-on-remote-server/62879/8 "2024-08-15T21:01:05Z")

</div>

Well thanks for the reply! Glad to know this so since this was the last confirmation it wont work and I wont sink anymore hours into this
