Check_MK AWS 监控-RDS 检查不起作用

Check_MK AWS 监控-RDS 检查不起作用

我已使用 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)

答案1

问题是一个错误,其中“DBName”用于标识数据库,但该值并不总是设置。现在它使用“DBInstanceIdentifier”。

在 1.5.0p14 和 1.6.0i1 版本中修复。

工作编号 #7362

如果你想实施修复,你可以找到提交差异官方 Check_MK git 存储库

相关内容