tachtler:nagios_-_epel_installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
tachtler:nagios_-_epel_installation [2013/07/23 11:46] – [Installation] klaus | tachtler:nagios_-_epel_installation [2013/07/23 14:57] – [Konfiguration: /etc/httpd/conf.d/vhost] klaus | ||
---|---|---|---|
Zeile 7457: | Zeile 7457: | ||
?> | ?> | ||
</ | </ | ||
+ | |||
+ | Abschließend kann nun die **eigentliche Installation** durchgeführt werden. | ||
+ | |||
+ | Hierbei werden nachfolgende Schritte automatisch durch die Installationsdatei ausgeführt: | ||
+ | * Anlegen des Ziel-Verzeichnisses | ||
+ | * Kopieren der benötigten Dateien, in das neu angelegte Ziel-Verzeichnis | ||
+ | * Erstellen und kopieren einer **vhost-Konfigurationsdatei** für den [[http:// | ||
+ | * Neustart des [[http:// | ||
+ | |||
+ | Falls einer dieser Schritte unerwünscht sein sollte, kann die Installationsdatei entsprechend angepasst werden. | ||
+ | |||
+ | :!: **HINWEIS** - **Nachfolgend wurde der Neustart des [[http:// | ||
+ | |||
+ | Nachfolgender Befehl, führt die Installation aus: | ||
+ | < | ||
+ | # / | ||
+ | Copying apache configuration file... | ||
+ | Creating web directory... | ||
+ | Copying files... | ||
+ | Cleaning up... | ||
+ | Checking for file locations... | ||
+ | NOTICE: Objects file found at: / | ||
+ | ***Update this location in your / | ||
+ | NOTICE: Status file found at: / | ||
+ | ***Update this location in your / | ||
+ | NOTICE: cgi.cfg file found at: / | ||
+ | ***Update this location in your / | ||
+ | NOTICE: Nagios cmd file found at: / | ||
+ | ***Update this location in your / | ||
+ | Script Complete! | ||
+ | </ | ||
+ | |||
+ | ==== Konfiguration: | ||
+ | |||
+ | Nach der erfolgreichen Installation durch die Installationsdatei ''/ | ||
+ | < | ||
+ | # cd / | ||
+ | </ | ||
+ | und der Inhalt des nue entstandenen Verzeichnisses mit nachfolgendem Befehl aufgelistet werden: | ||
+ | < | ||
+ | # ls -la / | ||
+ | total 68 | ||
+ | drwxr-xr-x | ||
+ | drwxrwxr-x 12 root root 4096 Jul 23 14:03 .. | ||
+ | -rwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | </ | ||
+ | |||
+ | Hier befindet sich die Konfigurationsdatei | ||
+ | * **''/ | ||
+ | |||
+ | Hier müssen, leider **nochmals** einige Pfade angepasst werden. | ||
+ | |||
+ | * **'' | ||
+ | * **'' | ||
+ | * **'' | ||
+ | * **'' | ||
+ | |||
+ | :!: **HINWEIS** - Nachfolgend sind __NUR__ die relevanten Änderungen aufgelistet: | ||
+ | <code php> | ||
+ | # cat / | ||
+ | // Tachtler | ||
+ | // default: $STATUS_FILE | ||
+ | $STATUS_FILE | ||
+ | // Tachtler | ||
+ | // default: $COMMAND_FILE = "/ | ||
+ | $COMMAND_FILE = "/ | ||
+ | // Tachtler | ||
+ | // default: $CGI_FILE = "/ | ||
+ | $CGI_FILE = "/ | ||
+ | // Tachtler | ||
+ | // default: $OBJECTS_FILE = "/ | ||
+ | $OBJECTS_FILE = "/ | ||
+ | </ | ||
+ | |||
+ | Nachfolgend die **komplette** Konfigurationsdatei ''/ | ||
+ | <code php> | ||
+ | <? | ||
+ | // include.inc.php | ||
+ | // main include file for all global variables, constants, and script includes | ||
+ | // @author Mike Guthrie | ||
+ | // @author Hirose Masaaki | ||
+ | |||
+ | |||
+ | ////////////////// | ||
+ | //////////////////////////////////////////////////////////////////////////////////// | ||
+ | // Tachtler | ||
+ | // default: $STATUS_FILE | ||
+ | $STATUS_FILE | ||
+ | // Tachtler | ||
+ | // default: $COMMAND_FILE = "/ | ||
+ | $COMMAND_FILE = "/ | ||
+ | // Tachtler | ||
+ | // default: $CGI_FILE = "/ | ||
+ | $CGI_FILE = "/ | ||
+ | // Tachtler | ||
+ | // default: $OBJECTS_FILE = "/ | ||
+ | $OBJECTS_FILE = "/ | ||
+ | $BASE_URL = '/ | ||
+ | $TTL = 30; //Time to live for cached data parsed from status and objects file | ||
+ | $USER = ''; | ||
+ | /////////////////////////////////////////////////////////////////////////////////// | ||
+ | //////////////////// | ||
+ | |||
+ | |||
+ | // Nagios Mobile 1.0 | ||
+ | // Copyright (c) 2011 Nagios Enterprises, | ||
+ | // Web: http:// | ||
+ | // Developed by Mike Guthrie and Wesley Zhao. | ||
+ | // Based on Teeny Nagios by HIROSE Masaaki. | ||
+ | |||
+ | // LICENSE: | ||
+ | // | ||
+ | // This work is made available to you under the terms of Version 2 of | ||
+ | // the GNU General Public License. A copy of that license should have | ||
+ | // been provided with this software, but in any event can be obtained | ||
+ | // from http:// | ||
+ | // | ||
+ | // This work is distributed in the hope that it will be useful, but | ||
+ | // WITHOUT ANY WARRANTY; without even the implied warranty of | ||
+ | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
+ | // General Public License for more details. | ||
+ | // | ||
+ | // You should have received a copy of the GNU General Public License | ||
+ | // along with this program; if not, write to the Free Software | ||
+ | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
+ | // 02110-1301 or visit their web page on the internet at | ||
+ | // http:// | ||
+ | // | ||
+ | // | ||
+ | // CONTRIBUTION POLICY: | ||
+ | // | ||
+ | // (The following paragraph is not intended to limit the rights granted | ||
+ | // to you to modify and distribute this software under the terms of | ||
+ | // licenses that may apply to the software.) | ||
+ | // | ||
+ | // Contributions to this software are subject to your understanding and acceptance of | ||
+ | // the terms and conditions of the Nagios Contributor Agreement, which can be found | ||
+ | // online at: | ||
+ | // | ||
+ | // http:// | ||
+ | // | ||
+ | // | ||
+ | // DISCLAIMER: | ||
+ | // | ||
+ | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
+ | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
+ | // PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
+ | // HOLDERS BE LIABLE FOR ANY CLAIM FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, | ||
+ | // OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | ||
+ | // GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR OTHER | ||
+ | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, STRICT LIABILITY, TORT (INCLUDING | ||
+ | // NEGLIGENCE OR OTHERWISE) OR OTHER ACTION, ARISING FROM, OUT OF OR IN CONNECTION | ||
+ | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
+ | |||
+ | |||
+ | ////////// | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | require_once(' | ||
+ | |||
+ | /////////// | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | define(" | ||
+ | |||
+ | $HOST_STATUS_BY = array( | ||
+ | HOST_UP | ||
+ | HOST_DOWN | ||
+ | HOST_UNREACHABLE => " | ||
+ | ); | ||
+ | $SERVICE_STATUS_BY = array( | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ); | ||
+ | |||
+ | //////APC | ||
+ | //use apc if we've got it | ||
+ | $APC = (function_exists(' | ||
+ | |||
+ | |||
+ | |||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | ==== Konfiguration: | ||
+ | |||
+ | :!: **HINWEIS** - Bevor ein erster Start von [[http:// | ||
+ | |||
+ | Hier soll die Konfiguration eines **virtuellen Host** für den [[http:// | ||
+ | * http:// | ||
+ | ermöglicht werden. | ||
+ | |||
+ | :!: **HINWEIS** - Falls Sie noch keine Erfahrungen mit **virtuellen Hosts** in Verbindung mit dem [[http:// | ||
+ | |||
+ | Falls noch nicht geschehen wird im Verzeichnis ''/ | ||
+ | <code apache> | ||
+ | # This configuration file enables the vhosts to this | ||
+ | # Server | ||
+ | # | ||
+ | |||
+ | NameVirtualHost *:80 | ||
+ | |||
+ | # | ||
+ | # nagiosmobile.tachtler.net (Nagios Monitoring) | ||
+ | # | ||
+ | < | ||
+ | ServerAdmin webmaster@tachtler.net | ||
+ | ServerName nagiosmobile.tachtler.net | ||
+ | ServerAlias www.nagiosmobile.tachtler.net | ||
+ | ServerPath / | ||
+ | |||
+ | Alias / | ||
+ | |||
+ | < | ||
+ | AllowOverride None | ||
+ | Order allow,deny | ||
+ | Allow from all | ||
+ | # | ||
+ | # Use the same value as defined in nagios.conf | ||
+ | # | ||
+ | AuthName " | ||
+ | AuthType Basic | ||
+ | AuthUserFile / | ||
+ | Require valid-user | ||
+ | </ | ||
+ | |||
+ | DirectoryIndex index.html index.php | ||
+ | ErrorLog logs/ | ||
+ | CustomLog logs/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | :!: **WICHTIG** - **//Die mit der Installation mitgelieferte Konfigurationsdatei ''/ | ||
+ | |||
+ | Ein erneuter oder erster Start des [[http:// | ||
+ | < | ||
+ | # service httpd start | ||
+ | </ | ||
+ | oder einen erneuten Start des [[http:// | ||
+ | < | ||
+ | # service httpd restart | ||
+ | </ | ||
+ | macht die oben beschriebenen Konfigurationen für den [[http:// | ||
+ | |||
+ | Nach dem Erfolgreichen Aufruf des Links [[http:// | ||
+ | |||
tachtler/nagios_-_epel_installation.txt · Zuletzt geändert: 2013/07/23 22:52 von klaus