コード例 #1
0
ファイル: test_ec_status.py プロジェクト: troelsarvin/checkmk
def fixture_settings():
    return ec.settings(
        "1.2.3i45",
        cmk.utils.paths.omd_root,
        pathlib.Path(cmk.utils.paths.default_config_dir),
        ["mkeventd"],
    )
コード例 #2
0
def eventd_configuration():
    global cached_config
    if cached_config and cached_config[0] is html:
        return cached_config[1]

    settings = ec.settings('', Path(cmk.utils.paths.omd_root),
                           Path(cmk.utils.paths.default_config_dir), [''])
    cfg = ec.load_config(settings)
    cached_config = (html, cfg)
    return cfg
コード例 #3
0
ファイル: mkeventd.py プロジェクト: inettgmbh/checkmk
def eventd_configuration() -> ec.ConfigFromWATO:
    global cached_config
    # TODO: Huh??? Why do we use html simply as a tag here???
    if cached_config and cached_config[0] is html:
        return cached_config[1]

    settings = ec.settings('', Path(cmk.utils.paths.omd_root),
                           Path(cmk.utils.paths.default_config_dir), [''])
    cfg = ec.load_config(settings)
    cached_config = (html, cfg)
    return cfg
コード例 #4
0
def fixture_settings():
    return ec.settings('1.2.3i45', pathlib.Path(cmk.utils.paths.omd_root),
                       pathlib.Path(cmk.utils.paths.default_config_dir),
                       ['mkeventd'])
コード例 #5
0
def _eventd_configuration() -> ec.ConfigFromWATO:
    return ec.load_config(
        ec.settings(
            "", Path(cmk.utils.paths.omd_root), Path(cmk.utils.paths.default_config_dir), [""]
        )
    )