Almost a year later (or two since the start of this topic). We have CheckMK 2.3 but it still doesn’t work.
raw agent output
<<<ceph_df_json:sep(0)>>>
{"version":"ceph version 18.2.2 (e9fe820e7fffd1b7cde143a9f77653b73fcec748) reef (stable)"}
{"stats":{"total_bytes":11042323169280,"total_avail_bytes":5122803105792,"total_used_bytes":5919520063488,"total_used_raw_bytes":5919520063488,"total_used_raw_ratio":0.53607559204101562,"num_osds":23,"num_per_pool_osds":23,"num_per_pool_omap_osds":23},"stats_by_class":{"ssd":{"total_bytes":11042323169280,"total_avail_bytes":5122803105792,"total_used_bytes":5919520063488,"total_used_raw_bytes":5919520063488,"total_used_raw_ratio":0.53607559204101562}},"pools":[{"name":".mgr","id":1,"stats":{"stored":189858544,"stored_data":189858544,"stored_omap":0,"objects":46,"kb_used":556236,"bytes_used":569585664,"data_bytes_used":569585664,"omap_bytes_used":0,"percent_used":0.00014548329636454582,"max_avail":1304852561920,"quota_objects":0,"quota_bytes":0,"dirty":0,"rd":87012,"rd_bytes":223686656,"wr":177897,"wr_bytes":4241326080,"compress_bytes_used":0,"compress_under_bytes":0,"stored_raw":569575616,"avail_raw":3914557726651}},{"name":"pveclus1-ceph","id":4,"stats":{"stored":2036728219124,"stored_data":2036727939072,"stored_omap":280052,"objects":501278,"kb_used":5968735709,"bytes_used":6111985365468,"data_bytes_used":6111984525312,"omap_bytes_used":840156,"percent_used":0.60958051681518555,"max_avail":1304852561920,"quota_objects":0,"quota_bytes":0,"dirty":0,"rd":13812319885,"rd_bytes":697578409407488,"wr":27691420285,"wr_bytes":478009717050368,"compress_bytes_used":0,"compress_under_bytes":0,"stored_raw":6110184472576,"avail_raw":3914557726651}}]}
let’s pass this trough jq to make it readable:
{
"stats": {
"total_bytes": 11042323169280,
"total_avail_bytes": 5122803105792,
"total_used_bytes": 5919520063488,
"total_used_raw_bytes": 5919520063488,
"total_used_raw_ratio": 0.5360755920410156,
"num_osds": 23,
"num_per_pool_osds": 23,
"num_per_pool_omap_osds": 23
},
"stats_by_class": {
"ssd": {
"total_bytes": 11042323169280,
"total_avail_bytes": 5122803105792,
"total_used_bytes": 5919520063488,
"total_used_raw_bytes": 5919520063488,
"total_used_raw_ratio": 0.5360755920410156
}
},
"pools": [
{
"name": ".mgr",
"id": 1,
"stats": {
"stored": 189858544,
"stored_data": 189858544,
"stored_omap": 0,
"objects": 46,
"kb_used": 556236,
"bytes_used": 569585664,
"data_bytes_used": 569585664,
"omap_bytes_used": 0,
"percent_used": 0.00014548329636454582,
"max_avail": 1304852561920,
"quota_objects": 0,
"quota_bytes": 0,
"dirty": 0,
"rd": 87012,
"rd_bytes": 223686656,
"wr": 177897,
"wr_bytes": 4241326080,
"compress_bytes_used": 0,
"compress_under_bytes": 0,
"stored_raw": 569575616,
"avail_raw": 3914557726651
}
},
{
"name": "pveclus1-ceph",
"id": 4,
"stats": {
"stored": 2036728219124,
"stored_data": 2036727939072,
"stored_omap": 280052,
"objects": 501278,
"kb_used": 5968735709,
"bytes_used": 6111985365468,
"data_bytes_used": 6111984525312,
"omap_bytes_used": 840156,
"percent_used": 0.6095805168151855,
"max_avail": 1304852561920,
"quota_objects": 0,
"quota_bytes": 0,
"dirty": 0,
"rd": 13812319885,
"rd_bytes": 697578409407488,
"wr": 27691420285,
"wr_bytes": 478009717050368,
"compress_bytes_used": 0,
"compress_under_bytes": 0,
"stored_raw": 6110184472576,
"avail_raw": 3914557726651
}
}
]
}
note the "percent_used": 0.609 for pool pveclus1-ceph
Now let’t look in cmk at the Service performance data (source code) for this pool
fs_used=5828862.716593;5658108.873274;6365372.482433;0;7072636.091593 fs_free=1243773.375;;;0; fs_used_percent=82.414289;80;90;0;100 fs_size=7072636.091593;;;0; growth=7366.472984;;;; trend=133044.25791;;;;
Now is suddenly 82%.
Great work CheckMK