Hi dear community,
first, I’m new here and with Icinga.
I’m testing to set up an automated installation of the Windows Icinga Agent.
Icinga2web/director is installed and a host-template “generic-agent” with SelfServiceAPIKey exists:
I tried the agent install wizard once manually and it worked fine.
To test automation, I deleted the new created host inside the director and tried to run Start-IcingaAgentInstallWizard with the given parameters as said at the end of inputs to start the agent installation:
Is this configuration correct? (Y/n):
Do you want to run the installer now? (Otherwise only the configuration command will be printed) (Y/n):
[Notice]: To execute your Icinga Agent installation based on your answers again on this or another machine, simply run this command:
But when I now run this command I get an “api-error”:
Why can I use the SelfServiceAPIKey only once?
Greetings to all!