Skip to content

Commit

Permalink
Updating ceph_df
Browse files Browse the repository at this point in the history
the parameter "max avail" of "ceph df" shows, how much space currently is available.
so, it is possible, that you get a message like "CRIT - 92% used ..." when you have 52% space left

Change-Id: I21c588f05701c0336964210d2e15b4b492678f64
  • Loading branch information
Mx7ca authored and si-23 committed Jul 23, 2019
1 parent c6b5922 commit f8640b4
Show file tree
Hide file tree
Showing 8 changed files with 996 additions and 788 deletions.
11 changes: 11 additions & 0 deletions .werks/8815
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Title: ceph_df: Fixed wrong calculation of size and available space
Level: 1
Component: checks
Class: fix
Compatible: compat
Edition: cre
State: unknown
Version: 1.6.0b5
Date: 1563873399


4 changes: 2 additions & 2 deletions checks/ceph_df
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def parse_ceph_df(info):
size_mb = parse_byte_values(data["SIZE"])
avail_mb = parse_byte_values(data["AVAIL"])
else:
size_mb = parse_byte_values(data["MAX AVAIL"])
avail_mb = size_mb - parse_byte_values(data["USED"])
avail_mb = parse_byte_values(data["MAX AVAIL"])
size_mb = avail_mb + parse_byte_values(data["USED"])
mps.append((mp, size_mb, avail_mb, 0))
return mps

Expand Down
Loading

0 comments on commit f8640b4

Please sign in to comment.