Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
nagios_unter_gentoo_mit_lilac [2011/08/08 00:16] – Die Seite wurde neu angelegt: „ == Installation des Nagiosdienstes == Folgende Zeilen müssen in der package.keywords stehen: <pre> net-analyzer/nagios-plugins =sys-apps/portage-2.2* ~* net-an…“ admin | nagios_unter_gentoo_mit_lilac [2011/08/08 15:32] – /* Konfiguration */ admin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Installation des Nagiosdienstes ====== | ||
- | ====== Installation des Nagiosdienstes ====== | ||
+ | ===== Grundsätzliches ===== | ||
+ | |||
+ | |||
+ | Fogende Features werden installiert: | ||
+ | * LDAP-Support für PHP und apache2 | ||
+ | * LDAP-SASL-Support für PHP und apach2 | ||
+ | * MYSQL für das Lilac Interface | ||
+ | * Nagiosplugins | ||
+ | * SNMP Unterstützung für PHP | ||
+ | * Alle Nagiosplugins | ||
+ | * Sämtliche Pakete werden mit " | ||
Folgende Zeilen müssen in der package.keywords stehen: | Folgende Zeilen müssen in der package.keywords stehen: | ||
Zeile 17: | Zeile 28: | ||
net-analyzer/ | net-analyzer/ | ||
net-analyzer/ | net-analyzer/ | ||
+ | net-fs/ | ||
+ | net-nds/ | ||
+ | dev-lang/ | ||
+ | www-servers/ | ||
+ | dev-libs/ | ||
+ | |||
+ | Daneben gibt es noch die speziellen Variablen APACHE2_MODULES und APACHE2_MPMS, | ||
+ | | ||
+ | ... | ||
+ | APACHE2_MPMS=" | ||
+ | ... | ||
+ | |||
+ | Und das ganze installieren: | ||
+ | | ||
+ | emerge -qa net-analyzer/ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Ausgabe von Portage: ===== | ||
+ | |||
+ | | ||
+ | * APACHE | ||
+ | * The location of SSL certificates has changed. If you are | ||
+ | * upgrading from www-servers/ | ||
+ | * *any* apache version), you might want to move your old | ||
+ | * certificates from / | ||
+ | * update your config files. | ||
+ | | ||
+ | * Attention: cgi and cgid modules are now handled via APACHE2_MODULES flags | ||
+ | * in / | ||
+ | * In general, you should use ' | ||
+ | | ||
+ | | ||
+ | PHP | ||
+ | * Please note that this version of PHP does not yet come with a suhosin patch | ||
+ | * Installing SAPI: cli | ||
+ | * Installing php.ini for cli into / | ||
+ | | ||
+ | * Installing SAPI: cgi | ||
+ | * Installing php.ini for cgi into / | ||
+ | | ||
+ | * Installing SAPI: apache2 | ||
+ | * Installing php.ini for apache2 into / | ||
+ | | ||
+ | | ||
+ | * To enable php, you need to edit your / | ||
+ | * add '-D PHP5' to APACHE2_OPTS. | ||
+ | | ||
+ | | ||
+ | * Configuration file installed as | ||
+ | | ||
+ | * You may want to edit it before turning the module on in / | ||
+ | | ||
+ | * Switched cli to use php:5.3 | ||
+ | | ||
+ | * Switched cgi to use php:5.3 | ||
+ | | ||
+ | * Switched apache2 to use php:5.3 | ||
+ | | ||
+ | * Make sure that PHP_TARGETS in / | ||
+ | * to compile extensions for the 5.3 ABI | ||
+ | | ||
+ | | ||
+ | * This ebuild installed a version of php.ini based on php.ini-development version. | ||
+ | * You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either | ||
+ | * ' | ||
+ | * Both versions of php.ini can be found in / | ||
+ | |||
+ | |||
+ | |||
+ | ===== Einrichten der Dienste ===== | ||
+ | |||
+ | | ||
+ | emerge --config =dev-db/ | ||
+ | rc-update add mysql | ||
+ | / | ||
+ | rc-update add apache2 | ||
+ | / | ||
+ | rc-update add nagios | ||
+ | / | ||
+ | |||
+ | |||
+ | |||
+ | ====== Konfiguration ====== | ||
+ | |||
+ | |||
+ | Man kann zusätzliche Berechtigungen in folgender Datei übergeben | ||
+ | nano / | ||
+ | Wir bleiben hier aber bei "Allow from all" | ||
+ | |||
+ | Jetzt erstellen wir den Apache authorization table. Hierzu legen wir jeweils eine " | ||
+ | |||
+ | | **Pfad** | | ||
+ | | nano / | ||
+ | | nano / | ||
+ | | | ||
+ | |||
+ | Der Inhalt der Datei soll so aussehen: | ||
+ | | ||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | AuthUserFile / | ||
+ | Require valid-user | ||
+ | |||
+ | Jetzt legen wir den Nagiosbenutzer für das Webinterface an: | ||
+ | | ||
+ | htpasswd2 -c / | ||
+ | (Apache needs read access to auth.users) | ||
+ | chown nagios: | ||
+ | |||
+ | Jetzt noch die erforderlichen Dienste neu starten: | ||
+ | | ||
+ | / | ||
+ | | ||
+ | |||
+ | Jetzt kann man sich über [[http:// | ||
+ | |||
+ | ====== Links ====== | ||
+ | * [[http:// |