CMK version:
OS version:
Error message:
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
{
“core”: “cmc”,
“crash_type”: “check”,
“details”: {
“check_output”: “check failed - please submit a crash report!”,
“check_type”: “discover”,
“description”: “Check_MK Discovery”,
“enforced_service”: false,
“host”: “Hostname”,
“inline_snmp”: false,
“is_cluster”: false
},
“edition”: “cme”,
“exc_traceback”: [
[
“/omd/sites/CheckMK/lib/python3/cmk/base/cee/keepalive/checker.py”,
224,
“_process_fetch_entry”,
“checks_result = execute_check_discovery(”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/checkengine/discovery/_impl.py”,
143,
“execute_check_discovery”,
“services = get_host_services(”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/checkengine/discovery/_autodiscovery.py”,
605,
“get_host_services”,
“**_get_node_services(”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/checkengine/discovery/_autodiscovery.py”,
659,
“_get_node_services”,
“discovered_services = discover_services(”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/checkengine/discovery/_services.py”,
125,
“discover_services”,
“{”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/checkengine/discovery/_services.py”,
181,
“_discover_plugins_services”,
“disco_params = plugin.parameters(host_key.hostname)”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/base/config.py”,
1084,
“get_plugin_parameters”,
“host_rules = matcher.get_host_values(host_name, rules)”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/utils/rulesets/ruleset_matcher.py”,
221,
“get_host_values”,
“self.ruleset_optimizer.get_host_ruleset(ruleset, with_foreign_hosts)”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/utils/rulesets/ruleset_matcher.py”,
502,
“get_host_ruleset”,
“return self.__host_ruleset_cache.setdefault(cache_id, _impl(ruleset, with_foreign_hosts))”
],
[
“/omd/sites/CheckMK/lib/python3/cmk/utils/rulesets/ruleset_matcher.py”,
493,
“_impl”,
“for hostname in self._all_matching_hosts(rule[“condition”], with_foreign_hosts):”
]
],
“exc_type”: “TypeError”,
“exc_value”: “string indices must be integers, not ‘str’”,
“id”: “xxx”,
“local_vars”: " XXXXXXXXX "
“os”: “Debian GNU/Linux 12 (bookworm)”,
“python_paths”: [
“/opt/omd/versions/2.3.0p7.cme/bin”,
“/omd/sites/CheckMK/local/lib/python3”,
“/omd/sites/CheckMK/lib/python3/cloud”,
“/omd/sites/CheckMK/lib/python312.zip”,
“/omd/sites/CheckMK/lib/python3.12”,
“/omd/sites/CheckMK/lib/python3.12/lib-dynload”,
“/omd/sites/CheckMK/lib/python3.12/site-packages”,
“/omd/sites/CheckMK/lib/python3”
],
“python_version”: “3.12.3 (main, Apr 22 2024, 23:02:52) [GCC 13.2.0]”,
“time”: 1720519684.2923253,
“version”: “2.3.0p7”
}
solution:
step 1 : cmk -vvII hostname
check which plugins problems
may be looks like below
WARNING: Exception in discovery function of check plug-in ‘oracle_instance_uptime’: ‘item’ must be a non empty string or ommited entirely, got ‘’
WARNING: Exception in discovery function of check plug-in ‘oracle_performance’: ‘item’ must be a non empty string or ommited entirely, got ‘’
WARNING: Exception in discovery function of check plug-in ‘oracle_processes’: ‘item’ must be a non empty string or ommited entirely, got ‘’
WARNING: Exception in discovery function of check plug-in ‘oracle_instance’: ‘item’ must be a non empty string or ommited entirely, got ‘’
step 2: if empty rules then disable from service discovery rules
step 3: rescan and check
now you will not get any crash report on checkmk discovery.
Thank you