Unattended installation of a remote server
This is an older version of Centreon. We recommend you install the latest version.
To install a remote server quicker, you can use a script. This will perform all installation steps. You must then register the remote server and attach it to the central server.
Installation procedure
- Update your system:
- RHEL 8
- Alma / Oracle Linux 8
- RHEL 9
- Alma / Oracle Linux 9
- Debian 11
dnf update
subscription-manager register --username my_username --password my_password --auto-attach --force
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Replace my_username and my_password with the credentials of your RedHat account.
dnf update
dnf update
subscription-manager register --username my_username --password my_password --auto-attach --force
subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms
dnf update
apt update && apt upgrade
- Download the script using the following command:
curl -L https://download.centreon.com/23.04/unattended.sh --output /tmp/unattended.sh
- Run the following command as root:
- To specify the password for the default admin account:
bash /tmp/unattended.sh install -t central -v 23.04 -r stable -s -p <admin_password> -l DEBUG 2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log
- To get an autogenerated password for the default admin account (the script will tell you where the password is stored):
bash /tmp/unattended.sh install -t central -v 23.04 -r stable -s -l DEBUG 2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log
In both cases, you will get a full log file with all errors in your tmp folder, named unattended(date).log.
- Once the script has run, carry out steps 4 to 8 of the standard installation procedure for a remote server.
Help
To get help on the script, use the following command:
bash unattended.sh -h