Liebe Checkmk Community,
Ich habe Probleme das Service Icon - Parameters for this service - zum laufen zu bekommen.
Folgende Fehlermeldung erhält man beim Aufruf:
KeyError (‘static_checks:ootbi’)
Summary
File “/omd/sites/central/lib/python3/cmk/gui/wsgi/applications/checkmk.py”, line 195, in _process_request
resp = page_handler()
File “/omd/sites/central/lib/python3/cmk/gui/wsgi/applications/utils.py”, line 135, in _call_auth
func()
File “/omd/sites/central/lib/python3/cmk/gui/pages.py”, line 169, in wrapper
return hc().handle_page()
File “/omd/sites/central/lib/python3/cmk/gui/pages.py”, line 53, in handle_page
self.page()
File “/omd/sites/central/lib/python3/cmk/gui/pages.py”, line 147, in
“page”: lambda self: self._wrapped_callable0,
File “/omd/sites/central/lib/python3/cmk/gui/wato/page_handler.py”, line 93, in page_handler
_wato_page_handler(current_mode, mode_instance)
File “/omd/sites/central/lib/python3/cmk/gui/wato/page_handler.py”, line 153, in _wato_page_handler
mode.handle_page()
File “/omd/sites/central/lib/python3/cmk/gui/watolib/mode/_base.py”, line 172, in handle_page
return self.page()
File “/omd/sites/central/lib/python3/cmk/gui/wato/pages/object_parameters.py”, line 143, in page
self._show_service_info(all_rulesets=all_rulesets, service_result=service_result)
File “/omd/sites/central/lib/python3/cmk/gui/wato/pages/object_parameters.py”, line 220, in _show_service_info
handler[origin](
File “/omd/sites/central/lib/python3/cmk/gui/wato/pages/object_parameters.py”, line 300, in _handle_auto_origin
rulespec = rulespec_registry[RuleGroup.StaticChecks(checkgroup)]
File “/omd/sites/central/lib/python3.12/site-packages/cmk/ccc/plugin_registry.py”, line 66, in getitem
return self._entries.getitem(key)
‘static_checks:ootbi’
Mein checkplugin sieht so aus:
Summary
check_plugin_ootbi = CheckPlugin(
name = “ootbi”,
sections=[“ootbi”],
service_name = “OOTBI %s”,
discovery_function = discover_ootbi,
check_function = check_ootbi,
check_default_parameters={
“disksNotOK_upper”: (“fixed”,(1.0,2.0)),
},
check_ruleset_name=“ootbi”
)
Das Ruleset:
Summary
rule_spec_ootbi = SpecialAgent(
topic=Topic.STORAGE,
name=“ootbi”,
title=Title(“Object First Ootbi”),
parameter_form=_formspec
)
manpage:
Summary
title: Object First Ootbi: Disk Check
agents: special_ootbi
catalog: hw/storagehw/Objectfirst
license: GPLv2
distribution: M
description:
This check queries disk information via the OOTBI API.
It monitors disk status and health for Object First storage systems.
The check reports OK if all disks are healthy, WARN or CRIT if issues are detected.
discovery:
A service for every disk will be created.
inventory:
No HW/SW inventory via OOTBI API.
Sonst klappt die Extension ohne Probleme.
Vielleicht hat hier jemand eine Idee. ?
Danke im Voraus
Martin