Ejemplo n.º 1
0
def test_get_omd_config() -> None:
    assert site.get_omd_config() == {
        "CONFIG_ADMIN_MAIL": "",
        "CONFIG_AGENT_RECEIVER": "on",
        "CONFIG_AGENT_RECEIVER_PORT": "8000",
        "CONFIG_APACHE_MODE": "own",
        "CONFIG_APACHE_TCP_ADDR": "127.0.0.1",
        "CONFIG_APACHE_TCP_PORT": "5002",
        "CONFIG_AUTOSTART": "off",
        "CONFIG_CORE": "cmc",
        "CONFIG_LIVEPROXYD": "on",
        "CONFIG_LIVESTATUS_TCP": "off",
        "CONFIG_LIVESTATUS_TCP_ONLY_FROM": "0.0.0.0 ::/0",
        "CONFIG_LIVESTATUS_TCP_PORT": "6557",
        "CONFIG_LIVESTATUS_TCP_TLS": "on",
        "CONFIG_MKEVENTD": "on",
        "CONFIG_MKEVENTD_SNMPTRAP": "off",
        "CONFIG_MKEVENTD_SYSLOG": "on",
        "CONFIG_MKEVENTD_SYSLOG_TCP": "off",
        "CONFIG_MULTISITE_AUTHORISATION": "on",
        "CONFIG_MULTISITE_COOKIE_AUTH": "on",
        "CONFIG_NAGIOS_THEME": "classicui",
        "CONFIG_NSCA": "off",
        "CONFIG_NSCA_TCP_PORT": "5667",
        "CONFIG_PNP4NAGIOS": "on",
        "CONFIG_TMPFS": "on",
    }
Ejemplo n.º 2
0
def use_cmk_graphs():
    return site.get_omd_config("CONFIG_CORE") == "cmc"
Ejemplo n.º 3
0
 def _collect_infos(self) -> site.OMDConfig:
     return site.get_omd_config()
Ejemplo n.º 4
0
def _get_receiver_port() -> int:
    # make sure we really only ever report a number and nothing more
    return int(get_omd_config()["CONFIG_AGENT_RECEIVER_PORT"])