def make_inventory_sections() -> Set[SectionName]: return { s for s in agent_based_register.get_relevant_raw_sections( check_plugin_names=(), inventory_plugin_names=( p.name for p in agent_based_register.iter_all_inventory_plugins())) if agent_based_register.is_registered_snmp_section_plugin(s) }
def _make_checking_sections(self) -> Set[SectionName]: if self.selected_sections is not NO_SELECTION: checking_sections = self.selected_sections else: checking_sections = set( agent_based_register.get_relevant_raw_sections( check_plugin_names=check_table.get_check_table( self.hostname, filter_mode=check_table.FilterMode.INCLUDE_CLUSTERED, skip_ignored=True, ).needed_check_names(), inventory_plugin_names=())) return { s for s in checking_sections if agent_based_register.is_registered_snmp_section_plugin(s) }