# How to setup Windows server to monitor a Linux server

**URL:** <https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931>\
**Category:** Exporters and Metrics\
**Created:** [October 3, 2023, 3:47pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931 "2023-10-03T15:47:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hms22](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hms22](https://discuss.prometheus.io/u/hms22)\
**Post date:** [October 3, 2023, 3:47pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931/1 "2023-10-03T15:47:44Z")

</div>

Hello,  
We are trying to setup a Windows server with Prometheus to monitor a Linux server. We installed the Node exporter on the Linux server and opened port 9100 on this server to the Windows server with Prometheus.

What do we need to install on the Windows server with Prometheus to get this to communicate with the Linux server and to be able to scrape metrics from the Linux server?  
Many thanks.

---

<div class="post-metadata">

**Author:** ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)\
**Post date:** [October 3, 2023, 4:04pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931/2 "2023-10-03T16:04:51Z")

</div>

You need to install & run Prometheus on the Windows server with configuration to scrape the Linux server. It would also be a good idea to install the Windows exporter on the Windows server and add that, plus the Prometheus server itself, to the scrape configuration.

---

<div class="post-metadata">

**Author:** ![hms22](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hms22](https://discuss.prometheus.io/u/hms22)\
**Post date:** [October 4, 2023, 5:02pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931/3 "2023-10-04T17:02:40Z")

</div>

> [@stuart](#):
>
> You need to install & run Prometheus on the Windows server with configuration to scrape the Linux server. It would also be a good idea to install the Windows exporter on the Windows server and add that, plus the Prometheus server itself, to the scrape configuration

Thanks @stuart.  
We do have Prometheus installed and running on the Windows server, and we have added the Linux server IP:9100 to the prometheus.yml configuration file. We have the WMI exporter installed on the Windows server.  
We added the Node exporter to the Linux server.  
The Prometheus server is giving the following errors:

Get “[http://xx.xxx.xxx.x:9100/metrics](http://xx.xxx.xxx.x:9100/metrics)”: dial tcp xx.xxx.xxx.x:9100: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Get “[http://xx.xxx.xx.xx:9100/metrics](http://xx.xxx.xx.xx:9100/metrics)”: dial tcp xx.xxx.xx.xx:9100: connectex: No connection could be made because the target machine actively refused it.

Thanks, again!

---

<div class="post-metadata">

**Author:** ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)\
**Post date:** [October 4, 2023, 5:36pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931/4 "2023-10-04T17:36:52Z")

</div>

That sounds like some sort of firewall issue

---

<div class="post-metadata">

**Author:** ![Madhav](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Madhav](https://discuss.prometheus.io/u/Madhav)\
**Post date:** [January 19, 2025, 3:32pm UTC](https://discuss.prometheus.io/t/how-to-setup-windows-server-to-monitor-a-linux-server/1931/5 "2025-01-19T15:32:08Z")

</div>

hey dude.have u solved this i m facing this issue right now .How to resolve it?
