centreon / centreon-clapi

Centreon CLAPI Module
14 stars 14 forks source link

Service Import Failed #196

Closed centreon closed 8 years ago

centreon commented 9 years ago

Author Name: fr thibaud (fr thibaud) Original Redmine Issue: 6182, https://forge.centreon.com/issues/6182 Original Date: 2015-03-05


Hello,

I want to export/import my whole configuration from one old Centreon instance to a new one. It fails for about 10% of the services. It seems to be the ones not associated with a service template.

For example, this : SERVICE;ADD;SRV-MYSRV;service-myappsvc; SERVICE;setparam;SRV-MYSRV;service-myappsvc;check_command;check_nt_service SERVICE;setparam;SRV-MYSRV;service-myappsvc;check_period;workhours SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_is_volatile;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_max_check_attempts;5 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_normal_check_interval;5 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_retry_check_interval;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_active_checks_enabled;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_passive_checks_enabled;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_parallelize_check;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_obsess_over_service;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_check_freshness;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_event_handler_enabled;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_flap_detection_enabled;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_process_perf_data;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_retain_status_information;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_retain_nonstatus_information;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_notification_options;w,c,r SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_notifications_enabled;2 SERVICE;setparam;SRV-MYSRV;service-myappsvc;check_command_arguments;!'myappsvc' SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_register;1 SERVICE;setparam;SRV-MYSRV;service-myappsvc;service_activate;1

produce this output : Line 1 : Object not found: Line 2 : Object not found:SRV-MYSRV/service-myappsvc Line 3 : Object not found:SRV-MYSRV/service-myappsvc Line 4 : Object not found:SRV-MYSRV/service-myappsvc Line 5 : Object not found:SRV-MYSRV/service-myappsvc Line 6 : Object not found:SRV-MYSRV/service-myappsvc Line 7 : Object not found:SRV-MYSRV/service-myappsvc Line 8 : Object not found:SRV-MYSRV/service-myappsvc Line 9 : Object not found:SRV-MYSRV/service-myappsvc Line 10 : Object not found:SRV-MYSRV/service-myappsvc Line 11 : Object not found:SRV-MYSRV/service-myappsvc Line 12 : Object not found:SRV-MYSRV/service-myappsvc Line 13 : Object not found:SRV-MYSRV/service-myappsvc Line 14 : Object not found:SRV-MYSRV/service-myappsvc Line 15 : Object not found:SRV-MYSRV/service-myappsvc Line 16 : Object not found:SRV-MYSRV/service-myappsvc Line 17 : Object not found:SRV-MYSRV/service-myappsvc Line 18 : Object not found:SRV-MYSRV/service-myappsvc Line 19 : Object not found:SRV-MYSRV/service-myappsvc Line 20 : Object not found:SRV-MYSRV/service-myappsvc Line 21 : Object not found:SRV-MYSRV/service-myappsvc Line 22 : Object not found:SRV-MYSRV/service-myappsvc

The so-called "object not found" seems to be a service template which is, as far as I know, not mandatory.

Any idea?

Thanks a lot,

kduret commented 9 years ago

Hi,

Did the import of host "SRV-MYSRV" failed ?

Cause your host has not been imported, so its linked services can't be imported.

Regards,