You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/100-General/10-Changelog.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
47
47
*[#445](https://github.com/Icinga/icinga-powershell-framework/pull/445) Adds command `Repair-IcingaService` to repair Icinga Agent service in case it was broken during upgrades, mostly caused by `The specified service has been marked for deletion`
48
48
*[#448](https://github.com/Icinga/icinga-powershell-framework/pull/448) Adds support to sort arrays without ScriptBlocks
49
49
*[#450](https://github.com/Icinga/icinga-powershell-framework/pull/450) Improves show command `Show-IcingaRegisteredServiceChecks`, adds new command `Show-IcingaRegisteredBackgroundDaemons` and extends `Show-Icinga` by both commands and adds debug and api forwarder features to environment list
50
+
*[#455](https://github.com/Icinga/icinga-powershell-framework/pull/455) Adds support for remote execution plugin [check_by_icingaforwindows](https://github.com/LordHepipud/check_by_icingaforwindows)
# If for some reason the PowerShell could not be started within JEA context, we can throw an exception with exit code 3
119
+
# to mark the check as unknown including our error message
47
120
Write-IcingaConsolePlain'[UNKNOWN] Icinga Exception: Unable to start the PowerShell.exe with the provided JEA profile "{0}" for CheckCommand: {1}'-Objects $JEAProfile,$Command;
48
121
exit3;
49
122
}
50
123
} else {
124
+
# If we simply run the check without JEA context or from remote, we can just execute the plugin and
125
+
# exit with the exit code received from the result
51
126
exit (&$Command@args);
52
127
}
53
128
} catch {
54
-
$ExMsg=$_.Exception.Message;
55
-
$StackTrace=$_.ScriptStackTrace;
56
-
$ExErrorId=$_.FullyQualifiedErrorId;
57
-
$ArgName=$_.Exception.ParameterName;
58
-
$ListArgs=$args;
59
-
60
-
if ($ExErrorId-Like"*ParameterArgumentTransformationError*"-And$ExMsg.Contains('System.Security.SecureString')) {
61
-
$ExMsg= [string]::Format(
62
-
'Cannot bind parameter {0}. Cannot convert the provided value for argument "{0}" of type "System.String" to type "System.Security.SecureString".',
0 commit comments