Hello,
I have a problem with the self service API under Windows2022.
I use the icinga-powershell-framework and icinga-powershell-plugins releasses 1.10.1 and the the Installer 2.13.8. The director has following Version 1.10.2
icinga-php-library >=0.5.0
icinga-php-thirdparty >=0.9.0
Module incubator 0.19.0
icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.6-1)
Copyright (c) 2012-2023 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: Ubuntu
Platform version: 22.04.3 LTS (Jammy Jellyfish)
Kernel: Linux
Kernel version: 5.15.0-71-generic
Architecture: x86_64
icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf graphite icingadb influxdb2 livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker command ido-mysql influxdb mainlog notification
icinga2 daemon -C
[2023-11-14 17:10:05 +0100] information/cli: Icinga application loader (version: r2.13.6-1)
[2023-11-14 17:10:05 +0100] information/cli: Loading configuration file(s).
[2023-11-14 17:10:05 +0100] information/ConfigItem: Committing config item(s).
[2023-11-14 17:10:05 +0100] information/ApiListener: My API identity: bss-p-mm1.bghw.de
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 26898 Notifications.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 55 HostGroups.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 580 Hosts.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 FileLogger.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 793 Downtimes.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 247 Comments.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 InfluxdbWriter.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 293 Zones.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 292 Endpoints.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 4 ApiUsers.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 ApiListener.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 274 CheckCommands.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 3 UserGroups.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 12 ServiceGroups.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 15 TimePeriods.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 13 Users.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 13454 Services.
[2023-11-14 17:10:09 +0100] information/ConfigItem: Instantiated 2 NotificationCommands.
[2023-11-14 17:10:10 +0100] information/ScriptGlobal: Dumping variables to file ‘/var/cache/icinga2/icinga2.vars’
[2023-11-14 17:10:10 +0100] information/cli: Finished validating the configuration file(s).
Now my self service which used to work doesn’t work any more.
First I do following commands:
Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework' -Recurse | Unblock-File
Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins' -Recurse | Unblock-File
Import-Module icinga-powershell-framework
Import-Module icinga-powershell-plugins
Then inside the same shell I use this powershellscript from my Windows-Host-Template inside the director:
Use-Icinga;
[Notice]: Applying pending migrations required for Icinga for Windows v1.8.0
[Notice]: Applying pending migrations required for Icinga for Windows v1.10.0
[Notice]: Applying pending migrations required for Icinga for Windows v1.10.1
PS C:\Windows\system32> Start-IcingaAgentInstallWizard `
>> -DirectorUrl 'https://bss-p-mm1.bghw.de/director/' `
>> -SelfServiceAPIKey 'ed2b8bd09ecb473242cab14d132c5b23b9e6bc52' `
>> -UseDirectorSelfService 1 `
>> -OverrideDirectorVars 0 `
>> -Reconfigure `
>> -RunInstaller
[Deprecated]: The called function or method "Start-IcingaAgentInstallWizard" is deprecated. Please update your component or contact the developer to update the component accordingly.
[Error]: Failed to connect to your Icinga Director at "https://bss-p-mm1.bghw.de/director/". Please try again
Please re-enter your SelfService API Key for the Host-Template in case the key is no longer assigned to your host (Defaults: "ed2b8bd09ecb473242cab14d132c5b23b9e6bc52"):
I also tried the powershell-modules 1.11.1 releases but they didn’t work out either.
Any ideas?
Best regards, Johannes.