mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
parent
da5ee1b8b7
commit
22f341bd26
3 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ Specific version upgrades are described below. Please note that version updates
|
||||||
|
|
||||||
#### Changes on check command execution
|
#### Changes on check command execution
|
||||||
|
|
||||||
|
**Breaking Change/Important Note:** Check Command configuration generated by Icinga for Windows 1.2.0 require Icinga for Windows 1.2.0 or later deployed on all systems, otherwise you will run into issues with an unknown command `Exit-IcingaPluginNotInstalled` error.
|
||||||
|
|
||||||
As mentioned in [#95](https://github.com/Icinga/icinga-powershell-framework/issues/95) we should make sure that in case the Framework itself is not installed on a system or plugins are missing the user is informed about this. We do how ever not intend to print huge stack traces of PowerShell errors into the console, but inform in a minimalistic way about this.
|
As mentioned in [#95](https://github.com/Icinga/icinga-powershell-framework/issues/95) we should make sure that in case the Framework itself is not installed on a system or plugins are missing the user is informed about this. We do how ever not intend to print huge stack traces of PowerShell errors into the console, but inform in a minimalistic way about this.
|
||||||
|
|
||||||
For this reason we will cover with a Try-Catch statement if the `Use-Icinga` command is executed and return a proper message and error code on failures. In addition we will now check of a plugin is installed before the execution of it, ensuring that in case it is not present on the system we receive an `Unknown` message that a certain plugin is not installed or present.
|
For this reason we will cover with a Try-Catch statement if the `Use-Icinga` command is executed and return a proper message and error code on failures. In addition we will now check of a plugin is installed before the execution of it, ensuring that in case it is not present on the system we receive an `Unknown` message that a certain plugin is not installed or present.
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
||||||
|
|
||||||
### Upgrading Notes
|
### Upgrading Notes
|
||||||
|
|
||||||
|
#### Breaking change with non-equal versions
|
||||||
|
|
||||||
|
Check Command configuration generated by Icinga for Windows 1.2.0 require Icinga for Windows 1.2.0 or later deployed on all systems, otherwise you will run into issues with an unknown command `Exit-IcingaPluginNotInstalled` error.
|
||||||
|
|
||||||
* To properly catch errors on check execution you will have to import check commands as Director basket again by using `Get-IcingaCheckCommandConfig`. Further details can be found in the [upgrading docs](30-upgrading-framework.md)
|
* To properly catch errors on check execution you will have to import check commands as Director basket again by using `Get-IcingaCheckCommandConfig`. Further details can be found in the [upgrading docs](30-upgrading-framework.md)
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
|
|
||||||
|
|
@ -324,6 +324,7 @@ function Get-IcingaCheckCommandConfig()
|
||||||
Write-IcingaConsoleNotice "- '$check'";
|
Write-IcingaConsoleNotice "- '$check'";
|
||||||
}
|
}
|
||||||
Write-IcingaConsoleNotice "JSON export created in '${OutDirectory}'"
|
Write-IcingaConsoleNotice "JSON export created in '${OutDirectory}'"
|
||||||
|
Write-IcingaConsoleWarning 'By using this generated check command configuration you will require the Icinga PowerShell Framework 1.2.0 or later to be installed on ALL monitored machines!';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -331,6 +332,7 @@ function Get-IcingaCheckCommandConfig()
|
||||||
foreach ($check in $CheckName) {
|
foreach ($check in $CheckName) {
|
||||||
Write-IcingaConsoleNotice "- '$check'"
|
Write-IcingaConsoleNotice "- '$check'"
|
||||||
}
|
}
|
||||||
|
Write-IcingaConsoleWarning 'By using this generated check command configuration you will require the Icinga PowerShell Framework 1.2.0 or later to be installed on ALL monitored machines!';
|
||||||
Write-IcingaConsoleNotice '############################################################';
|
Write-IcingaConsoleNotice '############################################################';
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue