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

Merged
merged 2 commits into from
Feb 17, 2025

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

@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.

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 <sven@consol.de>
@sni sni force-pushed the add_relative_config_paths branch from e01a2db to 01db9e9 Compare February 16, 2025 23:27
nook24 added a commit to naemon/naemon.github.io that referenced this pull request Feb 17, 2025
…) docs

Relates to: naemon/naemon-core#491

Signed-off-by: nook24 <info@nook24.eu>
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.

I have added this to the new docs :)
grafik

@sni sni merged commit 769cce7 into naemon:master Feb 17, 2025
36 checks passed
@sni sni deleted the add_relative_config_paths branch February 17, 2025 19:23
@sni
Copy link
Contributor Author

sni commented Feb 17, 2025

perfect, thanks

sni added a commit to naemon/naemon-livestatus that referenced this pull request Feb 17, 2025
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