Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change liebert fans check metrics to "fan_perc" #783

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmk/plugins/liebert/agent_based/liebert_fans.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def check_liebert_fans(

yield from check_levels_v1(
value,
metric_name="filehandler_perc",
metric_name="fan_perc",
levels_lower=params.get("levels_lower"),
levels_upper=params["levels"],
render_func=lambda x: f"{x:.2f} {unit}",
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/liebert/agent_based/liebert_fans_condenser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def check_liebert_fans_condenser(
return
yield from check_levels_v1(
value,
metric_name="filehandler_perc",
metric_name="fan_perc",
levels_lower=params.get("levels_lower"),
levels_upper=params["levels"],
render_func=lambda x: f"{x:.2f} {unit}",
Expand Down
2 changes: 1 addition & 1 deletion cmk/plugins/liebert/agent_based/liebert_reheating.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def check_liebert_reheating(params: Mapping[str, Any], section: Section[float])
value, unit = data
yield from check_levels_v1(
value,
metric_name="filehandler_perc",
metric_name="fan_perc",
levels_upper=params["levels"],
render_func=lambda x: f"{x:.2f} {unit}",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def test_check() -> None:
state=State.WARN,
summary="1.30 % (warn/crit below 2.00 %/1.00 %)",
),
Metric("filehandler_perc", 1.3, levels=(80, 90)),
Metric("fan_perc", 1.3, levels=(80, 90)),
]
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def test_check() -> None:
state=State.CRIT,
summary="4.20 out of 10 clowns (warn/crit below 8.00 out of 10 clowns/9.00 out of 10 clowns)",
),
Metric("filehandler_perc", 4.2, levels=(80, 90)),
Metric("fan_perc", 4.2, levels=(80, 90)),
]