Icinga2 centos: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 25: Zeile 25:
  
 
=install and set=
 
=install and set=
*yum install icinga2 nagios-plugns-all icinga2-ido-mysql epel-release
+
*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
 
*mysql -p'root-password' icinga < /usr/share/icinga2-ido-mysql/schema/mysql.sql
  
Zeile 42: Zeile 42:
 
=start icinga2=
 
=start icinga2=
 
*systemctl start icinga2
 
*systemctl start icinga2
 +
*systemctl enable icinga2
  
 
=überprüfen=
 
=überprüfen=
Zeile 51: Zeile 52:
 
*systemctl enable httpd
 
*systemctl enable httpd
 
*systemctl start 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=
 
=Links=
 
http://www.modius-techblog.de/linux/icinga-2-richtig-unter-centos-7-installieren/
 
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/