我已经使用 Check_MK 版本 1.5.0p13 配置了 AWS 监控(遵循 Check_MK 官方站点上的文档)。一切正常,除了 RDS 检查,当我去发现服务时,我得到:
Service discovery failed for this host: 'DBName'
我可以做些什么来调试这个问题,我在哪里可以获得更多输出?任何想法如何解决这个问题?
这是输出:
cmk -vI aws
WARNING: Exception while parsing agent section 'aws_rds_summary': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds_summary", line 30, in parse_aws_rds_summary
return {instance['DBName']: instance for instance in parse_aws(info)}
File "/omd/sites/mysite/share/check_mk/checks/aws_rds_summary", line 30, in <dictcomp>
return {instance['DBName']: instance for instance in parse_aws(info)}
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds_summary': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds_summary", line 30, in parse_aws_rds_summary
return {instance['DBName']: instance for instance in parse_aws(info)}
File "/omd/sites/mysite/share/check_mk/checks/aws_rds_summary", line 30, in <dictcomp>
return {instance['DBName']: instance for instance in parse_aws(info)}
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
WARNING: Exception while parsing agent section 'aws_rds': KeyError('DBName',)
File "/omd/sites/mysite/lib/python/cmk_base/data_sources/host_sections.py", line 260, in _update_with_parse_function
return parse_function(section_content)
File "/omd/sites/mysite/share/check_mk/checks/aws_rds", line 72, in parse_aws_rds
parsed.setdefault(metrics['DBName'], metrics)
问题是一个错误,其中“DBName”用于标识数据库,但并不总是设置该值。现在它使用“DBInstanceIdentifier”。
在 1.5.0p14 和 1.6.0i1 版本中修复。
韦克 #7362
如果您想实施修复,您可以在官方 Check_MK git 存储库中找到提交差异。