Powershellmodule_ps.txt.txt (158.6 KB)
Thanks Roland Sommer… Coming back again…
Here, attached my powershell module. After i ran the poweshell script somehow i am not able to see the pki tickets on remote box under C:\ProgramData\icinga2\etc\icinga2\pki …
Anything wrong with the below output… After I ran the powershell script, icinga2 able to get installed & but icinga2 master pickup the stuff… I have provided correct pki ticket & servername on powershell script…
Can you please review the below script & let me know if anything is not happending correctly during icinga2 master install
PS C:\Users\Mani.Vajrala\Desktop> .\powershellmod.ps1
Notice: Started script run…
Notice: Trying to fetch Host IP-Address for hostname: dev-pnm-01.NICHOLASANDCO.AWS
Notice: Setting IP 172.25.13.114 as primary IP for this host for all requests. Access it with &ipaddress& for all JSON r
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: Downloading Icinga 2 Agent Binary from “https://packages.icinga.com/windows/Icinga2-v2.10.5-x86_64.msi”
Warning: Icinga 2 Agent Installer verification disabled.
Notice: Installing Icinga 2 Agent
Notice: Icinga 2 Agent installed.
Notice: Using Icinga version “2.10.5”, setting certificate directory to “C:\ProgramData\icinga2\var\lib\icinga2\certs”
Notice: Found Icinga 2 Agent version 2.10.5 installed at “C:\Program Files\ICINGA2”
Notice: Removing downloaded Icinga 2 Agent installer
Notice: Generating Host certificates required by Icinga 2
Notice: information/base: Writing private key to 'C:\ProgramData\icinga2\var\lib\icinga2\certs<server-namewithfdqn>.key
information/base: Writing X509 certificate to ‘C:\ProgramData\icinga2\var\lib\icinga2\certs<server-namewithfdqn>
Notice: Storing Icinga 2 certificates
Notice: information/cli: Retrieving X.509 certificate for ‘:5665’.
Subject: CN = server-namewithfdqn
Issuer: CN = Icinga CA
Valid From: Aug 27 19:08:36 2019 GMT
Valid Until: Aug 23 19:08:36 2034 GMT
Fingerprint: 3D D2 69 6E DE ED 39 81 9D 05 70 F7 51 9B 6E EA 7B 37 E7 F4
*** You have to ensure that this certificate actually matches the parent
*** instance’s certificate in order to avoid man-in-the-middle attacks.
information/pki: Writing certificate to file ‘C:\ProgramData\icinga2\var\lib\icinga2\certs\trusted-master.crt’.
Notice: Certificate fingerprint: “3DD2696EDEED39819D0570F7519B6EEA7B37E7F4”
Warning: CA fingerprint validation disabled
Notice: Requesting Icinga 2 certificates
Notice: information/cli: Writing CA certificate to file ‘C:\ProgramData\icinga2\var\lib\icinga2\certs\ca.crt’.
information/cli: Writing signed certificate to file ‘C:\ProgramData\icinga2\var\lib\icinga2\certs\dev-pnm-01.NICHOLASAND
Notice: Icinga 2 configuration backup successfull
Notice: Writing icinga2.conf to “C:\ProgramData\icinga2\etc\icinga2”
Notice: Icinga 2 configuration check successfull.
Notice: Trying to disable debug log for Icinga 2…
Notice: Icinga 2 debug log is not enabled or configuration not found
Notice: Trying to enable logging for Icinga 2…
Notice: Icinga 2 logging is already enabled or configuration not found
Warning: Icinga 2 Agent Firewall Rule will not be installed.
Notice: NSClient++ will not be installed on the system.
Notice: Restarting service icinga2
Notice: Icinga 2 Agent successfully restarted.