Skip to content

Commit 64a4023

Browse files
add Ceph state "active+clean+laggy" to constants.py
and add metric_pgstate_active_clean_laggy CMK-25499 Co-authored-by: Benedikt Seidl <benedikt.seidl@checkmk.com> Change-Id: I08504105eec094195fad89259f45eaab150510f4 Closes: #844
1 parent ab5a9dc commit 64a4023

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

.werks/18477.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[//]: # (werk v2)
2+
# cephstatus: Remap monitoring state of Ceph cluster state
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-10-06T09:47:33+00:00
7+
version | 2.4.0p14
8+
class | fix
9+
edition | cre
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
If the state of Ceph cluster was `active+clean+laggy` the check plug-in
15+
`cephstatus` would go to state `UNKNOWN`.
16+
17+
With this Werk, the state is now `OK`.

cmk/plugins/ceph/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"activating+undersized+degraded",
1313
"active+clean",
1414
"active+clean+inconsistent",
15+
"active+clean+laggy",
1516
"active+clean+remapped",
1617
"active+clean+scrubbing",
1718
"active+clean+scrubbing+deep",

cmk/plugins/ceph/graphing/ceph_metrics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
unit=UNIT_COUNTER,
4141
color=metrics.Color.BLUE,
4242
)
43+
metric_pgstate_active_clean_laggy = metrics.Metric(
44+
name="pgstate_active_clean_laggy",
45+
title=Title("PGs Active + Clean + Laggy"),
46+
unit=UNIT_COUNTER,
47+
color=metrics.Color.DARK_CYAN,
48+
)
4349
metric_pgstate_active_clean_remapped = metrics.Metric(
4450
name="pgstate_active_clean_remapped",
4551
title=Title("PGs Active + Clean + Remapped"),

0 commit comments

Comments
 (0)