monitoring
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| monitoring [26.01.2019 08:14] – [Konfiguration] thooge | monitoring [03.04.2020 16:27] (aktuell) – [Frontend] thooge | ||
|---|---|---|---|
| Zeile 12: | Zeile 12: | ||
| Webserver für die Visualisierung | Webserver für die Visualisierung | ||
| < | < | ||
| - | aptitude install apache2 libapache2-mod-php7.0 php7.0 php7.0-gd php7.0-gettext | + | aptitude install apache2 libapache2-mod-php7.0 php7.0 php7.0-gd php7.0-gettext\ |
| + | php7.0-bcmath php7.0-mbstring php7.0-xml | ||
| </ | </ | ||
| Zeile 32: | Zeile 33: | ||
| < | < | ||
| aptitude install build-essential pkg-config default-libmysqlclient-dev libiksemel-dev libcurl4-openssl-dev \ | aptitude install build-essential pkg-config default-libmysqlclient-dev libiksemel-dev libcurl4-openssl-dev \ | ||
| - | libsnmp-dev libopenipmi-dev unixodbc-dev libxml2-dev libssl-dev libevent-dev libpcre3-dev | + | libsnmp-dev libopenipmi-dev unixodbc-dev libxml2-dev libssl-dev libevent-dev libpcre3-dev libssh2-1-dev |
| </ | </ | ||
| Zeile 44: | Zeile 45: | ||
| ./configure --sysconfdir=/ | ./configure --sysconfdir=/ | ||
| --with-mysql --with-net-snmp --with-libcurl --with-jabber --with-openipmi --with-unixodbc\ | --with-mysql --with-net-snmp --with-libcurl --with-jabber --with-openipmi --with-unixodbc\ | ||
| - | --with-libxml2 --with-openssl | + | --with-libxml2 --with-openssl |
| make | make | ||
| make install | make install | ||
| Zeile 56: | Zeile 57: | ||
| < | < | ||
| mariadb | mariadb | ||
| - | CREATE DATABASE zabbix; | + | CREATE DATABASE zabbix |
| CREATE USER ' | CREATE USER ' | ||
| GRANT ALL PRIVILEGES ON zabbix.* to ' | GRANT ALL PRIVILEGES ON zabbix.* to ' | ||
| Zeile 72: | Zeile 73: | ||
| < | < | ||
| - | ln -s / | ||
| - | ln -s / | ||
| mkdir / | mkdir / | ||
| chown zabbix.adm / | chown zabbix.adm / | ||
| Zeile 86: | Zeile 85: | ||
| DBUser=zabbix | DBUser=zabbix | ||
| DBPassword=******** | DBPassword=******** | ||
| - | DbSocket=/ | + | DBSocket=/ |
| </ | </ | ||
| Zeile 100: | Zeile 99: | ||
| cp -p misc/ | cp -p misc/ | ||
| </ | </ | ||
| - | Verbesserte Versionen: | + | Verbesserte Versionen: |
| + | {{ : | ||
| + | {{ :: | ||
| Zeile 109: | Zeile 110: | ||
| mysql -uzabbix -p zabbix < database/ | mysql -uzabbix -p zabbix < database/ | ||
| </ | </ | ||
| + | |||
| + | === Systemd === | ||
| + | Aus speziellen Servern muß systemd verwendet werden. In diesem Fall ist eine abweichende Konfiguration | ||
| + | erforderlich: | ||
| + | <file conf / | ||
| + | # | ||
| + | d / | ||
| + | </ | ||
| + | Service-File: | ||
| + | <file conf / | ||
| + | [Unit] | ||
| + | Description=Zabbix Agent | ||
| + | After=syslog.target network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | ExecStart=/ | ||
| + | RemainAfterExit=yes | ||
| + | PIDFile=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| + | |||
| + | Aktivieren für Autostart | ||
| + | < | ||
| + | systemctl enable zabbix-agentd | ||
| + | </ | ||
| + | ===== Frontend ===== | ||
| PHP Frontend installieren | PHP Frontend installieren | ||
| Zeile 116: | Zeile 146: | ||
| cp -a . / | cp -a . / | ||
| chown -R www-data. / | chown -R www-data. / | ||
| - | ln -s / | + | ln -s / |
| </ | </ | ||
| + | |||
| + | Frontend konfigurieren | ||
| + | * Verfügbare Sprachen einstellen | ||
| + | * Die im folgenden ausgewählten Sprachen müssen auch als locale im System aktiviert sein! | ||
| + | * ''/ | ||
| + | * Blacklist für Diagrammeinheiten< | ||
| + | $blackList = [' | ||
| + | </ | ||
| + | * PHP konfigurieren (''/ | ||
| + | * post_max_size = 24M | ||
| + | * max_execution_time = 400 | ||
| + | * max_input_time = 400 | ||
| + | * date.timezone = Europe/ | ||
| + | * Webserver mit neuen Einstellungen neu starten | ||
| + | * Frontend im Browser aufrufen | ||
| + | * Benutzer '' | ||
| + | * Konfiguration ist anschließend unter: ''/ | ||
| + | * Login ist anschließend mit dem Benutzer '' | ||
| + | |||
| + | Frontend updaten | ||
| + | |||
| + | - Neue Version nach ''/ | ||
| + | cd / | ||
| + | cp -a . / | ||
| + | chown -R www-data. / | ||
| + | </ | ||
| + | - Konfiguration der Vorversion übernehmen | ||
| + | * '' | ||
| + | * Konfiguration: | ||
| + | * Sprachen: '' | ||
| + | * Blacklist für Einheiten: '' | ||
| + | - Link ''/ | ||
| + | rm / | ||
| + | ln -s / | ||
| + | </ | ||
| + | - Kurze Funktionsüberprüfung mit einem Browser vornehmen | ||
| + | - Alte Version entfernen | ||
| + | |||
| + | |||
monitoring.1548490474.txt.gz · Zuletzt geändert: von thooge
