@@ -217,56 +217,61 @@ def dump_host(
217217 )
218218 used_password_store = cmk .utils .password_store .pending_password_store_path ()
219219 passwords = cmk .utils .password_store .load (used_password_store )
220- agenttypes = [
221- dump_source (source )
222- for source in sources .make_sources (
223- plugins ,
224- hostname ,
225- primary_family ,
226- ipaddress ,
227- ip_stack_config ,
228- fetcher_factory = config_cache .fetcher_factory (
229- config_cache .make_service_configurer (plugins .check_plugins , service_name_config ),
230- ip_address_of ,
231- service_name_config ,
232- enforced_services_table ,
233- ),
234- snmp_fetcher_config = SNMPFetcherConfig (
235- scan_config = SNMPScanConfig (
236- on_error = OnError .RAISE ,
237- missing_sys_description = config_cache .missing_sys_description (hostname ),
238- oid_cache_dir = oid_cache_dir ,
239- ),
240- selected_sections = NO_SELECTION ,
241- backend_override = None ,
242- stored_walk_path = stored_walk_path ,
243- walk_cache_path = walk_cache_path ,
244- ),
245- is_cluster = hostname in hosts_config .clusters ,
246- file_cache_options = FileCacheOptions (),
247- simulation_mode = simulation_mode ,
248- file_cache_max_age = MaxAge .zero (),
249- snmp_backend = config_cache .get_snmp_backend (hostname ),
250- file_cache_path = file_cache_path ,
251- tcp_cache_path = tcp_cache_path ,
252- tls_config = tls_config ,
253- computed_datasources = config_cache .computed_datasources (hostname ),
254- datasource_programs = config_cache .datasource_programs (hostname ),
255- tag_list = config_cache .host_tags .tag_list (hostname ),
256- management_ip = ip_address_of_mgmt (hostname , primary_family ),
257- management_protocol = config_cache .management_protocol (hostname ),
258- special_agent_command_lines = config_cache .special_agent_command_lines (
220+ agenttypes = (
221+ []
222+ if hostname in hosts_config .clusters
223+ else [
224+ dump_source (source )
225+ for source in sources .make_sources (
226+ plugins ,
259227 hostname ,
260228 primary_family ,
261229 ipaddress ,
262- password_store_file = used_password_store ,
263- passwords = passwords ,
264- ip_address_of = ip_address_of ,
265- ),
266- agent_connection_mode = config_cache .agent_connection_mode (hostname ),
267- check_mk_check_interval = config_cache .check_mk_check_interval (hostname ),
268- )
269- ]
230+ ip_stack_config ,
231+ fetcher_factory = config_cache .fetcher_factory (
232+ config_cache .make_service_configurer (
233+ plugins .check_plugins , service_name_config
234+ ),
235+ ip_address_of ,
236+ service_name_config ,
237+ enforced_services_table ,
238+ ),
239+ snmp_fetcher_config = SNMPFetcherConfig (
240+ scan_config = SNMPScanConfig (
241+ on_error = OnError .RAISE ,
242+ missing_sys_description = config_cache .missing_sys_description (hostname ),
243+ oid_cache_dir = oid_cache_dir ,
244+ ),
245+ selected_sections = NO_SELECTION ,
246+ backend_override = None ,
247+ stored_walk_path = stored_walk_path ,
248+ walk_cache_path = walk_cache_path ,
249+ ),
250+ file_cache_options = FileCacheOptions (),
251+ simulation_mode = simulation_mode ,
252+ file_cache_max_age = MaxAge .zero (),
253+ snmp_backend = config_cache .get_snmp_backend (hostname ),
254+ file_cache_path = file_cache_path ,
255+ tcp_cache_path = tcp_cache_path ,
256+ tls_config = tls_config ,
257+ computed_datasources = config_cache .computed_datasources (hostname ),
258+ datasource_programs = config_cache .datasource_programs (hostname ),
259+ tag_list = config_cache .host_tags .tag_list (hostname ),
260+ management_ip = ip_address_of_mgmt (hostname , primary_family ),
261+ management_protocol = config_cache .management_protocol (hostname ),
262+ special_agent_command_lines = config_cache .special_agent_command_lines (
263+ hostname ,
264+ primary_family ,
265+ ipaddress ,
266+ password_store_file = used_password_store ,
267+ passwords = passwords ,
268+ ip_address_of = ip_address_of ,
269+ ),
270+ agent_connection_mode = config_cache .agent_connection_mode (hostname ),
271+ check_mk_check_interval = config_cache .check_mk_check_interval (hostname ),
272+ )
273+ ]
274+ )
270275
271276 if config_cache .is_ping_host (hostname ):
272277 agenttypes .append ("PING only" )
0 commit comments