| 1 | | <!--########################################################################### |
| 2 | | # CentStorage is developped with GPL Licence 2.0 # |
| 3 | | # # |
| 4 | | # GPL License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt # |
| 5 | | # # |
| 6 | | # Developped by : Romain Bertholon # |
| 7 | | # # |
| 8 | | ############################################################################### |
| 9 | | # This program is free software; you can redistfribute it and/or # |
| 10 | | # modify it under the terms of the GNU General Public License # |
| 11 | | # as published by the Free Software Foundation; either version 2 # |
| 12 | | # of the License, or (at your option) any later version. # |
| 13 | | # # |
| 14 | | # This program is distributed in the hope that it will be useful, # |
| 15 | | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 16 | | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
| 17 | | # GNU General Public License for more details. # |
| 18 | | # # |
| 19 | | # For information : contact@merethis.com # |
| 20 | | ############################################################################--> |
| 21 | | |
| 22 | | <!-- |
| 23 | | This file is the configuration file of Centstorage. In this case it is called |
| 24 | | CentStorage.conf but you can use your own configuration file by using the -f |
| 25 | | option on the command line (ex: $> centstorage -f my_conf_file). |
| 26 | | |
| 27 | | The libxml2 is used to parse the configuration file. If there is one (or more) |
| 28 | | syntax errors the configuration isn't load from the configuration file: |
| 29 | | default values are loaded(see DefaultConfiguration.c and .h for more |
| 30 | | informations). |
| 31 | | |
| 32 | | You can modify the configurations during the execution of centstorage, |
| 33 | | modifications will be load 'on the fly'. But even you chage the modules |
| 34 | | configuration(see below for more informations) modules won't be load or |
| 35 | | unload, you must restart censtorage to do such a thing. |
| 36 | | --> |
| 37 | | |
| | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 45 | | Modules are shared library (extension .so) loaded dinamically with |
| 46 | | the dlopen function. |
| 47 | | |
| 48 | | If the attribute loaded is not set to 'yes' the module won't be load |
| 49 | | |
| 50 | | The attribute name must be present, otherwise the module won't be load. |
| 51 | | You can of course add some specific configurations values for a module |
| 52 | | (but you must load them from the module). |
| 53 | | --> |
| 54 | | <modules dir="/home/rbertholon/workspace/centstorage/modules/"> |
| 55 | | <module loaded="no" name="hello_world"> |
| 56 | | </module> |
| 57 | | |
| 58 | | <module loaded="yes" name="recup_perf_datas"> |
| 59 | | <use_ssl>NO</use_ssl> |
| 60 | | <ssl_port>4445</ssl_port> |
| 61 | | <port>4748</port> |
| 62 | | </module> |
| 63 | | |
| 64 | | </modules> |
| 65 | | |
| 66 | | <logging log="YES"> |
| 67 | | <log_file>./CentStorage.log</log_file> |
| 68 | | <level>0</level> |
| 69 | | <syslog>YES</syslog> |
| | 13 | <!-- |
| | 14 | Configuration of the logging. |
| | 15 | --> |
| | 16 | <logging use="yes"> |
| | 17 | <archive use="yes" unit="hours">1</archive> |
| | 18 | <logFile>/home/rbertholon/workspace/centstorage/CentStorage.log</logFile> |
| | 19 | <sysLog>YES</sysLog> |
| 87 | | <perfDB> |
| 88 | | <port>3306</port> |
| 89 | | <host>127.0.0.1</host> |
| 90 | | <name>centreon2_centstorage</name> |
| 91 | | <type>MYSQL</type> |
| 92 | | <user>root</user> |
| 93 | | <pass></pass> |
| 94 | | </perfDB> |
| | 29 | <SSL use="only" checkCl="yes"> |
| | 30 | <port>5557</port> |
| | 31 | <prvKey>/home/rbertholon/workspace/centstorage/modules/recup_perf_datas/server.key</prvKey> |
| | 32 | <cert>/home/rbertholon/workspace/centstorage/modules/recup_perf_datas/server.crt</cert> |
| | 33 | <CaCert>/home/rbertholon/workspace/centstorage/modules/recup_perf_datas/server_ca.crt</CaCert> |
| | 34 | </SSL> |
| | 35 | </module> |
| | 36 | </modules> |
| | 37 | |
| | 38 | <!-- |
| | 39 | configuration of databases |
| | 40 | --> |
| | 41 | <DataBases> |
| | 42 | <perfDB> |
| | 43 | <type>MySQL</type> |
| | 44 | <name>centreon2_centstorage</name> |
| | 45 | <host>127.0.0.1</host> |
| | 46 | <!-- <port>5432</port> --> |
| | 47 | <port>3306</port> |
| | 48 | <user>root</user> |
| | 49 | <pass>toto</pass> |
| | 50 | </perfDB> |
| | 51 | |
| | 52 | <confDB> |
| | 53 | <type>MySQL</type> |
| | 54 | <name>PerfDB</name> |
| | 55 | <host>127.0.0.1</host> |
| | 56 | <port></port> |
| | 57 | <user>root</user> |
| | 58 | <pass>toto</pass> |
| | 59 | </confDB> |
| | 60 | </DataBases> |
| | 61 | |