Skip to content

Conversation

@bluikko
Copy link

@bluikko bluikko commented Dec 28, 2022

This PR adds cephadm support for:

  • check_ceph_df
  • check_ceph_mgr
  • check_ceph_mon
  • check_ceph_osd
  • check_ceph_osd_db
  • check_ceph_osd_df
  • check_ceph_rgw

It is implemented following #68 so thanks go to WarriorXK for the original PR.
Unfortunately cephadm doesn't run non-root. I do not have time to check how complicated that would be.

While at it I added support using other than the default keyring with cephadm which fixes #87.

To make it work on my Python 3 I also needed to make changes similar to #84 in order to avoid errors when handling output from ceph.

Indentation was fixed in check_ceph_osd. Some files continue to use 4 spaces and others use 2...

Added version to check_ceph_osd_db and also the second call to ceph inside the loop will now use ID/keyring/etc. arguments in the same way as the initial call to ceph. Also, if critical limit is given with -C argument it needs to be cast to a float (at least on my Python 3.9).

The PR works for me but I have not done extensive testing. Especially I might have missed some error handling/UTF-8 decoding in output processing.
I am sure there could be room to improve so feedback is very welcome.

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.

Passing keyring to a cephadm volume for health check

1 participant