예제 #1
0
파일: ac_tests.py 프로젝트: majma24/checkmk
 def execute(self) -> Iterator[ACResult]:
     for site_id in config.sitenames():
         for result in self._check_site(site_id):
             result.site_id = site_id
             yield result
예제 #2
0
 def site_exists(site_name: SiteId) -> None:
     if site_name not in config.sitenames():
         raise ValidationError(f"Site {site_name!r} does not exist.")
예제 #3
0
파일: ac_tests.py 프로젝트: majma24/checkmk
 def is_relevant(self) -> bool:
     # This check is only executed on the central instance of multisite setups
     return len(config.sitenames()) > 1
예제 #4
0
 def execute(self):
     for site_id in config.sitenames():
         site_config = config.site(site_id)
         for result in self._check_site(site_id, site_config):
             result.site_id = site_id
             yield result