Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with umlauts in checks #8972

Closed
moreamazingnick opened this issue Aug 12, 2021 · 3 comments
Closed

Problem with umlauts in checks #8972

moreamazingnick opened this issue Aug 12, 2021 · 3 comments

Comments

@moreamazingnick
Copy link

Describe the bug

If you create a check in Icinga director using umlauts for example ü in the parameters the parameter is executed as ü
The services.conf file contains the ü but in the execution the ü is rendered as ü

To Reproduce

  1. Use Check command
  2. try in powershell: Invoke-IcingaCustomCheck -FileNames "für.txt"
    [OK]
  3. Add command using servicetemplate and set parameter
  4. icinga renders C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -C "try { Use-Icinga -Minimal; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; Write-Output "Error: $($_.Exception.Message)Components:rn$( Get-Module -ListAvailable "icinga-powershell-*" )rnModule-Path:rn$($Env:PSModulePath)"; exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCustomCheck' " -FileNames 'für.txt'
  5. and my check cant find the file because the name is wrong.

Expected behavior

render umlauts in command line

Your Environment

Include as many relevant details about the environment you experienced the problem in

Windows Server 2016
Icinga 2.12.5 server and client
powershell framework 1.5.0

should I convert the parameter in my powershell script?
thanks in advance

@stevie-sy
Copy link
Contributor

I think you have the same problems like we have #8962 - created some days ago ;-)

@Al2Klimov
Copy link
Member

Dup of #8962.

@LordHepipud
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants