Icinga2 centos: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Die Seite wurde neu angelegt: „=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-r…“
 
Thomas (Diskussion | Beiträge)
 
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 4: Zeile 4:
=epel repository=
=epel repository=
*rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
*rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
*rpm -ihv http://ftp.uni-kl.de/pub/linux/fedora-epel//epel-release-latest-7.noarch.rpm
*rpm -ihv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
*yum makecache
*yum makecache
=maria db=
*yum install mariadb mariadb-server
*systemctl start mariadb.service
*systemctl enable mariadb.service
=grundeinstallung=
*mysql_secure_installation
=Datenbank anlegen=
<pre>
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
</pre>
=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
<pre>
library "db_ido_mysql"
object IdoMysqlConnection "ido-mysql" {
  user = "icinga"
  password = "geheim'"
  host = "localhost"
  database = "icinga"
}
</pre>
=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=
*http://HOST/icingaweb2/setup
=Links=
http://www.modius-techblog.de/linux/icinga-2-richtig-unter-centos-7-installieren/

Aktuelle Version vom 25. Februar 2017, 17:10 Uhr

icinga repository

epel repository

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/