1. prereq
source /etc/cid.conf
curl -s http://${rdsserver}/sharel/bin/cid-upm | sh -s "nagios"
curl -s http://${rdsserver}/sharel/bin/inst-httpd | sh
curl -s http://${rdsserver}/sharel/bin/inst-mariadb-server | sh
2. installation
version="20.10"
wget -N -nv http://d01cid.ddns.net/sharel/etc/yum.repos.d/centreon.repo -P /etc/yum.repos.d/
cube /etc/yum.repos.d/centreon.repo "%version%" with "${version}"
yum -y install centreon
systemctl enable centreon.service centreontrapd.service httpd24-httpd.service mariadb.service snmpd snmptrapd
systemctl start centreon.service centreontrapd.service httpd24-httpd.service mariadb.service snmpd snmptrapd
3. fix license check
cube /etc/php.d/zendguard.ini "zend_loader.license_path" with "//zend_loader.license_path"
4. configuration
5. cli
5.1. add hostgroups
vi /tmp/hostgroups.conf
HG;ADD;cameras;cameras
HG;ADD;printers;printers
HG;ADD;servers;servers
HG;setparam;cameras;hg_activate;1
HG;setparam;printers;hg_activate;1
HG;setparam;servers;hg_activate;1
centreon -u admin -p Passw0rd -i /tmp/hostgroups.conf