 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'type', 'file', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'blockId', '3_17', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'name', 'RRD-File', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
-INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'metrics_path', '/var/lib/centreon/metrics', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
-INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'status_path', '/var/lib/centreon/status', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
+INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'metrics_path', '@CENTREON_VARLIB@/metrics', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
+INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'status_path', '@CENTREON_VARLIB@/status', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'failover', '', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'path', '', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
 INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'port', '', 'output', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 

--

INSERT INTO cfg_centreonbroker (config_name, config_filename, config_activate, ns_nagios_server) VALUES ('central-module', 'central-module.xml', '0', 1); 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'name', '/usr/local/centreon-broker/log/central-module.log', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-module'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'config', 'yes', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-module'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'debug', 'no', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-module'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'error', 'yes', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-module'; 

INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'compression_buffer', '', 'input', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'type', 'ipv4', 'input', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'blockId', '2_3', 'input', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'name', '@CENTREON_LOG@/central-rrd.log', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'config', 'yes', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'debug', 'no', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
INSERT INTO cfg_centreonbroker_info (config_id, config_key, config_value, config_group, config_group_id) SELECT config_id, 'error', 'yes', 'logger', 1 FROM `cfg_centreonbroker` WHERE `config_name` = 'Central-rrd'; 
