@if (post) {
{{ t('Edit importer') }} {{ post.name }}
@if (!post.container_id) {
{{ t('Please select a container.') }}
}
@switch (post.data_source) { @case ('csv_with_header') { {{ t('The first row of the CSV file will be treated as column names') }} } @case ('csv_without_header') { {{ t('The CSV file consists only data sets without column names as header') }} } @case ('json') { {{ t('Importing Data from JSON Files') }} } }
{{ t('Use external system for showing additional host information') }}
{{ t('openITCOCKPIT will query the selected external monitoring to import devices monitored by the remote system. openITCOCKPIT will synchronize the status. The monitoring itself is still done by the external monitoring system.') }}
{{ t('If enabled, all hosts will be imported even without at least one match') }}
{{ t('If enabled, only new hosts will be imported. Already synchronized hosts are not changed') }}
{{ t('If enabled all hosts outside of import data will get disabled automatically') }}
{{ t('If this option is enabled, disabled hosts will be enabled automatically') }}
{{ t('If enabled all services outside of the service template group assignment will get deleted automatically') }}
{{ t('Keep container settings for hosts that have already been synchronized') }}
{{ t('Keep satellite settings for hosts that have already been synchronized') }}

{{ t('Data source mapping configuration for:') }} @switch (post.data_source) { @case ('csv_with_header') { {{ t('CSV with header') }} } @case ('csv_without_header') { {{ t('CSV without header') }} } @case ('json') { {{ t('JSON') }} } @case ('idoit') { {{ t('i-doit') }} } @case ('openitcockpit_agent') { {{ t('openITCOCKPIT Agent') }} } @case ('itop') { {{ t('iTop') }} } @case ('external_monitoring') { {{ t('External Monitoring') }} } }

@if (formFields) { @for (formField of Object.values(formFields); track formField) {
} }

{{ t('Define global filter for import (optional)') }}

{{ t('The defined regular expression get applied to all imported hosts.') }}

{{ t('Host defaults assignments') }}

@if (errors && errors['validate_matches']) {
{{ t('Do not enter empty matches') }}
}
@if (hostdefaultsAsList.length === 0 && post.container_id) {
{{ t('No host defaults are defined') }}
{{ t('Please create at least one "Host defaults"') }}
}
{{ t('The saved settings get applied to all imported hosts.') }}
@if (post.hostdefault_id > 0 && hostdefaults[post.hostdefault_id]) {
{{ t('Host template') }} {{ hostdefaults[post.hostdefault_id].hosttemplate.name }} {{ t('Container') }} {{ hostdefaults[post.hostdefault_id].container.name }} @if (hostdefaults[post.hostdefault_id].hostdefaults_to_containers_sharing.length > 0) {
{{ t('Shared containers:') }}
    @for (sharedcontainer of hostdefaults[post.hostdefault_id].hostdefaults_to_containers_sharing; track sharedcontainer) {
  • {{ sharedcontainer.name }}
  • }
}
@if (hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplates.length > 0) {
  • {{ t('Field to match') }} {{ t('RegEx that needs to match ') }} {{ t('Service template') }}
  • @for (servicetemplate_match of hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplates; track servicetemplate_match) {
  • {{ servicetemplate_match.field }} {{ servicetemplate_match.regex }} {{ servicetemplate_match.servicetemplate.template_name }}
  • }
} @if (hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplategroups.length > 0) {
  • {{ t('Field to match') }} {{ t('RegEx that needs to match ') }} {{ t('Service template group') }}
  • @for (servicetemplategroup_match of hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplategroups; track servicetemplategroup_match) {
  • {{ servicetemplategroup_match.field }} {{ servicetemplategroup_match.regex }} {{ servicetemplategroup_match.servicetemplategroup.container.name }}
  • }
} @if (hostdefaults[post.hostdefault_id].hostdefaults_to_agentchecks.length > 0) {
  • {{ t('Agent check') }} {{ t('RegEx that needs to match ') }}
  • @for (agentcheck_match of hostdefaults[post.hostdefault_id].hostdefaults_to_agentchecks; track agentcheck_match) {
  • {{ agentcheck_match.agentcheck.name }} {{ agentcheck_match.regex }}
  • }
} @if (hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplates_external_monitoring.length > 0) {
  • {{ t('RegEx that needs to match') }} {{ t('Service template ') }}
  • @for (external_monitoring_check of hostdefaults[post.hostdefault_id].hostdefaults_to_servicetemplates_external_monitoring; track external_monitoring_check) {
  • {{ external_monitoring_check.regex }} {{ external_monitoring_check.servicetemplate.template_name }}
  • }
}
}
{{ t('Optional overwrites') }}
{{ t('Define exceptions for particular hosts, that should get imported using a different configuration.') }}
{{ t('Matching is done in the shown order.') }} {{ t('The last matching overwrite configuration gets used by the Importer.') }}
@if (post.importers_to_hostdefaults.length > 0) {
{{ t('Matching RegEx will be marked in green color') }}
@if (regex_test_string !== '' && matchingImporters.filter(Boolean).length === 0) { {{ t('No overwrite RegEx matches the given input string.') }} } @if (regex_test_string !== '' && matchingImporters.filter(Boolean).length > 0) { {{ matchingImporters.filter(Boolean).length }} {{ t('matching host default overwrite found.') }} }
}
@for (match of post.importers_to_hostdefaults; track $index) {
{{ t('Field to match') }}
{{ t('RegEx that needs to match') }}
{{ t('Host defaults to assign on match') }}
@if (match.hostdefault_id && match.hostdefault_id > 0 && hostdefaults[match.hostdefault_id]) {
{{ t('Host template') }} {{ hostdefaults[match.hostdefault_id].hosttemplate.name }} {{ t('Container') }} {{ hostdefaults[match.hostdefault_id].container.name }} @if (hostdefaults[match.hostdefault_id].hostdefaults_to_containers_sharing.length > 0) {
{{ t('Shared containers:') }}
    @for (sharedcontainer of hostdefaults[match.hostdefault_id].hostdefaults_to_containers_sharing; track sharedcontainer) {
  • {{ sharedcontainer.name }}
  • }
}
@if (hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplates.length > 0) {
  • {{ t('Field to match') }} {{ t('RegEx that needs to match ') }} {{ t('Service template') }}
  • @for (servicetemplate_match of hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplates; track servicetemplate_match) {
  • {{ servicetemplate_match.field }} {{ servicetemplate_match.regex }} {{ servicetemplate_match.servicetemplate.template_name }}
  • }
} @if (hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplategroups.length > 0) {
  • {{ t('Field to match') }} {{ t('RegEx that needs to match ') }} {{ t('Service template group') }}
  • @for (servicetemplategroup_match of hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplategroups; track servicetemplategroup_match) {
  • {{ servicetemplategroup_match.field }} {{ servicetemplategroup_match.regex }} {{ servicetemplategroup_match.servicetemplategroup.container.name }}
  • }
} @if (hostdefaults[match.hostdefault_id].hostdefaults_to_agentchecks.length > 0) {
  • {{ t('Agent check') }} {{ t('RegEx that needs to match ') }}
  • @for (agentcheck_match of hostdefaults[match.hostdefault_id].hostdefaults_to_agentchecks; track agentcheck_match) {
  • {{ agentcheck_match.agentcheck.name }} {{ agentcheck_match.regex }}
  • }
} @if (hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplates_external_monitoring.length > 0) {
  • {{ t('RegEx that needs to match') }} {{ t('Service template ') }}
  • @for (external_monitoring_check of hostdefaults[match.hostdefault_id].hostdefaults_to_servicetemplates_external_monitoring; track external_monitoring_check) {
  • {{ external_monitoring_check.regex }} {{ external_monitoring_check.servicetemplate.template_name }}
  • }
}
}
}
@if (hostdefaultsAsList.length > 0) { }
}