(windows server 2012R2)
I’ve created a powershell script that that installs agent based on some parameters that i define in some variables upfront.
it works fine on some windows 2012R2 servers but fails on other windows 2012R2 servers with errormsg “Fatal: Failed to install Icinga 2 Agent”
i manually checked all parameters and they all seems to be fine (including ticket)
script i run :
Icinga2AgentModule -RunInstaller -agentname $fqdn -InstallAgentVersion $RequestedIcingaVersion
-ParentEndpoints $ParentEndpoints -ParentZone satellite -CAServer $CAServer -Ticket $ticketvalue -downloadurl c:\icinga -AllowUpdates -installnsclient
error msg i get
Notice: Started script run…
Notice: Trying to fetch Host IP-Address for hostname: servername.domain.com
Notice: Setting IP 999.999.999.999 as primary IP for this host for all requests. Access it with &ipaddress& for all JSON requests.
Notice: Using Icinga version “”, setting certificate directory to “C:\ProgramData\icinga2\etc\icinga2\pki”
Warning: Icinga 2 Agent does not seem to be installed on the system
Notice: Installing Icinga 2 Agent from local directory
Warning: Icinga 2 Agent Installer verification disabled.
Notice: Installing Icinga 2 Agent
Fatal: Failed to install Icinga 2 Agent.
Notice: Using Icinga version “”, setting certificate directory to “C:\ProgramData\icinga2\etc\icinga2\pki”
Warning: Icinga 2 Agent does not seem to be installed on the system
Warning: Unable to generate Icinga 2 certificates. Icinga 2 executable not found. It looks like the Icinga 2 Agent is not installed.
Warning: Configuring Icinga 2 Agent without ApiListener, as certificates have not been generated.
Warning: Unable to write Icinga 2 configuration. The required directory was not found. Possibly the Icinga 2 Agent is not installed.
Warning: Icinga 2 config validation not possible. Icinga 2 executable not found. Possibly the Agent is not installed.