From 5816a6fd632c2527cc89e6fb4a544d88e985996b Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 12 Mar 2024 15:28:43 +0100 Subject: [PATCH 1/8] doc(database): handle mysql 8 compatibility --- .../installation/compatibility.md | 7 +- .../installation/compatibility.md | 7 +- .../_database-configuration.mdx | 91 ++++++++ .../using-packages.md | 218 ++++++++++++++++-- yarn.lock | 150 ++++++------ 5 files changed, 374 insertions(+), 99 deletions(-) create mode 100644 versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md index a385b5ab1c7e..94feeee25a7c 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md @@ -39,8 +39,9 @@ Attention, les modules de l'IT Edition et de la Business Edition ne fonctionnent ### SGBD -| Logiciel | Version | -|----------|---------| -| MariaDB | 10.5.x | +| Logiciel | Version | +|----------|-----------------------| +| MariaDB | >= 10.5 and < 11 | +| MySQL | 8 | > Vous pouvez utiliser un autre SGBD basé sur MySQL, mais celui-ci sera uniquement supporté par la communauté. \ No newline at end of file diff --git a/versioned_docs/version-24.04/installation/compatibility.md b/versioned_docs/version-24.04/installation/compatibility.md index c82c2c0c6ec6..542323bd26c9 100644 --- a/versioned_docs/version-24.04/installation/compatibility.md +++ b/versioned_docs/version-24.04/installation/compatibility.md @@ -39,8 +39,9 @@ Bear in mind that IT Edition and Business Edition modules do not work yet on uns ### DBMS -| Software | Version | -|----------|---------| -| MariaDB | 10.5.x | +| Software | Version | +|----------|-----------------------| +| MariaDB | >= 10.5 and < 11 | +| MySQL | 8 | > You can use another DBMS based on MySQL, but it will only be supported by the community. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx b/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx new file mode 100644 index 000000000000..3bdf6eea6729 --- /dev/null +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx @@ -0,0 +1,91 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import CodeBlock from '@theme/CodeBlock'; + +
  • +The package centreon-{props.name} installs an optimized {props.name === 'mysql' ? 'MySQL' : 'MariaDB'} configuration + to be used with Centreon. +
  • + + +
    +If this package is not installed, system limitation **LimitNOFILE** should be +at least set to **32000** using a dedicated configuration file; for example: + + + + $ cat {props.name === 'mysql' ? '/etc/systemd/system/mariadb.service.d/centreon.cssonf' : '/etc/systemd/system/mariadb.service.d/centreon.conf'} + [Service] + LimitNOFILE=32000 + +
    + +* Same for the MariaDB **open_files_limit** directive: + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: +> +> ```shell +> /etc/mysql/mariadb.conf.d/50-server.cnf +> ``` +> +> Set the **bind-address** parameter to **0.0.0.0** and restart mariadb. +> +> ```shell +> systemctl restart mariadb +> ``` + + + + +> In addition to the directives above, it is strongly recommended to tune the +> database configuration with the following parameters: +> +> ```shell +> [server] +> key_buffer_size = 256M +> sort_buffer_size = 32M +> join_buffer_size = 4M +> thread_cache_size = 64 +> read_buffer_size = 512K +> read_rnd_buffer_size = 256K +> max_allowed_packet = 128M +> ``` +> +> Optionally, tune the memory and buffer utilization of the InnoDB engine powered +> tables. The example below applies to a database server with 8 GB RAM +> +> ```shell +> innodb_buffer_pool_size=1G +> ``` +> +> Remember to restart MariaDB after changing the configuration. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 7ad5b88bee55..2f57ae873fac 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -4,6 +4,7 @@ title: Using packages --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import DatabaseConfiguration from './_database-configuration.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. @@ -320,33 +321,63 @@ apt update -#### MariaDB repository +#### Database repository + + + + ```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5" +dnf module enable -y mariadb:10.5 ``` -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=9 --mariadb-server-version="mariadb-10.5" -``` +*Nothing to do, MariaDB 10.5 is already available in official repositories.* + + + + +*Nothing to do, MariaDB 10.5 is already available in official repositories.* + + + + + + + + + + + +*Nothing to do, MySQL 8.0 is already available in official repositories.* + + + + +*Nothing to do, MySQL 8.0 is already available in official repositories.* ```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s -- --os-type=debian --os-version=11 --mariadb-server-version="mariadb-10.5" +wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb +apt install /tmp/mysql-apt-config_0.8.29-1_all.deb +# Select 4 to validate installation of "MySQL Tools & Connectors" +apt update ``` + + + #### Centreon repository To install Centreon software, you should first install the Centreon repository. @@ -403,11 +434,14 @@ a remote database on a dedicated server. + + + ```shell -dnf install -y centreon +dnf install -y mariadb-server centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -416,7 +450,7 @@ systemctl restart mariadb ```shell -dnf install -y centreon +dnf install -y mariadb-server centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -426,7 +460,7 @@ systemctl restart mariadb ```shell apt update -apt install -y --no-install-recommends centreon +apt install -y --no-install-recommends mariadb-server centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -435,6 +469,43 @@ systemctl restart mariadb + + + + + +```shell +dnf install -y mysql-server centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +dnf install -y mysql-server centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +apt update +apt install -y --no-install-recommends mysql-server centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + + + > If installing the database on a dedicated server, this server should also have @@ -469,11 +540,14 @@ apt install -y --no-install-recommends centreon-central Then run the following commands on the dedicated server for your database: + + + ```shell -dnf install -y centreon-database +dnf install -y mariadb-server centreon-database systemctl daemon-reload systemctl restart mariadb ``` @@ -482,7 +556,7 @@ systemctl restart mariadb ```shell -dnf install -y centreon-database +dnf install -y mariadb-server centreon-database systemctl daemon-reload systemctl restart mariadb ``` @@ -492,7 +566,7 @@ systemctl restart mariadb ```shell apt update -apt install -y --no-install-recommends centreon-database +apt install -y --no-install-recommends mariadb-server centreon-database systemctl daemon-reload systemctl restart mariadb ``` @@ -500,9 +574,46 @@ systemctl restart mariadb + + + + + + +```shell +dnf install -y mysql-server centreon-database +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +dnf install -y mysql-server centreon-database +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +apt update +apt install -y --no-install-recommends mysql-server centreon-database +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + + > It is mandatory to set a password for the root user of the database. -Secure your MariaDB root access by executing the following command: +Secure your database root access by executing the following command: ```shell mysql_secure_installation @@ -542,7 +653,10 @@ Example: DROP USER 'dbadmin'@''; ``` -* The package **centreon-database** installs an optimized MariaDB configuration + + + +* The package **centreon-mariadb** installs an optimized MariaDB configuration to be used with Centreon. > If this package is not installed, system limitation **LimitNOFILE** should be @@ -585,15 +699,15 @@ DROP USER 'dbadmin'@''; > innodb_file_per_table=1 > open_files_limit=32000 > ``` -> +> > MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: -> +> > ```shell > /etc/mysql/mariadb.conf.d/50-server.cnf > ``` -> +> > Set the **bind-address** parameter to **0.0.0.0** and restart mariadb. -> +> > ```shell > systemctl restart mariadb > ``` @@ -601,6 +715,70 @@ DROP USER 'dbadmin'@''; + + + +* The package **centreon-mysql** installs an optimized MySQL configuration + to be used with Centreon. + +> If this package is not installed, system limitation **LimitNOFILE** should be +> at least set to **32000** using a dedicated configuration file; for example: +> +> ```shell +> $ cat /etc/systemd/system/mysql.service.d/centreon.conf +> [Service] +> LimitNOFILE=32000 +> ``` + +* Same for the MySQL **open_files_limit** directive: + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mysql.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MySQL must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: +> +> ```shell +> /etc/mysql/mysql.conf.d/50-server.cnf +> ``` +> +> Set the **bind-address** parameter to **0.0.0.0** and restart mysql. +> +> ```shell +> systemctl restart mysql +> ``` + + + + + + > In addition to the directives above, it is strongly recommended to tune the > database configuration with the following parameters: > @@ -622,7 +800,9 @@ DROP USER 'dbadmin'@''; > innodb_buffer_pool_size=1G > ``` > -> Remember to restart MariaDB after changing the configuration. +> Remember to restart database after changing the configuration. + + diff --git a/yarn.lock b/yarn.lock index 0732d1e61e6c..2307a4277360 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2103,79 +2103,79 @@ "@svgr/plugin-jsx" "8.1.0" "@svgr/plugin-svgo" "8.1.0" -"@swc/core-darwin-arm64@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.90.tgz#5eb85b4911c6e1a8a082711b7ef3d4be3f86163f" - integrity sha512-he0w74HvcoufE6CZrB/U/VGVbc7021IQvYrn1geMACnq/OqMBqjdczNtdNfJAy87LZ4AOUjHDKEIjsZZu7o8nQ== - -"@swc/core-darwin-x64@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.90.tgz#e6d5c2118c6ad060f58ce9c7d246cf4c30420516" - integrity sha512-hKNM0Ix0qMlAamPe0HUfaAhQVbZEL5uK6Iw8v9ew0FtVB4v7EifQ9n41wh+yCj0CjcHBPEBbQU0P6mNTxJu/RQ== - -"@swc/core-linux-arm-gnueabihf@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.90.tgz#02cfecb0e5f3457e64e81eca70337c6dadba864d" - integrity sha512-HumvtrqTWE8rlFuKt7If0ZL7145H/jVc4AeziVjcd+/ajpqub7IyfrLCYd5PmKMtfeSVDMsxjG0BJ0HLRxrTJA== - -"@swc/core-linux-arm64-gnu@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.90.tgz#1ed87e65facc446880f5753fb89951da418f6ff5" - integrity sha512-tA7DqCS7YCwngwXZQeqQhhMm8BbydpaABw8Z/EDQ7KPK1iZ1rNjZw+aWvSpmNmEGmH1RmQ9QDS9mGRDp0faAeg== - -"@swc/core-linux-arm64-musl@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.90.tgz#531edd90f46aa7282e919178633f483f7ba073d6" - integrity sha512-p2Vtid5BZA36fJkNUwk5HP+HJlKgTru+Ghna7pRe45ghKkkRIUk3fhkgudEvfKfhT+3AvP+GTVQ+T9k0gc9S8w== - -"@swc/core-linux-x64-gnu@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.90.tgz#7b3937570964e290a0f382353d88fe8421ceb470" - integrity sha512-J6pDtWaulYGXuANERuvv4CqmUbZOQrRZBCRQGZQJ6a86RWpesZqckBelnYx48wYmkgvMkF95Y3xbI3WTfoSHzw== - -"@swc/core-linux-x64-musl@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.90.tgz#ae042d8dc84e086954a26308e4bccf6f38c1dafe" - integrity sha512-3Gh6EA3+0K+l3MqnRON7h5bZ32xLmfcVM6QiHHJ9dBttq7YOEeEoMOCdIPMaQxJmK1VfLgZCsPYRd66MhvUSkw== - -"@swc/core-win32-arm64-msvc@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.90.tgz#4952413bae4c5dbd7c150f7a626556fc6a2a3525" - integrity sha512-BNaw/iJloDyaNOFV23Sr53ULlnbmzSoerTJ10v0TjSZOEIpsS0Rw6xOK1iI0voDJnRXeZeWRSxEC9DhefNtN/g== - -"@swc/core-win32-ia32-msvc@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.90.tgz#ea5d417d3085dc521e6be6ecaef8c6ca59c4e5ec" - integrity sha512-SiyTethWAheE/JbxXCukAAciU//PLcmVZ2ME92MRuLMLmOhrwksjbaa7ukj9WEF3LWrherhSqTXnpj3VC1l/qw== - -"@swc/core-win32-x64-msvc@1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.90.tgz#af770b063fe7f32488a87cf0a9777e11932f7a3a" - integrity sha512-OpWAW5ljKcPJ3SQ0pUuKqYfwXv7ssIhVgrH9XP9ONtdgXKWZRL9hqJQkcL55FARw/gDjKanoCM47wsTNQL+ZZA== +"@swc/core-darwin-arm64@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.6.tgz#4465c6f1ae011d4829ba8923f6aac9aae7828416" + integrity sha512-bpggpx/BfLFyy48aUKq1PsNUxb7J6CINlpAUk0V4yXfmGnpZH80Gp1pM3GkFDQyCfq7L7IpjPrIjWQwCrL4hYw== + +"@swc/core-darwin-x64@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.4.6.tgz#5ddda080ad9824b56d6470163c752e27e22d5a89" + integrity sha512-vJn+/ZuBTg+vtNkcmgZdH6FQpa0hFVdnB9bAeqYwKkyqP15zaPe6jfC+qL2y/cIeC7ASvHXEKrnCZgBLxfVQ9w== + +"@swc/core-linux-arm-gnueabihf@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.6.tgz#eb6dbd10bd4b6ad36f85ef9c99c675f1aa4f598b" + integrity sha512-hEmYcB/9XBAl02MtuVHszhNjQpjBzhk/NFulnU33tBMbNZpy2TN5yTsitezMq090QXdDz8sKIALApDyg07ZR8g== + +"@swc/core-linux-arm64-gnu@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.6.tgz#41ce65332b2e8d5bf69b0e95fd02a9134784d5de" + integrity sha512-/UCYIVoGpm2YVvGHZM2QOA3dexa28BjcpLAIYnoCbgH5f7ulDhE8FAIO/9pasj+kixDBsdqewHfsNXFYlgGJjQ== + +"@swc/core-linux-arm64-musl@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.6.tgz#0d579abd7960db3f08915beac0f3bac3cd202425" + integrity sha512-LGQsKJ8MA9zZ8xHCkbGkcPSmpkZL2O7drvwsGKynyCttHhpwVjj9lguhD4DWU3+FWIsjvho5Vu0Ggei8OYi/Lw== + +"@swc/core-linux-x64-gnu@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.6.tgz#204d4a722ae8e9d4800d37583b64ef6472f6ad74" + integrity sha512-10JL2nLIreMQDKvq2TECnQe5fCuoqBHu1yW8aChqgHUyg9d7gfZX/kppUsuimqcgRBnS0AjTDAA+JF6UsG/2Yg== + +"@swc/core-linux-x64-musl@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.6.tgz#d2d1b1130a275a428ff144fedaffb75db8081022" + integrity sha512-EGyjFVzVY6Do89x8sfah7I3cuP4MwtwzmA6OlfD/KASqfCFf5eIaEBMbajgR41bVfMV7lK72lwAIea5xEyq1AQ== + +"@swc/core-win32-arm64-msvc@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.6.tgz#86066f9eee4e73b24826184f930eb3fb44e2b973" + integrity sha512-gfW9AuXvwSyK07Vb8Y8E9m2oJZk21WqcD+X4BZhkbKB0TCZK0zk1j/HpS2UFlr1JB2zPKPpSWLU3ll0GEHRG2A== + +"@swc/core-win32-ia32-msvc@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.6.tgz#238b5143b9fec2048cf0a0e24763775561a472b1" + integrity sha512-ZuQm81FhhvNVYtVb9GfZ+Du6e7fZlkisWvuCeBeRiyseNt1tcrQ8J3V67jD2nxje8CVXrwG3oUIbPcybv2rxfQ== + +"@swc/core-win32-x64-msvc@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.6.tgz#36f8fbe6ec04c5b39c34ad41bb6803ba9a306da7" + integrity sha512-UagPb7w5V0uzWSjrXwOavGa7s9iv3wrVdEgWy+/inm0OwY4lj3zpK9qDnMWAwYLuFwkI3UG4Q3dH8wD+CUUcjw== "@swc/core@^1.3.90": - version "1.3.90" - resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.90.tgz#ef43524b76ef04798e6afb01d90347f4f51de136" - integrity sha512-wptBxP4PldOnhmyDVj8qUcn++GRqyw1qc9wOTGtPNHz8cpuTfdfIgYGlhI4La0UYqecuaaIfLfokyuNePOMHPg== + version "1.4.6" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.4.6.tgz#d2bceb1296aaf0fa6fbd85eb6f8d797fe5cd8d8c" + integrity sha512-A7iK9+1qzTCIuc3IYcS8gPHCm9bZVKUJrfNnwveZYyo6OFp3jLno4WOM2yBy5uqedgYATEiWgBYHKq37KrU6IA== dependencies: - "@swc/counter" "^0.1.1" + "@swc/counter" "^0.1.2" "@swc/types" "^0.1.5" optionalDependencies: - "@swc/core-darwin-arm64" "1.3.90" - "@swc/core-darwin-x64" "1.3.90" - "@swc/core-linux-arm-gnueabihf" "1.3.90" - "@swc/core-linux-arm64-gnu" "1.3.90" - "@swc/core-linux-arm64-musl" "1.3.90" - "@swc/core-linux-x64-gnu" "1.3.90" - "@swc/core-linux-x64-musl" "1.3.90" - "@swc/core-win32-arm64-msvc" "1.3.90" - "@swc/core-win32-ia32-msvc" "1.3.90" - "@swc/core-win32-x64-msvc" "1.3.90" - -"@swc/counter@^0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.1.tgz#e8d066c653883238c291d8fdd8b36ed932e87920" - integrity sha512-xVRaR4u9hcYjFvcSg71Lz5Bo4//CyjAAfMxa7UsaDSYxAshflUkVJWiyVWrfxC59z2kP1IzI4/1BEpnhI9o3Mw== + "@swc/core-darwin-arm64" "1.4.6" + "@swc/core-darwin-x64" "1.4.6" + "@swc/core-linux-arm-gnueabihf" "1.4.6" + "@swc/core-linux-arm64-gnu" "1.4.6" + "@swc/core-linux-arm64-musl" "1.4.6" + "@swc/core-linux-x64-gnu" "1.4.6" + "@swc/core-linux-x64-musl" "1.4.6" + "@swc/core-win32-arm64-msvc" "1.4.6" + "@swc/core-win32-ia32-msvc" "1.4.6" + "@swc/core-win32-x64-msvc" "1.4.6" + +"@swc/counter@^0.1.2", "@swc/counter@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9" + integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ== "@swc/types@^0.1.5": version "0.1.5" @@ -3073,9 +3073,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001464: - version "1.0.30001486" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz" - integrity sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg== + version "1.0.30001597" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001597.tgz" + integrity sha512-7LjJvmQU6Sj7bL0j5b5WY/3n7utXUJvAe1lxhsHDbLmwX9mdL86Yjtr+5SRCyf8qME4M7pU2hswj0FpyBVCv9w== ccount@^1.0.0: version "1.1.0" @@ -7476,9 +7476,11 @@ svgo@^3.0.2: picocolors "^1.0.0" swc-loader@^0.2.3: - version "0.2.3" - resolved "https://registry.npmjs.org/swc-loader/-/swc-loader-0.2.3.tgz" - integrity sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A== + version "0.2.6" + resolved "https://registry.yarnpkg.com/swc-loader/-/swc-loader-0.2.6.tgz#bf0cba8eeff34bb19620ead81d1277fefaec6bc8" + integrity sha512-9Zi9UP2YmDpgmQVbyOPJClY0dwf58JDyDMQ7uRc4krmc72twNI2fvlBWHLqVekBpPc7h5NJkGVT1zNDxFrqhvg== + dependencies: + "@swc/counter" "^0.1.3" tapable@^1.0.0: version "1.1.3" From 58999c1d341fa4081c517a7f83af4574a9b18ff3 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 12 Mar 2024 15:31:54 +0100 Subject: [PATCH 2/8] doc(database): handle mysql 8 compatibility --- .../using-packages.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 2f57ae873fac..a10d9afac628 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -441,7 +441,7 @@ a remote database on a dedicated server. ```shell -dnf install -y mariadb-server centreon +dnf install -y centreon-mariadb centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -450,7 +450,7 @@ systemctl restart mariadb ```shell -dnf install -y mariadb-server centreon +dnf install -y centreon-mariadb centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -460,7 +460,7 @@ systemctl restart mariadb ```shell apt update -apt install -y --no-install-recommends mariadb-server centreon +apt install -y --no-install-recommends centreon-mariadb centreon systemctl daemon-reload systemctl restart mariadb ``` @@ -475,7 +475,7 @@ systemctl restart mariadb ```shell -dnf install -y mysql-server centreon +dnf install -y centreon-mysql centreon systemctl daemon-reload systemctl restart mysql ``` @@ -484,7 +484,7 @@ systemctl restart mysql ```shell -dnf install -y mysql-server centreon +dnf install -y centreon-mysql centreon systemctl daemon-reload systemctl restart mysql ``` @@ -494,7 +494,7 @@ systemctl restart mysql ```shell apt update -apt install -y --no-install-recommends mysql-server centreon +apt install -y --no-install-recommends centreon-mysql centreon systemctl daemon-reload systemctl restart mysql ``` @@ -547,7 +547,7 @@ Then run the following commands on the dedicated server for your database: ```shell -dnf install -y mariadb-server centreon-database +dnf install -y centreon-mariadb systemctl daemon-reload systemctl restart mariadb ``` @@ -556,7 +556,7 @@ systemctl restart mariadb ```shell -dnf install -y mariadb-server centreon-database +dnf install -y centreon-mariadb systemctl daemon-reload systemctl restart mariadb ``` @@ -566,7 +566,7 @@ systemctl restart mariadb ```shell apt update -apt install -y --no-install-recommends mariadb-server centreon-database +apt install -y --no-install-recommends centreon-mariadb systemctl daemon-reload systemctl restart mariadb ``` @@ -581,7 +581,7 @@ systemctl restart mariadb ```shell -dnf install -y mysql-server centreon-database +dnf install -y centreon-mysql systemctl daemon-reload systemctl restart mysql ``` @@ -590,7 +590,7 @@ systemctl restart mysql ```shell -dnf install -y mysql-server centreon-database +dnf install -y centreon-mysql systemctl daemon-reload systemctl restart mysql ``` @@ -600,7 +600,7 @@ systemctl restart mysql ```shell apt update -apt install -y --no-install-recommends mysql-server centreon-database +apt install -y --no-install-recommends centreon-mysql systemctl daemon-reload systemctl restart mysql ``` From 798fd11194c5c130af2f5c17c3e4448332d4010c Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 12 Mar 2024 16:29:42 +0100 Subject: [PATCH 3/8] doc(database): handle mysql 8 compatibility --- .../_database-configuration.mdx | 91 ------------------- .../using-packages.md | 3 +- 2 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx b/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx deleted file mode 100644 index 3bdf6eea6729..000000000000 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/_database-configuration.mdx +++ /dev/null @@ -1,91 +0,0 @@ -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; -import CodeBlock from '@theme/CodeBlock'; - -
  • -The package centreon-{props.name} installs an optimized {props.name === 'mysql' ? 'MySQL' : 'MariaDB'} configuration - to be used with Centreon. -
  • - - -
    -If this package is not installed, system limitation **LimitNOFILE** should be -at least set to **32000** using a dedicated configuration file; for example: - - - - $ cat {props.name === 'mysql' ? '/etc/systemd/system/mariadb.service.d/centreon.cssonf' : '/etc/systemd/system/mariadb.service.d/centreon.conf'} - [Service] - LimitNOFILE=32000 - -
    - -* Same for the MariaDB **open_files_limit** directive: - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: -> -> ```shell -> /etc/mysql/mariadb.conf.d/50-server.cnf -> ``` -> -> Set the **bind-address** parameter to **0.0.0.0** and restart mariadb. -> -> ```shell -> systemctl restart mariadb -> ``` - - - - -> In addition to the directives above, it is strongly recommended to tune the -> database configuration with the following parameters: -> -> ```shell -> [server] -> key_buffer_size = 256M -> sort_buffer_size = 32M -> join_buffer_size = 4M -> thread_cache_size = 64 -> read_buffer_size = 512K -> read_rnd_buffer_size = 256K -> max_allowed_packet = 128M -> ``` -> -> Optionally, tune the memory and buffer utilization of the InnoDB engine powered -> tables. The example below applies to a database server with 8 GB RAM -> -> ```shell -> innodb_buffer_pool_size=1G -> ``` -> -> Remember to restart MariaDB after changing the configuration. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index a10d9afac628..1f1d7ad45e21 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -778,6 +778,7 @@ DROP USER 'dbadmin'@'';
    + > In addition to the directives above, it is strongly recommended to tune the > database configuration with the following parameters: @@ -802,8 +803,6 @@ DROP USER 'dbadmin'@''; > > Remember to restart database after changing the configuration. - -
    From e90b023159905bf216e3b2425fc1c3ff587dd834 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 12 Mar 2024 17:12:23 +0100 Subject: [PATCH 4/8] doc(database): handle mysql 8 compatibility --- .../installation/compatibility.md | 8 +- .../installation/_database-local-install.mdx | 73 ++++++ .../installation/_database-remote-install.mdx | 105 ++++++++ .../installation/_database-repository.mdx | 57 ++++ .../installation/compatibility.md | 8 +- .../using-packages.md | 245 +----------------- .../using-packages.md | 132 +--------- 7 files changed, 265 insertions(+), 363 deletions(-) create mode 100644 versioned_docs/version-24.04/installation/_database-local-install.mdx create mode 100644 versioned_docs/version-24.04/installation/_database-remote-install.mdx create mode 100644 versioned_docs/version-24.04/installation/_database-repository.mdx diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md index 94feeee25a7c..ebc2c317354e 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/compatibility.md @@ -39,9 +39,9 @@ Attention, les modules de l'IT Edition et de la Business Edition ne fonctionnent ### SGBD -| Logiciel | Version | -|----------|-----------------------| -| MariaDB | >= 10.5 and < 11 | -| MySQL | 8 | +| Logiciel | Version | +|----------|------------------| +| MariaDB | >= 10.5 and < 11 | +| MySQL | 8 | > Vous pouvez utiliser un autre SGBD basé sur MySQL, mais celui-ci sera uniquement supporté par la communauté. \ No newline at end of file diff --git a/versioned_docs/version-24.04/installation/_database-local-install.mdx b/versioned_docs/version-24.04/installation/_database-local-install.mdx new file mode 100644 index 000000000000..04d3e51673ca --- /dev/null +++ b/versioned_docs/version-24.04/installation/_database-local-install.mdx @@ -0,0 +1,73 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + + + + +```shell +dnf install -y centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +dnf install -y centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + + + + + + + +```shell +dnf install -y centreon-mysql centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +dnf install -y centreon-mysql centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mysql centreon +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + diff --git a/versioned_docs/version-24.04/installation/_database-remote-install.mdx b/versioned_docs/version-24.04/installation/_database-remote-install.mdx new file mode 100644 index 000000000000..6f3fa38b8f06 --- /dev/null +++ b/versioned_docs/version-24.04/installation/_database-remote-install.mdx @@ -0,0 +1,105 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> If installing the database on a dedicated server, this server should also have +> the prerequisite repositories. + +Run the following command on the Central server: + + + + +```shell +dnf install -y centreon-central +``` + + + + +```shell +dnf install -y centreon-central +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-central +``` + + + + +Then run the following commands on the dedicated server for your database: + + + + + + + +```shell +dnf install -y centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +dnf install -y centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + + + + + + + +```shell +dnf install -y centreon-mysql +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +dnf install -y centreon-mysql +systemctl daemon-reload +systemctl restart mysql +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mysql +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + diff --git a/versioned_docs/version-24.04/installation/_database-repository.mdx b/versioned_docs/version-24.04/installation/_database-repository.mdx new file mode 100644 index 000000000000..92a5cb052549 --- /dev/null +++ b/versioned_docs/version-24.04/installation/_database-repository.mdx @@ -0,0 +1,57 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + + + + + + +```shell +dnf module enable -y mariadb:10.5 +``` + + + + +*Nothing to do, MariaDB 10.5 is already available in official repositories.* + + + + +*Nothing to do, MariaDB 10.5 is already available in official repositories.* + + + + + + + + + + + +*Nothing to do, MySQL 8.0 is already available in official repositories.* + + + + +*Nothing to do, MySQL 8.0 is already available in official repositories.* + + + + +```shell +wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb +apt install /tmp/mysql-apt-config_0.8.29-1_all.deb +# Select 4 to validate installation of "MySQL Tools & Connectors" +apt update +``` + + + + + + \ No newline at end of file diff --git a/versioned_docs/version-24.04/installation/compatibility.md b/versioned_docs/version-24.04/installation/compatibility.md index 542323bd26c9..11f65473d5d5 100644 --- a/versioned_docs/version-24.04/installation/compatibility.md +++ b/versioned_docs/version-24.04/installation/compatibility.md @@ -39,9 +39,9 @@ Bear in mind that IT Edition and Business Edition modules do not work yet on uns ### DBMS -| Software | Version | -|----------|-----------------------| -| MariaDB | >= 10.5 and < 11 | -| MySQL | 8 | +| Software | Version | +|----------|------------------| +| MariaDB | >= 10.5 and < 11 | +| MySQL | 8 | > You can use another DBMS based on MySQL, but it will only be supported by the community. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 1f1d7ad45e21..aeb21787e1e7 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -4,7 +4,9 @@ title: Using packages --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -import DatabaseConfiguration from './_database-configuration.mdx'; +import DatabaseRepository from '../_database-repository.mdx'; +import DatabaseLocalInstall from '../_database-local-install.mdx'; +import DatabaseRemoteInstall from '../_database-remote-install.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. @@ -323,60 +325,7 @@ apt update #### Database repository - - - - - - - - -```shell -dnf module enable -y mariadb:10.5 -``` - - - - -*Nothing to do, MariaDB 10.5 is already available in official repositories.* - - - - -*Nothing to do, MariaDB 10.5 is already available in official repositories.* - - - - - - - - - - - -*Nothing to do, MySQL 8.0 is already available in official repositories.* - - - - -*Nothing to do, MySQL 8.0 is already available in official repositories.* - - - - -```shell -wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb -apt install /tmp/mysql-apt-config_0.8.29-1_all.deb -# Select 4 to validate installation of "MySQL Tools & Connectors" -apt update -``` - - - - - - + #### Centreon repository @@ -432,183 +381,12 @@ You can install this server with a local database on the server or a remote database on a dedicated server. - - - - - - - - -```shell -dnf install -y centreon-mariadb centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon-mariadb centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-mariadb centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - - - - - - - -```shell -dnf install -y centreon-mysql centreon -systemctl daemon-reload -systemctl restart mysql -``` - - - - -```shell -dnf install -y centreon-mysql centreon -systemctl daemon-reload -systemctl restart mysql -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-mysql centreon -systemctl daemon-reload -systemctl restart mysql -``` - - - - - - - - - - -> If installing the database on a dedicated server, this server should also have -> the prerequisite repositories. - -Run the following command on the Central server: - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-central -``` - - - - -Then run the following commands on the dedicated server for your database: - - - - - - - -```shell -dnf install -y centreon-mariadb -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon-mariadb -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-mariadb -systemctl daemon-reload -systemctl restart mariadb -``` - - - - - - - - - - -```shell -dnf install -y centreon-mysql -systemctl daemon-reload -systemctl restart mysql -``` - - - - -```shell -dnf install -y centreon-mysql -systemctl daemon-reload -systemctl restart mysql -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-mysql -systemctl daemon-reload -systemctl restart mysql -``` - - - - - + + + + + + > It is mandatory to set a password for the root user of the database. @@ -803,9 +581,6 @@ DROP USER 'dbadmin'@''; > > Remember to restart database after changing the configuration. - - - ## Step 3: Configuration ### Server name diff --git a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index 4251cd569629..85c185de9b20 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -4,6 +4,9 @@ title: Using packages --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import DatabaseRepository from '../_database-repository.mdx'; +import DatabaseLocalInstall from '../_database-local-install.mdx'; +import DatabaseRemoteInstall from '../_database-remote-install.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. @@ -318,32 +321,9 @@ apt update
    -#### MariaDB repository +#### Database repository - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=9 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s -- --os-type=debian --os-version=11 --mariadb-server-version="mariadb-10.5" -``` - - - + #### Centreon repository @@ -398,105 +378,19 @@ This section describes how to install a Centreon Remote Server. You can install this server with a local database on the server or a remote database on a dedicated server. -### With a local database - - - -```shell -dnf install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - + + You can now move on to the [next step](#step-3-configuration). -### With a remote database - -> If you are installing a database on a dedicated server, this server should also have -> the required repositories. - -Run the following command on the central server: - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-central -``` - - + + + + -Then run the following commands on the dedicated server: - - - - -```shell -dnf install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - +> It is mandatory to set a password for the root user of the database. Secure your MariaDB installation by executing the following command: @@ -504,8 +398,6 @@ Secure your MariaDB installation by executing the following command: mysql_secure_installation ``` -> It is mandatory to set a password for the root user of the database. - Then, in the remote dabatase, create a user with **root** privileges. You will have to enter this user during the web installation process (at [step 6](../web-and-post-installation.md#step-6-database-infomation), in the **Root user** and **Root password** fields). From f1af3e1c5af4f783ecefa8a5a40bb6d49e83d54f Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Wed, 13 Mar 2024 16:38:33 +0100 Subject: [PATCH 5/8] fix --- .../installation/_database-configuration.mdx | 194 +++++++++++++++++ .../installation/_database-enable-restart.mdx | 43 ++++ .../installation/_database-local-install.mdx | 8 +- .../installation/_database-remote-install.mdx | 8 +- .../installation/_database-repository.mdx | 2 +- .../using-packages.md | 198 +----------------- .../using-packages.md | 76 +------ 7 files changed, 253 insertions(+), 276 deletions(-) create mode 100644 versioned_docs/version-24.04/installation/_database-configuration.mdx create mode 100644 versioned_docs/version-24.04/installation/_database-enable-restart.mdx diff --git a/versioned_docs/version-24.04/installation/_database-configuration.mdx b/versioned_docs/version-24.04/installation/_database-configuration.mdx new file mode 100644 index 000000000000..79d79d5bab3c --- /dev/null +++ b/versioned_docs/version-24.04/installation/_database-configuration.mdx @@ -0,0 +1,194 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> It is mandatory to set a password for the root user of the database. + +Secure your database root access by executing the following command: + +```shell +mysql_secure_installation +``` + +Then, in the remote dabatase, create a user with **root** privileges. You will have to enter this user during the +web installation process (at [step 6](./web-and-post-installation.md#step-6-database-information), +in the **Root user** and **Root password** fields). + +```SQL +CREATE USER ''@'' IDENTIFIED BY ''; +GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; +FLUSH PRIVILEGES; +``` + +Example: + +```shell +CREATE USER 'dbadmin'@'' IDENTIFIED BY ''; +GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'' WITH GRANT OPTION; +FLUSH PRIVILEGES; +``` + +> Replace **\** with the Centreon Central IP address that will connect to the database server. +> +> Replace **\** and **\** with the user's credentials. + +This user will only be used for the installation process; once the [web installation](./web-and-post-installation.md) is complete you can delete this user using: + +```SQL +DROP USER ''@''; +``` + +Example: + +```SQL +DROP USER 'dbadmin'@''; +``` + + + + +* The package **centreon-mariadb** installs an optimized MariaDB configuration + to be used with Centreon. + +> If this package is not installed, system limitation **LimitNOFILE** should be +> at least set to **32000** using a dedicated configuration file; for example: +> +> ```shell +> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf +> [Service] +> LimitNOFILE=32000 +> ``` + +* Same for the MariaDB **open_files_limit** directive: + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: +> +> ```shell +> /etc/mysql/mariadb.conf.d/50-server.cnf +> ``` +> +> Set the **bind-address** parameter to **0.0.0.0** and restart mariadb. +> +> ```shell +> systemctl restart mariadb +> ``` + + + + + + + +* The package **centreon-mysql** installs an optimized MySQL configuration + to be used with Centreon. + +> If this package is not installed, system limitation **LimitNOFILE** should be +> at least set to **32000** using a dedicated configuration file; for example: +> +> ```shell +> $ cat /etc/systemd/system/mysqld.service.d/centreon.conf +> [Service] +> LimitNOFILE=32000 +> ``` + +* Same for the MySQL **open_files_limit** directive: + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mysql.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MySQL must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: +> +> ```shell +> /etc/mysql/mysql.conf.d/50-server.cnf +> ``` +> +> Set the **bind-address** parameter to **0.0.0.0** and restart mysql. +> +> ```shell +> systemctl restart mysqld +> ``` + + + + + + + +> In addition to the directives above, it is strongly recommended to tune the +> database configuration with the following parameters: +> +> ```shell +> [server] +> key_buffer_size = 256M +> sort_buffer_size = 32M +> join_buffer_size = 4M +> thread_cache_size = 64 +> read_buffer_size = 512K +> read_rnd_buffer_size = 256K +> max_allowed_packet = 128M +> ``` +> +> Optionally, tune the memory and buffer utilization of the InnoDB engine powered +> tables. The example below applies to a database server with 8 GB RAM +> +> ```shell +> innodb_buffer_pool_size=1G +> ``` +> +> Remember to restart database after changing the configuration. diff --git a/versioned_docs/version-24.04/installation/_database-enable-restart.mdx b/versioned_docs/version-24.04/installation/_database-enable-restart.mdx new file mode 100644 index 000000000000..a3db1ccf7e04 --- /dev/null +++ b/versioned_docs/version-24.04/installation/_database-enable-restart.mdx @@ -0,0 +1,43 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + +```shell +systemctl enable mariadb +systemctl restart mariadb +``` + + + + + + + +```shell +systemctl enable mysqld +systemctl restart mysqld +``` + + + + +```shell +systemctl enable mysqld +systemctl restart mysqld +``` + + + + +```shell +systemctl enable mysql +systemctl restart mysql +``` + + + + + + diff --git a/versioned_docs/version-24.04/installation/_database-local-install.mdx b/versioned_docs/version-24.04/installation/_database-local-install.mdx index 04d3e51673ca..ae70668ccf23 100644 --- a/versioned_docs/version-24.04/installation/_database-local-install.mdx +++ b/versioned_docs/version-24.04/installation/_database-local-install.mdx @@ -44,7 +44,7 @@ systemctl restart mariadb ```shell dnf install -y centreon-mysql centreon systemctl daemon-reload -systemctl restart mysql +systemctl restart mysqld ```
    @@ -53,7 +53,7 @@ systemctl restart mysql ```shell dnf install -y centreon-mysql centreon systemctl daemon-reload -systemctl restart mysql +systemctl restart mysqld ```
    @@ -61,7 +61,9 @@ systemctl restart mysql ```shell apt update -apt install -y --no-install-recommends centreon-mysql centreon +apt install -y centreon-mysql +apt install -y --no-install-recommends centreon +# Select "Use Legacy Authentication Method" systemctl daemon-reload systemctl restart mysql ``` diff --git a/versioned_docs/version-24.04/installation/_database-remote-install.mdx b/versioned_docs/version-24.04/installation/_database-remote-install.mdx index 6f3fa38b8f06..a38719a0152d 100644 --- a/versioned_docs/version-24.04/installation/_database-remote-install.mdx +++ b/versioned_docs/version-24.04/installation/_database-remote-install.mdx @@ -1,5 +1,6 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import DatabaseConfiguration from './_database-configuration.mdx'; > If installing the database on a dedicated server, this server should also have > the prerequisite repositories. @@ -76,7 +77,7 @@ systemctl restart mariadb ```shell dnf install -y centreon-mysql systemctl daemon-reload -systemctl restart mysql +systemctl restart mysqld ```
    @@ -85,7 +86,7 @@ systemctl restart mysql ```shell dnf install -y centreon-mysql systemctl daemon-reload -systemctl restart mysql +systemctl restart mysqld ```
    @@ -94,6 +95,7 @@ systemctl restart mysql ```shell apt update apt install -y --no-install-recommends centreon-mysql +# Select "Use Legacy Authentication Method" systemctl daemon-reload systemctl restart mysql ``` @@ -103,3 +105,5 @@ systemctl restart mysql
    + + diff --git a/versioned_docs/version-24.04/installation/_database-repository.mdx b/versioned_docs/version-24.04/installation/_database-repository.mdx index 92a5cb052549..1498153f7db7 100644 --- a/versioned_docs/version-24.04/installation/_database-repository.mdx +++ b/versioned_docs/version-24.04/installation/_database-repository.mdx @@ -46,7 +46,7 @@ dnf module enable -y mariadb:10.5 ```shell wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb apt install /tmp/mysql-apt-config_0.8.29-1_all.deb -# Select 4 to validate installation of "MySQL Tools & Connectors" +# Select Ok to validate installation of "MySQL Tools & Connectors" apt update ``` diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index aeb21787e1e7..1f49d5950d0f 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -7,6 +7,7 @@ import TabItem from '@theme/TabItem'; import DatabaseRepository from '../_database-repository.mdx'; import DatabaseLocalInstall from '../_database-local-install.mdx'; import DatabaseRemoteInstall from '../_database-remote-install.mdx'; +import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. @@ -389,198 +390,6 @@ a remote database on a dedicated server. -> It is mandatory to set a password for the root user of the database. - -Secure your database root access by executing the following command: - -```shell -mysql_secure_installation -``` - -Then, in the remote dabatase, create a user with **root** privileges. You will have to enter this user during the -web installation process (at [step 6](../web-and-post-installation.md#step-6-database-information), -in the **Root user** and **Root password** fields). - -```SQL -CREATE USER ''@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -Example: - -```shell -CREATE USER 'dbadmin'@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -> Replace **** with the Centreon Central IP address that will connect to the database server. -> -> Replace **** and **** with the user's credentials. - -This user will only be used for the installation process; once the [web installation](../web-and-post-installation.md) is complete you can delete this user using: - -```SQL -DROP USER ''@''; -``` - -Example: - -```SQL -DROP USER 'dbadmin'@''; -``` - - - - -* The package **centreon-mariadb** installs an optimized MariaDB configuration - to be used with Centreon. - -> If this package is not installed, system limitation **LimitNOFILE** should be -> at least set to **32000** using a dedicated configuration file; for example: -> -> ```shell -> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf -> [Service] -> LimitNOFILE=32000 -> ``` - -* Same for the MariaDB **open_files_limit** directive: - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: -> -> ```shell -> /etc/mysql/mariadb.conf.d/50-server.cnf -> ``` -> -> Set the **bind-address** parameter to **0.0.0.0** and restart mariadb. -> -> ```shell -> systemctl restart mariadb -> ``` - - - - - - - -* The package **centreon-mysql** installs an optimized MySQL configuration - to be used with Centreon. - -> If this package is not installed, system limitation **LimitNOFILE** should be -> at least set to **32000** using a dedicated configuration file; for example: -> -> ```shell -> $ cat /etc/systemd/system/mysql.service.d/centreon.conf -> [Service] -> LimitNOFILE=32000 -> ``` - -* Same for the MySQL **open_files_limit** directive: - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/mysql/mysql.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> MySQL must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: -> -> ```shell -> /etc/mysql/mysql.conf.d/50-server.cnf -> ``` -> -> Set the **bind-address** parameter to **0.0.0.0** and restart mysql. -> -> ```shell -> systemctl restart mysql -> ``` - - - - - - - -> In addition to the directives above, it is strongly recommended to tune the -> database configuration with the following parameters: -> -> ```shell -> [server] -> key_buffer_size = 256M -> sort_buffer_size = 32M -> join_buffer_size = 4M -> thread_cache_size = 64 -> read_buffer_size = 512K -> read_rnd_buffer_size = 256K -> max_allowed_packet = 128M -> ``` -> -> Optionally, tune the memory and buffer utilization of the InnoDB engine powered -> tables. The example below applies to a database server with 8 GB RAM -> -> ```shell -> innodb_buffer_pool_size=1G -> ``` -> -> Remember to restart database after changing the configuration. - ## Step 3: Configuration ### Server name @@ -687,10 +496,7 @@ systemctl enable php8.1-fpm apache2 centreon cbd centengine gorgoned centreontra Then execute the following command (on the central server if you are using a local database, or on your remote database server): -```shell -systemctl enable mariadb -systemctl restart mariadb -``` + ### Secure the database diff --git a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index 85c185de9b20..e986fd3ebaa5 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -7,6 +7,7 @@ import TabItem from '@theme/TabItem'; import DatabaseRepository from '../_database-repository.mdx'; import DatabaseLocalInstall from '../_database-local-install.mdx'; import DatabaseRemoteInstall from '../_database-remote-install.mdx'; +import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. @@ -390,76 +391,6 @@ You can now move on to the [next step](#step-3-configuration). -> It is mandatory to set a password for the root user of the database. - -Secure your MariaDB installation by executing the following command: - -```shell -mysql_secure_installation -``` - -Then, in the remote dabatase, create a user with **root** privileges. You will have to enter this user during the -web installation process (at [step 6](../web-and-post-installation.md#step-6-database-infomation), -in the **Root user** and **Root password** fields). - -```SQL -CREATE USER ''@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -> Replace **** with the Centreon Central IP address that will connect to the database server. -> -> Replace **** and **** with the user's credentials. - -This user will only be used for the installation process. Once the [web installation](../web-and-post-installation.md) is complete, you can delete this user using: - -```SQL -DROP USER ''@''; -``` - -> The package **centreon-database** installs an optimized MariaDB configuration -> to be used with Centreon. -> -> If this package is not installed, system limitation **LimitNOFILE** should be -> at least set to **32000** using a dedicated configuration file; for example: -> -> ```shell -> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf -> [Service] -> LimitNOFILE=32000 -> ``` -> -> Same for the MariaDB **open_files_limit** directive, example for Centos 7, Alma/RHEL/OL 8: -> -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> For Debian 11: -> -> ```shell -> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> Remember to restart MariaDB after changing the configuration. - -#### Additional configuration for Debian 11 - -MariaDB must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file: - -```shell -/etc/mysql/mariadb.conf.d/50-server.cnf -``` - -Set the **bind-address** parameter to **0.0.0.0**. - ## Step 3: Configuration ### Server name @@ -572,10 +503,7 @@ systemctl enable php8.1-fpm apache2 centreon cbd centengine gorgoned centreontra Then execute the following command (on the remote server if you are using a local database, or on your dedicated database server): -```shell -systemctl enable mariadb -systemctl restart mariadb -``` + ### Secure the database From f292f4ba82a659c6c0a459db588c468f8e80efe2 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 14 Mar 2024 09:54:45 +0100 Subject: [PATCH 6/8] fix --- .../installation/_database-configuration.mdx | 192 +++++++++++++ .../installation/_database-enable-restart.mdx | 43 +++ .../installation/_database-local-install.mdx | 75 +++++ .../installation/_database-remote-install.mdx | 109 +++++++ .../installation/_database-repository.mdx | 57 ++++ .../using-packages.md | 267 +----------------- .../using-packages.md | 209 +------------- .../using-packages.md | 2 +- .../using-packages.md | 2 +- 9 files changed, 507 insertions(+), 449 deletions(-) create mode 100644 i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx create mode 100644 i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-enable-restart.mdx create mode 100644 i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-local-install.mdx create mode 100644 i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-remote-install.mdx create mode 100644 i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-repository.mdx diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx new file mode 100644 index 000000000000..5d6056752396 --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx @@ -0,0 +1,192 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +> Il est obligatoire de définir un mot de passe pour l'utilisateur root de la base de données. + +Sécurisez l'accès root à MariaDB en exécutant la commande suivante : + +```shell +mysql_secure_installation +``` + +Ensuite, dans la base de données distante, créez un utilisateur avec des privilèges **root**. Vous devrez entrer cet utilisateur pendant +le processus d'installation web (à [étape 6](./web-and-post-installation.md#étape-6-database-information), +dans les champs **Root user** et **Root password**). + +```SQL +CREATE USER ''@'' IDENTIFIED BY ''; +GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; +FLUSH PRIVILEGES; +``` + +Exemple : + +```shell +CREATE USER 'dbadmin'@'' IDENTIFIED BY ''; +GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'' WITH GRANT OPTION; +FLUSH PRIVILEGES; +``` + +> Remplacez **** par l'adresse IP du serveur central qui se connectera au serveur de bases de données. +> +> Remplacez **** et **** par les identifiants de l'utilisateur. + +Cet utilisateur ne sera utilisé que pour le processus d'installation. Une fois [l'installation web](./web-and-post-installation.md) terminée, vous pouvez supprimer cet utilisateur via la commande suivante : + +```SQL +DROP USER ''@''; +``` + +Exemple : + +```SQL +DROP USER 'dbadmin'@''; +``` + + + + +* Le paquet **centreon-mariadb** installe une configuration de MariaDB optimisée pour être utilisée avec Centreon. + +> Si ce paquet n'est pas installé, la limitation du système **LimitNOFILE** devrait être +> au moins fixée à **32000** à l'aide d'un fichier de configuration dédié, par exemple : +> +> ```shell +> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf +> [Service] +> LimitNOFILE=32000 +> ``` + +* Idem pour la directive MariaDB **open_files_limit** : + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MariaDB doit écouter sur toutes les interfaces au lieu d'écouter sur localhost/127.0.0.1, qui est la valeur par défaut. Éditez le fichier suivant : +> +> ```shell +> /etc/mysql/mariadb.conf.d/50-server.cnf +> ``` +> +> Attribuez au paramètre **bind-address** la valeur **0.0.0.0** et redémarrez mariadb. +> +> ```shell +> systemctl restart mariadb +> ``` + + + + + + + +* Le paquet **centreon-mysql** installe une configuration de MySQL optimisée pour être utilisée avec Centreon. + +> Si ce paquet n'est pas installé, la limitation du système **LimitNOFILE** devrait être +> au moins fixée à **32000** à l'aide d'un fichier de configuration dédié, par exemple : +> +> ```shell +> $ cat /etc/systemd/system/mysqld.service.d/centreon.conf +> [Service] +> LimitNOFILE=32000 +> ``` + +* Idem pour la directive MySQL **open_files_limit** : + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/my.cnf.d/centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` + + + + +> ```shell +> $ cat /etc/mysql/mysql.conf.d/80-centreon.cnf +> [server] +> innodb_file_per_table=1 +> open_files_limit=32000 +> ``` +> +> MySQL doit écouter sur toutes les interfaces au lieu d'écouter sur localhost/127.0.0.1, qui est la valeur par défaut. Éditez le fichier suivant : +> +> ```shell +> /etc/mysql/mysql.conf.d/50-server.cnf +> ``` +> +> Attribuez au paramètre **bind-address** la valeur **0.0.0.0** et redémarrez mysql. +> +> ```shell +> systemctl restart mysqld +> ``` + + + + + + + +> En plus des directives ci-dessus, il est fortement recommandé d'adapter la configuration de la base de données avec les paramètres suivants : +> +> ```shell +> [server] +> key_buffer_size = 256M +> sort_buffer_size = 32M +> join_buffer_size = 4M +> thread_cache_size = 64 +> read_buffer_size = 512K +> read_rnd_buffer_size = 256K +> max_allowed_packet = 128M +> ``` +> +> En option, régler l'utilisation de la mémoire et des tampons du moteur InnoDB alimentant les +> tables. L'exemple ci-dessous s'applique à un serveur de base de données avec 8 Go de RAM. +> +> ```shell +> innodb_buffer_pool_size=1G +> ``` +> + +> N'oubliez pas de redémarrer la base de données après modification de la configuration. diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-enable-restart.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-enable-restart.mdx new file mode 100644 index 000000000000..a3db1ccf7e04 --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-enable-restart.mdx @@ -0,0 +1,43 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + +```shell +systemctl enable mariadb +systemctl restart mariadb +``` + + + + + + + +```shell +systemctl enable mysqld +systemctl restart mysqld +``` + + + + +```shell +systemctl enable mysqld +systemctl restart mysqld +``` + + + + +```shell +systemctl enable mysql +systemctl restart mysql +``` + + + + + + diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-local-install.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-local-install.mdx new file mode 100644 index 000000000000..392f25b60544 --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-local-install.mdx @@ -0,0 +1,75 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + + + + +```shell +dnf install -y centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +dnf install -y centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mariadb centreon +systemctl daemon-reload +systemctl restart mariadb +``` + + + + + + + + + + +```shell +dnf install -y centreon-mysql centreon +systemctl daemon-reload +systemctl restart mysqld +``` + + + + +```shell +dnf install -y centreon-mysql centreon +systemctl daemon-reload +systemctl restart mysqld +``` + + + + +```shell +apt update +apt install -y centreon-mysql +apt install -y --no-install-recommends centreon +# Selectionner "Use Legacy Authentication Method" +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-remote-install.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-remote-install.mdx new file mode 100644 index 000000000000..873d4efe1c59 --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-remote-install.mdx @@ -0,0 +1,109 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import DatabaseConfiguration from './_database-configuration.mdx'; + +> Si vous installez la base de données sur un serveur dédié, ce serveur doit également avoir +> les dépôts requis. + +Exécutez la commande suivante sur le serveur central : + + + + +```shell +dnf install -y centreon-central +``` + + + + +```shell +dnf install -y centreon-central +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-central +``` + + + + +Exécutez ensuite les commandes suivantes sur le serveur dédié à votre base de données : + + + + + + + +```shell +dnf install -y centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +dnf install -y centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mariadb +systemctl daemon-reload +systemctl restart mariadb +``` + + + + + + + + + + +```shell +dnf install -y centreon-mysql +systemctl daemon-reload +systemctl restart mysqld +``` + + + + +```shell +dnf install -y centreon-mysql +systemctl daemon-reload +systemctl restart mysqld +``` + + + + +```shell +apt update +apt install -y --no-install-recommends centreon-mysql +# Selectionner "Use Legacy Authentication Method" +systemctl daemon-reload +systemctl restart mysql +``` + + + + + + + + diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-repository.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-repository.mdx new file mode 100644 index 000000000000..32154e347f8a --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-repository.mdx @@ -0,0 +1,57 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + + + + + + + + + +```shell +dnf module enable -y mariadb:10.5 +``` + + + + +*Rien à faire, MariaDB 10.5 est déjà disponible dans les dépôts officiels.* + + + + +*Rien à faire, MariaDB 10.5 est déjà disponible dans les dépôts officiels.* + + + + + + + + + + + +*Rien à faire, MySQL 8.0 est déjà disponible dans les dépôts officiels.* + + + + +*Rien à faire, MySQL 8.0 est déjà disponible dans les dépôts officiels.* + + + + +```shell +wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb +apt install /tmp/mysql-apt-config_0.8.29-1_all.deb +# Selectionner Ok pour valider l'installation de "MySQL Tools & Connectors" +apt update +``` + + + + + + \ No newline at end of file diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 7241b0daa52c..4e516a536ced 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -4,6 +4,10 @@ title: À partir des paquets --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import DatabaseRepository from '../_database-repository.mdx'; +import DatabaseLocalInstall from '../_database-local-install.mdx'; +import DatabaseRemoteInstall from '../_database-remote-install.mdx'; +import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon fournit des paquets RPM et DEB pour ses produits via la version Centreon Open Source disponible gratuitement dans notre dépôt. @@ -315,32 +319,9 @@ apt update -#### Dépôt MariaDB +#### Dépôt de base de données - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=9 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s -- --os-type=debian --os-version=11 --mariadb-server-version="mariadb-10.5" -``` - - - + #### Dépôt Centreon @@ -394,229 +375,12 @@ Vous pouvez installer ce serveur avec une base de données locale au serveur, ou une base de données distante sur un serveur dédié. - - - - - -```shell -dnf install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - - - - -> Si vous installez la base de données sur un serveur dédié, ce serveur doit également avoir -> les dépôts requis. - -Exécutez la commande suivante sur le serveur central : - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-central -``` - - - - -Exécutez ensuite les commandes suivantes sur le serveur dédié à votre base de données : - - - - -```shell -dnf install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -dnf install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -> Il est obligatoire de définir un mot de passe pour l'utilisateur root de la base de données. - -Sécurisez l'accès root à MariaDB en exécutant la commande suivante : - -```shell -mysql_secure_installation -``` - -Ensuite, dans la base de données distante, créez un utilisateur avec des privilèges **root**. Vous devrez entrer cet utilisateur pendant -le processus d'installation web (à [étape 6](../web-and-post-installation.md#étape-6-database-information), -dans les champs **Root user** et **Root password**). - -```SQL -CREATE USER ''@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -Exemple : - -```shell -CREATE USER 'dbadmin'@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -> Remplacez **** par l'adresse IP du serveur central qui se connectera au serveur de bases de données. -> -> Remplacez **** et **** par les identifiants de l'utilisateur. - -Cet utilisateur ne sera utilisé que pour le processus d'installation. Une fois [l'installation web](../web-and-post-installation.md/) terminée, vous pouvez supprimer cet utilisateur via la commande suivante : - -```SQL -DROP USER ''@''; -``` - -Exemple : - -```SQL -DROP USER 'dbadmin'@''; -``` - -* Le paquet **centreon-database** installe une configuration de MariaDB optimisée pour être utilisée avec Centreon. - -> Si ce paquet n'est pas installé, la limitation du système **LimitNOFILE** devrait être -> au moins fixée à **32000** à l'aide d'un fichier de configuration dédié, par exemple : -> -> ```shell -> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf -> [Service] -> LimitNOFILE=32000 -> ``` - -* Idem pour la directive MariaDB **open_files_limit** : - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - - - - -> ```shell -> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> MariaDB doit écouter sur toutes les interfaces au lieu d'écouter sur localhost/127.0.0.1, qui est la valeur par défaut. Éditez le fichier suivant : -> -> ```shell -> /etc/mysql/mariadb.conf.d/50-server.cnf -> ``` -> -> Attribuez au paramètre **bind-address** la valeur **0.0.0.0** et redémarrez mariadb. -> -> ```shell -> systemctl restart mariadb -> ``` - - - - -> En plus des directives ci-dessus, il est fortement recommandé d'adapter la configuration de la base de données avec les paramètres suivants : -> -> ```shell -> [server] -> key_buffer_size = 256M -> sort_buffer_size = 32M -> join_buffer_size = 4M -> thread_cache_size = 64 -> read_buffer_size = 512K -> read_rnd_buffer_size = 256K -> max_allowed_packet = 128M -> ``` -> -> En option, régler l'utilisation de la mémoire et des tampons du moteur InnoDB alimentant les -> tables. L'exemple ci-dessous s'applique à un serveur de base de données avec 8 Go de RAM. -> -> ```shell -> innodb_buffer_pool_size=1G -> ``` -> - -> N'oubliez pas de redémarrer MariaDB après modification de la configuration. - - + + + + + + ### Étape 3 : Configuration @@ -726,14 +490,11 @@ systemctl enable php8.1-fpm apache2 centreon cbd centengine gorgoned centreontra Exécutez ensuite la commande suivante (sur le serveur central si vous utilisez une base de données locale, ou sur votre serveur de base de données distant) : -```shell -systemctl enable mariadb -systemctl restart mariadb -``` + ### Sécuriser la base de données -Depuis MariaDB 10.5, il est obligatoire de sécuriser l'accès root de la base de données avant d'installer Centreon. +Il est obligatoire de sécuriser l'accès root de la base de données avant d'installer Centreon. Si vous utilisez une base de données locale, exécutez la commande suivante sur le serveur central : ```shell diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index 94e124613c7d..10f030b37801 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -4,6 +4,10 @@ title: À partir des paquets --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +import DatabaseRepository from '../_database-repository.mdx'; +import DatabaseLocalInstall from '../_database-local-install.mdx'; +import DatabaseRemoteInstall from '../_database-remote-install.mdx'; +import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon fournit des paquets RPM et DEB pour ses produits au travers de la solution Centreon Open Source disponible gratuitement sur notre dépôt. @@ -311,32 +315,9 @@ wget -O- https://packages.sury.org/php/apt.gpg | gpg --dearmor | tee /etc/apt/tr -#### Dépôt MariaDB +#### Dépôt de base données - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=9 --mariadb-server-version="mariadb-10.5" -``` - - - - -```shell -curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash -s -- --os-type=debian --os-version=11 --mariadb-server-version="mariadb-10.5" -``` - - - + #### Dépôt Centreon @@ -390,175 +371,18 @@ Ce chapitre décrit l'installation d'un serveur Centreon Remote Server. Il est possible d'installer ce serveur avec une base de données locale au serveur, ou déportée sur un serveur dédié. -### Avec base de données locale - - - -```shell -dnf install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -yum install -y centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon -systemctl daemon-reload -systemctl restart mariadb -``` - - - + + Passez maintenant à [l'étape suivante](#étape-3--configuration). -### Avec base de données déportée - -> Dans le cas d'une installation avec un serveur dédié à la base de données, ce -> dernier doit aussi avoir les dépôts prérequis. - -Exécutez la commande suivante sur le serveur Centreon Central : - - - - -```shell -dnf install -y centreon-central -``` - - - - -```shell -yum install -y centreon-central -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-central -``` - - + + + + -Puis exécutez les commandes suivantes sur le serveur dédié à la base de données : - - - -```shell -dnf install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -yum install -y centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -```shell -apt update -apt install -y --no-install-recommends centreon-database -systemctl daemon-reload -systemctl restart mariadb -``` - - - - -Sécurisez votre installation MariaDB en exécutant la commande suivante : - -```shell -mysql_secure_installation -``` - -Créez enfin un utilisateur avec privilèges **root** nécessaire à l'installation de Centreon : - -```SQL -CREATE USER ''@'' IDENTIFIED BY ''; -GRANT ALL PRIVILEGES ON *.* TO ''@'' WITH GRANT OPTION; -FLUSH PRIVILEGES; -``` - -> Remplacez **** par l'adresse IP avec laquelle le serveur Centreon -> Remote Server se connectera au serveur de base de données. -> -> Remplacez **** et **** par les identifiants de -> l'utilisateur. - -Une fois l'installation terminée, supprimez cet utilisateur via la commande : - -```SQL -DROP USER ''@''; -``` - - -> Le paquet **centreon-database** installe une configuration MariaDB optimisée -> pour l'utilisation avec Centreon. -> -> Si ce paquet n'est pas installé, il faut à minima adapter la limitation -> **LimitNOFILE** à **32000** via une configuration dédiée, exemple: -> -> ```shell -> $ cat /etc/systemd/system/mariadb.service.d/centreon.conf -> [Service] -> LimitNOFILE=32000 -> ``` -> -> De même pour la directive MariaDB **open_files_limit**, exemple pour Centos 7, Alma/RHEL/OL 8 : -> -> ```shell -> $ cat /etc/my.cnf.d/centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` -> -> Pour Debian 11: -> -> ```shell -> $ cat /etc/mysql/mariadb.conf.d/80-centreon.cnf -> [server] -> innodb_file_per_table=1 -> open_files_limit=32000 -> ``` - -> -> Redémarrez le service mariadb après chaque changement de configuration. - -#### Configuration spécifique à Debian 11 - -MariaDB doit écouter sur toutes les interfaces au lieu d'écouter sur localhost/127.0.0.1 (valeur par défaut). Éditez le fichier suivant : - -```shell -/etc/mysql/mariadb.conf.d/50-server.cnf -``` - -Attribuez au paramètre **bind-address** la valeur **0.0.0.0**. - ## Étape 3 : Configuration ### Nom du serveur @@ -674,20 +498,17 @@ systemctl enable php8.1-fpm apache2 centreon cbd centengine gorgoned centreontra Puis exécutez la commande suivante (sur le serveur distant si vous utilisez une base de données locale, sinon sur le serveur de base de données déporté): -```shell -systemctl enable mariadb -systemctl restart mariadb -``` + ### Sécuriser la base de données -Depuis MariaDB 10.5, il est obligatoire de sécuriser l'accès en root à la base avant d'installer Centreon. Si vous utilisez une base de données locale, exécutez la commande suivante sur le serveur central : +Il est obligatoire de sécuriser l'accès en root à la base avant d'installer Centreon. Si vous utilisez une base de données locale, exécutez la commande suivante sur le serveur central : ```shell mysql_secure_installation ``` -* Répondez oui à toute question sauf à "Disallow root login remotely?". +* Répondez oui à toute question sauf à "Disallow root login remotely?". * Définissez obligatoirement un mot de passe pour l'utilisateur **root** de la base de données. Ce mot de passe vous sera demandé lors de l'[installation web](../web-and-post-installation.md). diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 1f49d5950d0f..22f0c852c09b 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -500,7 +500,7 @@ Then execute the following command (on the central server if you are using a loc ### Secure the database -Since MariaDB 10.5, it is mandatory to secure the database's root access before installing Centreon. +It is mandatory to secure the database's root access before installing Centreon. If you are using a local database, run the following command on the central server: ```shell diff --git a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index e986fd3ebaa5..d3522b8eb675 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -507,7 +507,7 @@ Then execute the following command (on the remote server if you are using a loca ### Secure the database -If you have installed the Centreon server with a local database, since MariaDB 10.5, it is mandatory to secure the database's root access before installing Centreon. Run the following command: +If you have installed the Centreon server with a local database, it is mandatory to secure the database's root access before installing Centreon. Run the following command: ```shell mysql_secure_installation From 90f0bd4fecd1a8657de67e434c5b7b940c2c62d7 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 14 Mar 2024 13:46:16 +0100 Subject: [PATCH 7/8] fix --- .../version-24.04/installation/_database-configuration.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx index 42fb190f57a5..c552497f5561 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/_database-configuration.mdx @@ -9,7 +9,7 @@ Sécurisez l'accès root à MariaDB en exécutant la commande suivante : mysql_secure_installation ``` -Ensuite, dans la base de données distante, créez un utilisateur avec des privilèges **root**. Vous devrez entrer cet utilisateur pendant +Ensuite, dans la base de données distante, créez un utilisateur avec des privilèges **root**. Vous devrez entrer cet utilisateur pendant le processus d'installation web (à [étape 6](./web-and-post-installation.md#étape-6-database-information), dans les champs **Root user** et **Root password**). @@ -27,9 +27,9 @@ GRANT ALL PRIVILEGES ON *.* TO 'dbadmin'@'' WITH GRANT OPTIO FLUSH PRIVILEGES; ``` -> Remplacez **** par l'adresse IP du serveur central qui se connectera au serveur de bases de données. +> Remplacez **\** par l'adresse IP du serveur central qui se connectera au serveur de bases de données. > -> Remplacez **** et **** par les identifiants de l'utilisateur. +> Remplacez **\** et **\** par les identifiants de l'utilisateur. Cet utilisateur ne sera utilisé que pour le processus d'installation. Une fois [l'installation web](./web-and-post-installation.md) terminée, vous pouvez supprimer cet utilisateur via la commande suivante : From 2fc3eb5293c354629b3153d80e1ecb2dd2897fc0 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Thu, 14 Mar 2024 14:14:57 +0100 Subject: [PATCH 8/8] fix --- .../installation-of-a-central-server/using-packages.md | 4 ++-- .../installation/installation-of-a-poller/using-packages.md | 4 ++-- .../installation-of-a-remote-server/using-packages.md | 4 ++-- .../installation-of-a-central-server/using-packages.md | 4 ++-- .../installation/installation-of-a-poller/using-packages.md | 2 +- .../installation-of-a-remote-server/using-packages.md | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index e1325be53ae5..60893be8f140 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -11,7 +11,7 @@ import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon fournit des paquets RPM et DEB pour ses produits via la version Centreon Open Source disponible gratuitement dans notre dépôt. -Ces paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 et sur Debian 11. +Ces paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 et sur Debian 11 et 12. > Vous devez exécuter la procédure d'installation en tant qu'utilisateur privilégié. @@ -148,7 +148,7 @@ Disabled -SELinux n'est pas installé sur Debian 11, continuez. +SELinux n'est pas installé sur Debian 11 et 12, continuez. diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-poller/using-packages.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-poller/using-packages.md index 4fd88dc6e922..db70f2dc797c 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-poller/using-packages.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-poller/using-packages.md @@ -8,7 +8,7 @@ import TabItem from '@theme/TabItem'; Centreon fournit des paquets RPM et DEB pour ses produits au travers de la solution Centreon Open Sources disponible gratuitement sur notre dépôt. -Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 ou Debian 11. +Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9 ou Debian 11 et 12. L'ensemble de la procédure d'installation doit être faite en tant qu'utilisateur privilégié. @@ -137,7 +137,7 @@ Disabled -SELinux n'est pas installé sur Debian 11, continuez. +SELinux n'est pas installé sur Debian 11 et 12, continuez. diff --git a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index 55cdf0f310ef..8d8c6dd59c97 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/i18n/fr/docusaurus-plugin-content-docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -12,7 +12,7 @@ import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon fournit des paquets RPM et DEB pour ses produits au travers de la solution Centreon Open Source disponible gratuitement sur notre dépôt. -Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9, et Debian 11. +Les paquets peuvent être installés sur Alma/RHEL/Oracle Linux 8 et 9, et Debian 11 et 12. L'ensemble de la procédure d'installation doit être faite en tant qu'utilisateur privilégié. @@ -141,7 +141,7 @@ Disabled -SELinux n'est pas installé sur Debian 11, continuez. +SELinux n'est pas installé sur Debian 11 et 12, continuez. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md index 1232a7aca4d6..c828c0739c6c 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-central-server/using-packages.md @@ -12,7 +12,7 @@ import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. -These packages can be installed on Alma/RHEL/Oracle Linux 8 and 9 and on Debian 11. +These packages can be installed on Alma/RHEL/Oracle Linux 8 and 9 and on Debian 11 and 12. You must run the installation procedure as a privileged user. @@ -146,7 +146,7 @@ Disabled -SELinux is not installed on Debian 11, continue. +SELinux is not installed on Debian 11 and 12, continue. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-poller/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-poller/using-packages.md index 7659ce38935f..b1efd3d2c42b 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-poller/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-poller/using-packages.md @@ -143,7 +143,7 @@ Disabled -SELinux is not installed on Debian 11, continue. +SELinux is not installed on Debian 11 and 12, continue. diff --git a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md index c4fc9ba7d7f7..81f0ed0318dc 100644 --- a/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md +++ b/versioned_docs/version-24.04/installation/installation-of-a-remote-server/using-packages.md @@ -12,7 +12,7 @@ import DatabaseEnableRestart from '../_database-enable-restart.mdx'; Centreon provides RPM and DEB packages for its products through the Centreon Open Source version available free of charge in our repository. -These packages can be installed on Alma/RHEL/Oracle Linux 8 and 9 and on Debian 11. +These packages can be installed on Alma/RHEL/Oracle Linux 8 and 9 and on Debian 11 and 12. You must run the installation procedure as a privileged user. @@ -146,7 +146,7 @@ Disabled -SELinux is not installed on Debian 11, continue. +SELinux is not installed on Debian 11 and 12, continue.