Importing service definitions only considers the last Custom Object Variable in the config file.
Below example translates into having only _var3 imported.
define service {
#NAGIOSQL_CONFIG_NAME myhostname
host_name myhostname
service_description mem_free
display_name mem_free
use generic-service
check_command check_nrpe!check_mem_free
is_volatile 0
max_check_attempts 4
check_interval 1
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
obsess_over_service 0
check_freshness 1
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_interval 216000
first_notification_delay 0
notification_period 24x7
notification_options w,u,c,r,s
notifications_enabled 1
contacts nagios_admin
_var1 somevalue
_var2 someothervalue
_var3 onetwothree
register 1
}
Fixed on GitLab - 2019-12-04