how to install icinga2 on centos7
266 yum update -y && yum upgrade -y
267 yum install -y https://packages.icinga.com/epel/icinga-rpm-release-7-latest.noarch.rpm
268 yum install -y git curl make gcc wget nano vim net-tools tar unzip zip python-devel python-pip python-setuptools
269 yum install -y icinga2
270 systemctl enable icinga2
271 systemctl start icinga2
272 systemctl status icinga2
273 yum install -y nagios-plugins-all
274 icinga2 daemon -C
275 yum install -y icinga2-selinux
276 firewall-cmd --add-service=http && firewall-cmd --permanent --add-service=http
277 yum install -y vim-icinga2
278 yum install -y mariadb-server mariadb
279 systemctl enable mariadb
280 systemctl start mariadb
281 mysql_secure_installation [ below details of this step...]
282 yum install icinga2-ido-mysql
283 mysql -u root -p
284 mysql -u root -p icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
285 icinga2 feature enable ido-mysql
286 systemctl restart icinga2
287 yum install -y httpd
288 systemctl enable httpd
289 systemctl start httpd
290 icinga2 api setup
291 vim /etc/icinga2/conf.d/api-users.conf
292 vim /etc/icinga2/features-enabled/ido-mysql.conf
293 systemctl restart icinga2
294 yum install -y centos-release-scl
295 yum install -y icingaweb2-selinux
296 yum install -y rh-php73-php-mysqlnd rh-php73-php-fpm sclo-php73-php-pecl-imagick rh-php73-php-ldap rh-php73-php-pgsql rh-php73-php-xmlrpc rh-php73-php-intl rh-php73-php-gd rh-php73-php-pdo rh-php73-php-soap rh-php73-php-posix rh-php73-php-cli
297 systemctl start rh-php73-php-fpm.service
298 systemctl enable rh-php73-php-fpm.service
299 systemctl restart httpd
300 systemctl restart rh-php73-php-fpm.service
301 icingacli setup token create
from: https://icinga.com/blog/2020/07/10/icinga-2-icinga-web-2-and-director-kickstart-on-centos-7/
Žiadne komentáre:
Zverejnenie komentára