sensu / sensu-docs

Sensu documentation
https://docs.sensu.io
MIT License
41 stars 54 forks source link

Windows Environment Variables reference is factually incorrect #4180

Closed asachs01 closed 1 year ago

asachs01 commented 1 year ago

Description

Category

This is an issue with:

Affected pages

https://docs.sensu.io/sensu-go/latest/observability-pipeline/observe-schedule/agent/#environment-variables

Expected behavior

When specifying environment variables, Windows agents should be able to load the config file.

Current behavior

We specify that windows environment variables can be placed in the agent config, but this is factually incorrect and will result in the agent loading the default configuration.

Corrections needed

Windows environment variables must be added to and loaded from the registry:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Adding the variables there will ensure that they're loaded correctly and any modifications made to the agent config file are retained.