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

NSCP does not respect the order in which included files are written in the config file #565

Open
exchange12rocks opened this issue Apr 24, 2018 · 0 comments

Comments

@exchange12rocks
Copy link
Contributor

exchange12rocks commented Apr 24, 2018

Issue and Steps to Reproduce

PS > Get-Content .\boot.ini
[settings]
1 = ini://${shared-path}/nsclient.ini

PS > Get-Content .\nsclient.ini
[/includes]
d=a.ini
b=b.ini
c=c.ini

PS > Get-Content .\a.ini
[/test]
key1=This values comes from a.ini

PS > Get-Content .\b.ini
[/test]
key2=This values comes from b.ini

PS > Get-Content .\c.ini
[/test]
key1=This values comes from c.ini
key2=This values comes from c.ini
key3=This values comes from c.ini

Expected Behavior

PS > .\nscp.exe settings --show
  INI settings: (ini://${shared-path}/nsclient.ini, C:\Program Files\NSClient++/nsclient.ini)
    INI settings: (a.ini, a.ini)
    INI settings: (b.ini, b.ini)
    INI settings: (c.ini, c.ini)

PS > .\nscp.exe settings --list
/includes.d=a.ini
/includes.b=b.ini
/includes.c=c.ini
/test.key1=This values comes from a.ini
/test.key2=This values comes from b.ini
/test.key3=This values comes from c.ini

Actual Behavior

PS > .\nscp.exe settings --show
  INI settings: (ini://${shared-path}/nsclient.ini, C:\Program Files\NSClient++/nsclient.ini)
    INI settings: (b.ini, b.ini)
    INI settings: (c.ini, c.ini)
    INI settings: (a.ini, a.ini)

PS > .\nscp.exe settings --list
/includes.b=b.ini
/includes.c=c.ini
/includes.d=a.ini
/test.key1=This values comes from c.ini
/test.key2=This values comes from b.ini
/test.key3=This values comes from c.ini

Details

  • NSClient++ version: 0.5.3.3
  • OS and Version: Windows Server 2016

Additional Details

Included files are sorted alphabetically by config node names

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

1 participant