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
I stumbeled upon your post when I got this very similar error below.
My problem was that winrm did not start automatically. Have you checked its service is running? Get-Service WinRM
You can also get a look into the config: winrm get winrm/config
Can’t connect to IfW API on host ‘localhost’ port ‘5668’: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte [system:10061 at C:\local\boost_1_89_0-Win64\boost/asio/detail/win_iocp_socket_connect_op.hpp:104:5 in function ‘void __cdecl boost::asio::detail::win_iocp_socket_connect_op<class boost::asio::detail::spawn_handler<class boost::asio::executor,void __cdecl(class boost::system::error_code),void>,class boost::asio::executor>::do_complete(void *,class boost::asio::detail::win_iocp_operation *,const class boost::system::error_code &,unsigned __int64)’]