Пример #1
0
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
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), [""]
        )
    )