Skip to content

add default value for MK_CONFDIR in ceph agent#894

Open
fdriessler wants to merge 2 commits intoCheckmk:masterfrom
inettgmbh:ceph-agent
Open

add default value for MK_CONFDIR in ceph agent#894
fdriessler wants to merge 2 commits intoCheckmk:masterfrom
inettgmbh:ceph-agent

Conversation

@fdriessler
Copy link
Contributor

General information

This PR adds a default Value for the call on MK_CONFDIR in the ceph agent.

Proposed changes

Add a default Value for the call of os.environ['MK_CONFDIR']
os.environ['MK_CONFDIR'] -> os.environ.get('MK_CONFDIR', "/etc/check_mk")

We've run into a issue where a few hosts were unable to read this environment variable, causing the mk_ceph.py agent to fail.
My guess is that such a default value is already present in other agents in some shape or form, as the mk_ceph.py agent was the only one to have failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants