Установка с помощью icinga-powershell-kickstart:

[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11";
$ProgressPreference = "SilentlyContinue";

$global:IcingaFrameworkKickstartSource = 'https://raw.githubusercontent.com/Icinga/icinga-powershell-kickstart/master/script/icinga-powershell-kickstart.ps1';


$Script = (Invoke-WebRequest -UseBasicParsing -Uri $global:IcingaFrameworkKickstartSource).Content;
$Script += "`r`n`r`n Start-IcingaFrameworkWizard -RepositoryUrl 'https://github.com/Icinga/icinga-powershell-framework/archive/v1.2.0.zip' -ModuleDirectory 'C:\Program Files\WindowsPowerShell\modules\' -AllowUpdate 1 -SkipWizard;";

Invoke-Command -ScriptBlock ([Scriptblock]::Create($Script));

Установка базовых плагинов:

Use-Icinga

Install-IcingaFrameworkComponent -Name plugins -Release
Install-IcingaFrameworkComponent -Name restapi -Release
Install-IcingaFrameworkComponent -Name inventory -Release
Install-IcingaFrameworkComponent -Name apichecks -Release;

Установка сервиса:

New-Item -Path 'C:\Program Files\Icinga-Framework-Service' -Type directory

$ServiceData = Get-IcingaFrameworkServiceBinary -FrameworkServiceUrl 'https://github.com/Icinga/icinga-powershell-service/releases/download/v1.1.0/icinga-service-v1.1.0.zip' -ServiceDirectory 'C:\Program Files\icinga-framework-service\';

# Invoke-WebRequest "https://webnote.satin-pl.com/public/icinga2/icinga-service/icinga-service.exe" -OutFile "C:\Program Files\Icinga-Framework-Service\icinga-service.exe"

Use-Icinga

Install-IcingaFrameworkService -Path 'C:\Program Files\Icinga-Framework-Service\icinga-service.exe' -User 'NT AUTHORITY\System'

Set-IcingaAcl -Directory 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache'

Настройка фоновых проверок:

Use-Icinga

Set-IcingaAcl -Directory 'C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache'
Set-IcingaAcl -Directory 'C:\ProgramData\icinga2\etc'
Set-IcingaAcl -Directory 'C:\ProgramData\icinga2\var'


Register-IcingaBackgroundDaemon -Command 'Start-IcingaServiceCheckDaemon'
Register-IcingaBackgroundDaemon -Command 'Start-IcingaWindowsRESTApi';

Register-IcingaServiceCheck -CheckCommand 'Invoke-IcingaCheckCpu' -Interval 10 -TimeIndexes 1,3,5
Register-IcingaServiceCheck -CheckCommand 'Invoke-IcingaCheckMemory' -Interval 60 -TimeIndexes 3,5,10
Register-IcingaServiceCheck -CheckCommand 'Invoke-IcingaCheckUsedPartitionSpace' -Interval 600 -TimeIndexes 300

Restart-IcingaService 'icingapowershell'

## Проверки
Test-IcingaAgent
Show-IcingaRegisteredServiceChecks

Ссылки