It needs to be copied to the server in a certain location.
Next you write a little PS script that does the install by calling the module with certain params:
- Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
- Import-Module Icinga2Agent
- $icinga = Icinga2AgentModule
- $icinga = Icinga2AgentModule `-AgentName 'BOB' `-Ticket 'a830e7dad8e793d8cde06dfc9139951a18fbe048' `-ParentZone 'master' `-InstallAgentVersion '2.5.4' `-ParentEndpoints 'centicinga25.mycorp.corp' `-CAServer 'centicinga25.mycorp.corp' `-DownloadUrl 'http://centicinga25.mycorp.corp/'
- exit $icinga.installIcinga2Agent()
I managed to get that going, the client pulls the executable from my own server (and not from the web), does the req for a cert and the signing seems to work as well. As a result the service is running.... But then what?
My 1st observation is that if I start the wizard, I asks me to fill out all the info again, whereas if just plainly installed, it shows me that the service is running and I can 'examine' or 'reconfig' the configuration
In any case, when I run on the master
The new client never shows... This may be rooted in the fact that I am still very weak on the concept of satellites, zones, endpoints and nodes and that the client is not setup to be a satellite
In any case, I installed a client via the normal GUI way (icinga2 node list; icinga 2 node update-config) and compared the settings on the master and that of the 2 clients to each other.
The clients are very different in setup, some settings from constant.conf are now in icinga2.conf for instance. I also noted that conf.d is NOT included as well as the windows-plugins are left out.
I also found that the endpoint of the server is defined, but no IP and port are giving.
The furthest I got was to finally have the client show up (in repository.d) and being checked. I also managed to get the services showing but they would stay in 'pending' mode forever.
Obviously my main issue is that I am building it as a bottom up client which I don't even want but that is what I know. I still haven't figured out how one would build a top down client.
Anyone any luck with this module? There are only a few posts detailing it's existence...
I've been looking at this for 2 long days now, enabled logging, disabled firewalls etc... I am currently at a loss.