I’ve been trying to set up a simple disk check on a remote Windows Agent for 3 days, without any luck.
I’m undoubtedly doing something wrong, but after reading the docs at least 5 times I can’t figure it out.
So our setup is simple now: we have one master called “nicklink-mon.nicklink.network” and one Windows Agent called “nicklink-ad1.nicklink.network”.
Windows Agent
I did set up the Windows Agent to accept connections on 5665, allow to receive commands and configs…
I used the commandline to set it up, everything looks correct. I signed the certificates on the master.
IcingaWeb2
In IcingaWeb2 I get this error for the service:
Remote Icinga instance ‘nicklink-ad1.nicklink.network’ is not connected to ‘nicklink-mon.nicklink.network’
Honestly any hint in the right direction would be so helpful, my friend and I have been on this for 3 days and we really can’t figure it out.
Alright that was very helpful! I changed the configs, checked and restarted but the error persists. I’ve since then added a Linux client with the Linux Agent and I get the same error…
Remote Icinga instance ‘icinga2-linux-test.nicklink.network’ is not connected to ‘nicklink-mon.nicklink.network’
I let the Wizard auto-create this in the zones.conf of icinga2-linux-test.nicklink.network, does this look correct?
Sorry that’s supposed to be nicklink-mon.nicklink.network too, it’s correct in the configs though.
I also re-ran the node wizard on my master, but denied the inclusion of conf.d directory this time.
The issue persists oddly enough… I can also reach all my Icinga instances with nmap on their port.
Well I’ve been debugging for 3 days+ so that might have happened at some point. I did your command but the issue persists.
However… When I click “Check Now” I get this error in IcingaWeb2:
icinga2: Can’t send external Icinga command: 401 Unauthorized. Please check your user credentials.
Strangely enough it did in a strange way. I reinstalled, set up everything again from scratch (agents too) and got the same ‘not connected’ error.
I got frustrated and left it overnight.
The following morning in the office I checked and it discovered both services!
So I guess you could close this thread? Didn’t find a real solution though
The only thing that I can possibly think of right now, is that the hardware might have not been able to handle the load? Doesn’t make all that much sense either though…
Well, I guess I will just unhelpfully make your ‘resolution post’ the solution for now, if anyone else happens to have the issue too, or it returns for you, I hope they will reopen this by commenting
Good luck with your future endeavours with Icinga!
Feu