Icinga2 centos
Zur Navigation springen
Zur Suche springen
icinga repository
- rpm --import http://packages.icinga.org/icinga.key
- curl -o /etc/yum.repos.d/ICINGA-release.repo http://packages.icinga.org/epel/ICINGA-release.repo
epel repository
- rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
- rpm -ihv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- yum makecache
maria db
- yum install mariadb mariadb-server
- systemctl start mariadb.service
- systemctl enable mariadb.service
grundeinstallung
- mysql_secure_installation
Datenbank anlegen
MariaDB [(none)]> CREATE DATABASE icinga; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'geheim'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit
install and set
- yum install icinga2 nagios-plugins nagios-plugins-all icinga2-ido-mysql epel-release php-ldap php-pdo php-mysql
- mysql -p'root-password' icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
set
- /etc/icinga2/features-available/ido-mysql.conf
library "db_ido_mysql" object IdoMysqlConnection "ido-mysql" { user = "icinga" password = "geheim'" host = "localhost" database = "icinga" }
start icinga2
- systemctl start icinga2
- systemctl enable icinga2
überprüfen
incingaweb2 installieren
- yum install icingaweb2 icingacli
apache starten
- systemctl enable httpd
- systemctl start httpd
timezone setzen
- vi /etc/php.ini
date.timezone = europe/berlin
do something
- usermod -a -G icingaweb2 apache;
- icingacli setup config directory --group icingaweb2;
Successfully created configuration directory /etc/icingaweb2
- icingacli setup token create;
The newly generated setup token is: 09fe110518bb3a67
access
Links
http://www.modius-techblog.de/linux/icinga-2-richtig-unter-centos-7-installieren/