check_mk.py 文件中的 check_mk 错误

check_mk.py 文件中的 check_mk 错误

有人能告诉我为什么我会收到以下错误吗?

OMD[site-name]:~/etc/nagios/conf.d$ check_mk -O

Traceback (most recent call last):
  File "/omd/sites/site-name/share/check_mk/modules/check_mk.py", line 4560, in <module>
    read_config_files()
  File "/omd/sites/site-name/share/check_mk/modules/check_mk.py", line 4358, in read_config_files
    read_all_autochecks()
  File "/omd/sites/site-name/share/check_mk/modules/check_mk.py", line 4507, in read_all_autochecks
    for (host, ct, it, par) in autochecks ]
  File "/omd/sites/site-name/share/check_mk/modules/check_mk.py", line 4416, in compute_check_parameters
    def_levels_varname = check_info[checktype].get("default_levels_variable")
KeyError: 'linux.version'

答案1

由于这发生在 check_info 中,所以似乎您安装了一个已损坏的自定义检查插件。

相关内容