No connection could be made because the target machine actively refused it

Hi,

i’ve got some Windows Servers, i am monitoring with icinga. In the last 5month i monitored this machine without any issues. For the usual services(cpu, ram, filesystem), i use an appy rule, to do the same checks on every machine, I have. Only this machine, decided to throw an Error after the weekend:
A plugin failed to fetch Performance Counter information. Please ensure the counter is written properly and available on your system.
I don’t know what changed and leaded to this error.

I tried to fix it with, no success. I uninstalled the Agent and reinstalled it. Now I am at the point where my master can connect to the agent on the windows server, but when I would like to check cpu, ram, or filesystem I get error:

Can’t connect to IfW API on host ‘localhost’ port ‘5668’: No connection could be made because the target machine actively refused it [system:10061 at C:\local\boost_1_86_0-Win64\boost/asio/detail/win_iocp_socket_connect_op.hpp:104:5 in function ‘do_complete’]

The usual solution on the internet for this is to switch of the firewall. I switched it off. nothing changed.

-the Windows firewall is completly switched off
-I haven’t got any endpoint protection on this machine installed(no virusscan, etc)
-i don’t use a proxy
-Icinga master and this windows machine are in the same subnet and communicating without any router or hardware-firewall in between.

Does anyone have any idea how to troubleshoot this?

Thanks for your advice, in advance
Best regards
Chris

an overview how it looks like:

It looks like you killed the icinga powershell framework and the checks executed by the ifw-api.
You can start to troubleshoot:

  • open powershell type Use-Icinga
1 Like

Hi Moreamazingnick
Thank you for your replay.
i can call this command, nothing happens. No error, no promt. Is this the right behaviour?

Your Powershell framework is there.
Is the icinga powershell service in the state running or stopped?

both services are running:
image

What is the output of this on your Maschine:

use-icinga
Test-IcingaForWindowsService

If you Agentin powershell framework 1.13 update to 1.13.1 first

Hi Moreamazingnick
Okay, i just installed the latest version:

The output is:

this looks okay.