Icinga / Icinga/icinga-powershell-framework
icinga management console throws errors when executed within enter-pssession
Open
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 87
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
If I connect via enter-pssession to a remote host and execute icinga, I get the following error:
[hostname]: PS C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework> icinga
*******************************************
** Icinga for Windows Management Console **
** Copyright (c) 2025 Icinga GmbH | MIT **
** User environment domain\user **
** Icinga PowerShell Framework v1.13.2 **
*******************************************
What do you want to do?
[0] Base Installation
[1] Component Manager
[2] Settings
[3] Overview
[4] Icinga Shell
[x] Exit
[c] Continue
[h] Help
[l] Commands
[m] Main
powershell.exe : Cannot process the XML from the 'Output' stream of
'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe': Data at the root level is invalid. Line 1, position
1.
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\icinga-powershell-framework.psm1:343
char:5
+ powershell.exe -NoExit -Command {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SyntaxError: (C:\WINDOWS\Syst...\powershell.exe:String) [], XmlException
+ FullyQualifiedErrorId : ProcessStreamReader_CliXmlError
powershell.exe : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\icinga-powershell-framework.psm1:343
char:5
+ powershell.exe -NoExit -Command {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Read-Host], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.ReadHostCommand
powershell.exe : The term '<' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\icinga-powershell-framework.psm1:343
char:5
+ powershell.exe -NoExit -Command {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (<:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
[hostname]: PS C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework>
It works as expected within direct connections.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by running icinga inside Enter-PSSession, then inspect line 343 of icinga-powershell-framework.psm1 and compare it with a direct connection. The work is done when the management console starts and accepts input in a remote session without the reported XML, noninteractive-mode, or command-not-found errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100