Exemple #1
0
 def __init__(self):
     sites_callback = SitesCallback(cmk.gui.sites.states,
                                    bi_livestatus_query)
     self.compiler = BICompiler(self.bi_configuration_file(),
                                sites_callback)
     self.compiler.load_compiled_aggregations()
     self.status_fetcher = BIStatusFetcher(sites_callback)
     self.computer = BIComputer(self.compiler.compiled_aggregations,
                                self.status_fetcher)
Exemple #2
0
def bi_status_fetcher():
    status_fetcher = BIStatusFetcher(SitesCallback(lambda: None, lambda: None))
    yield status_fetcher
Exemple #3
0
def bi_status_fetcher():
    status_fetcher = BIStatusFetcher(
        SitesCallback(lambda: None, mock_query_callback))
    yield status_fetcher