Icinga2 centos: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 53: Zeile 53:
 
*systemctl start httpd
 
*systemctl start httpd
  
 +
=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=
 
=access=
 
*http://HOST/icingaweb2/setup
 
*http://HOST/icingaweb2/setup

Version vom 25. Februar 2017, 16:17 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-plugns-all icinga2-ido-mysql epel-release
  • 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

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/