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

add support for configurable relative configuration paths #491

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sni
Copy link
Contributor

@sni sni commented Feb 7, 2025

Naemon already supports relative include paths and uses the folder of the main naemon.cfg as base path.

This is fine unless you want to generate the main naemon.cfg and start naemon from a tmp folder. In this case, i'd like to set the base path from the config file.

By default nothing changes, but you can now override this by setting config_rel_path.

sni added a commit to sni/naemon-livestatus that referenced this pull request Feb 7, 2025
@sni sni force-pushed the add_relative_config_paths branch from 2134722 to 8534855 Compare February 7, 2025 12:55
Copy link
Member

@nook24 nook24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also please add an example directive for config_rel_path into the naemon.cfg

Naemon already supports relative include paths and uses the folder of the main
naemon.cfg as base path.

This is fine unless you want to generate the main naemon.cfg and start naemon
from a tmp folder. In this case, i'd like to set the base path from the config
file.

By default nothing changes, but you can now override this by setting `config_rel_path`.

Signed-off-by: Sven Nierlein <[email protected]>
@sni sni force-pushed the add_relative_config_paths branch from 8534855 to e01a2db Compare February 13, 2025 17:24
@sni
Copy link
Contributor Author

sni commented Feb 13, 2025

Sure, i updated the example naemon.cfg and also added a description.

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

Successfully merging this pull request may close these issues.

2 participants