Unattended installation of a poller
To install a poller quicker, you can use a script. This will perform all installation steps. You must then register the poller and attach it to the central server or the remote 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/22.10/unattended.sh --output /tmp/unattended.sh
- Run the following command as root:
bash /tmp/unattended.sh install -t poller -v 22.10 -r stable -l DEBUG 2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log
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 3 to 5 of the standard installation procedure for a poller.
Help
To get help on the script, use the following command:
bash unattended.sh -h