File centreon-web-centreonbroker_module_path.patch of Package centreon-web

Index: centreon-web-19.10.1/www/class/centreon-clapi/centreonInstance.class.php
===================================================================
--- centreon-web-19.10.1.orig/www/class/centreon-clapi/centreonInstance.class.php
+++ centreon-web-19.10.1/www/class/centreon-clapi/centreonInstance.class.php
@@ -64,16 +64,16 @@ class CentreonInstance extends CentreonO
             'localhost' => '0',
             'ns_activate' => '1',
             'ssh_port' => '22',
-            'nagios_bin' => '/usr/sbin/centengine',
-            'nagiostats_bin' => '/usr/bin/centenginestats',
+            'nagios_bin' => '@MONITORINGENGINE_BINARY@',
+            'nagiostats_bin' => '@MONITORINGENGINE_STATS_BINARY@',
             'engine_start_command' => 'service centengine start',
             'engine_stop_command' => 'service centengine stop',
             'engine_restart_command' => 'service centengine restart',
             'engine_reload_command' => 'service centengine reload',
             'broker_reload_command' => 'service cbd reload',
-            'centreonbroker_cfg_path' => '/etc/centreon-broker',
-            'centreonbroker_module_path' => '/usr/share/centreon/lib/centreon-broker',
-            'centreonconnector_path' => '/usr/lib64/centreon-connector'
+            'centreonbroker_cfg_path' => '@CENTREONBROKER_ETC@',
+            'centreonbroker_module_path' => '@CENTREONBROKER_MODULE_PATH@',
+            'centreonconnector_path' => '@CENTREONCONNECTOR_PATH@'
         ];
         $this->insertParams = array('name', 'ns_ip_address', 'ssh_port');
         $this->exportExcludedParams = array_merge(
Index: centreon-web-19.10.1/www/include/configuration/configServers/formServers.php
===================================================================
--- centreon-web-19.10.1.orig/www/include/configuration/configServers/formServers.php
+++ centreon-web-19.10.1/www/include/configuration/configServers/formServers.php
@@ -283,13 +283,13 @@ $form->addElement('text', 'snmp_trapd_pa
  */
 if (isset($_GET["o"]) && $_GET["o"] == SERVER_ADD) {
     $monitoring_engines = [
-        "nagios_bin" => "/usr/sbin/centengine",
-        "nagiostats_bin" => "/usr/sbin/centenginestats",
+        "nagios_bin" => "@MONITORINGENGINE_BINARY@",
+        "nagiostats_bin" => "@MONITORINGENGINE_STATS_BINARY@",
         "engine_start_command" => "service centengine start",
         "engine_stop_command" => "service centengine stop",
         "engine_restart_command" => "service centengine restart",
         "engine_reload_command" => "service centengine reload",
-        "nagios_perfdata" => "/var/log/centreon-engine/service-perfdata"
+        "nagios_perfdata" => "@MONITORINGENGINE_LOG@/service-perfdata"
     ];
 
     $form->setDefaults(
@@ -310,11 +310,11 @@ if (isset($_GET["o"]) && $_GET["o"] == S
             "ssh_private_key"  =>  '~/.ssh/rsa.id',
             "nagios_perfdata"  => $monitoring_engines["nagios_perfdata"],
             "broker_reload_command" => "service cbd reload",
-            "centreonbroker_cfg_path" => "/etc/centreon-broker",
-            "centreonbroker_module_path" => "/usr/share/centreon/lib/centreon-broker",
-            "centreonbroker_logs_path" => "/var/log/centreon-broker",
-            "init_script_centreontrapd" => "centreontrapd",
-            "snmp_trapd_path_conf" => "/etc/snmp/centreon_traps/",
+            "centreonbroker_cfg_path" => "@CENTREONBROKER_ETC@",
+            "centreonbroker_module_path" => "@CENTREONBROKER_MODULE_PATH@",
+            "centreonbroker_logs_path" => "@CENTREONBROKER_LOG@",
+            "init_script_centreontrapd" => "@CENTREONTRAPD_INIT_SCRIPT@",
+            "snmp_trapd_path_conf" => "@CENTREONTRAPD_SNMP_PATH_CONF@/",
             "remote_server_centcore_ssh_proxy" => '1'
         ]
     );
openSUSE Build Service is sponsored by