-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from Icinga:feature/add_restapi_feature_to_imc
Feature: Adds Rest-Api check forwarder to IMC wizard Adds the support for enabling the Rest\-Api including the Api\-Check by running the IMC installation.
- Loading branch information
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
lib/core/installer/menu/installation/framework/InstallApiChecks.psm1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
function Show-IcingaForWindowsInstallerMenuSelectInstallApiChecks() | ||
{ | ||
param ( | ||
[array]$Value = @(), | ||
[string]$DefaultInput = '1', | ||
[switch]$JumpToSummary = $FALSE, | ||
[switch]$Automated = $FALSE, | ||
[switch]$Advanced = $FALSE | ||
); | ||
|
||
Show-IcingaForWindowsInstallerMenu ` | ||
-Header 'Please select if you want to enable the Api-Checks feature' ` | ||
-Entries @( | ||
@{ | ||
'Caption' = 'Do not install Api-Checks feature'; | ||
'Command' = 'Show-IcingaForWindowsInstallerConfigurationSummary'; | ||
'Help' = 'Does neither register the REST-Api background daemon nor enables the Api-Check feature'; | ||
}, | ||
@{ | ||
'Caption' = 'Install Api-Checks feature'; | ||
'Command' = 'Show-IcingaForWindowsInstallerConfigurationSummary'; | ||
'Help' = 'Enables the Icinga for Windows REST-Api background daemon and enables the Api-Check feature, which results in every check executed by "Exit-IcingaExecutePlugin" to be forwarded to the internal API. This will provide a huge performance boost for plugin execution. Also enables all checks for the namespace "Invoke-IcingaCheck*" to be executed over the Api. The REST-Api is only configured to run on localhost. Requires the Icinga for Windows service to be installed.'; | ||
} | ||
) ` | ||
-DefaultIndex $DefaultInput ` | ||
-JumpToSummary:$FALSE ` | ||
-ConfigElement ` | ||
-Automated:$Automated ` | ||
-Advanced:$Advanced; | ||
} | ||
|
||
Set-Alias -Name 'IfW-InstallApiChecks' -Value 'Show-IcingaForWindowsInstallerMenuSelectInstallApiChecks'; |