Я настроил мониторинг AWS с помощью Check_MK версии 1.5.0p13 (согласно документации на официальном сайте 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.
Если вы хотите реализовать исправление, вы можете найти фиксацию diff здесь, в официальном репозитории Check_MK git.