Closed sizeur closed 7 years ago
With centreon-web 2.8.10, when we create a Parent relation between two hosts we can see it with the following command:
centreon -u admin -p centreon -o HOST -a "getparent" -v "hote_fils" id;name 14;Centreon-Server
But we export the configuration this relation is not present anymore: (centreon -u admin -p centreon -e > /tmp/clapi_export.txt)
grep '^HOST;.hote_fils' clapi_export.txt HOST;ADD;localhost;localhost;127.0.0.1;;Central; HOST;setparam;localhost;host_active_checks_enabled;2 HOST;setparam;localhost;host_passive_checks_enabled;2 HOST;setparam;localhost;host_checks_enabled;2 HOST;setparam;localhost;host_obsess_over_host;2 HOST;setparam;localhost;host_check_freshness;2 HOST;setparam;localhost;host_event_handler_enabled;2 HOST;setparam;localhost;host_flap_detection_enabled;2 HOST;setparam;localhost;host_retain_status_information;2 HOST;setparam;localhost;host_retain_nonstatus_information;2 HOST;setparam;localhost;host_notifications_enabled;2 HOST;setparam;localhost;contact_additive_inheritance;0 HOST;setparam;localhost;cg_additive_inheritance;0 HOST;setparam;localhost;host_locked;0 HOST;setparam;localhost;host_register;1 HOST;setparam;localhost;host_activate;1 HOST;addtemplate;localhost;OS-Linux-SNMP-custom
The ticket was not created in the right departement, i made a new one here: https://github.com/centreon/centreon/issues/5605
With centreon-web 2.8.10, when we create a Parent relation between two hosts we can see it with the following command:
centreon -u admin -p centreon -o HOST -a "getparent" -v "hote_fils" id;name 14;Centreon-Server
But we export the configuration this relation is not present anymore: (centreon -u admin -p centreon -e > /tmp/clapi_export.txt)
grep '^HOST;.hote_fils' clapi_export.txt HOST;ADD;localhost;localhost;127.0.0.1;;Central; HOST;setparam;localhost;host_active_checks_enabled;2 HOST;setparam;localhost;host_passive_checks_enabled;2 HOST;setparam;localhost;host_checks_enabled;2 HOST;setparam;localhost;host_obsess_over_host;2 HOST;setparam;localhost;host_check_freshness;2 HOST;setparam;localhost;host_event_handler_enabled;2 HOST;setparam;localhost;host_flap_detection_enabled;2 HOST;setparam;localhost;host_retain_status_information;2 HOST;setparam;localhost;host_retain_nonstatus_information;2 HOST;setparam;localhost;host_notifications_enabled;2 HOST;setparam;localhost;contact_additive_inheritance;0 HOST;setparam;localhost;cg_additive_inheritance;0 HOST;setparam;localhost;host_locked;0 HOST;setparam;localhost;host_register;1 HOST;setparam;localhost;host_activate;1 HOST;addtemplate;localhost;OS-Linux-SNMP-custom