Update AMD GPU plugin to work around item_name bug in CheckMK.
This commit is contained in:
parent
5ba99c1c15
commit
62518edf2c
Binary file not shown.
BIN
check_mk-amd-gpu/amd-gpu-0.1.1.mkp
Executable file
BIN
check_mk-amd-gpu/amd-gpu-0.1.1.mkp
Executable file
Binary file not shown.
@ -8,7 +8,7 @@ from cmk.gui.plugins.wato.utils import (
|
|||||||
rulespec_registry,
|
rulespec_registry,
|
||||||
RulespecGroupCheckParametersHardware,
|
RulespecGroupCheckParametersHardware,
|
||||||
)
|
)
|
||||||
from cmk.gui.valuespec import Dictionary, Percentage, Tuple
|
from cmk.gui.valuespec import Dictionary, Percentage, TextInput, Tuple
|
||||||
|
|
||||||
|
|
||||||
def _parameter_valuespec_amd_gpu():
|
def _parameter_valuespec_amd_gpu():
|
||||||
@ -80,6 +80,7 @@ rulespec_registry.register(
|
|||||||
group=RulespecGroupCheckParametersHardware,
|
group=RulespecGroupCheckParametersHardware,
|
||||||
match_type="dict",
|
match_type="dict",
|
||||||
parameter_valuespec=_parameter_valuespec_amd_gpu,
|
parameter_valuespec=_parameter_valuespec_amd_gpu,
|
||||||
|
item_spec=lambda: TextInput(title=_("GPU")),
|
||||||
title=lambda: _("AMD GPU Metrics"),
|
title=lambda: _("AMD GPU Metrics"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user