1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Installation des Icinga Webfrontends</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
<meta name="keywords" content="Supervision, Icinga, Icinga, Linux">
<link rel="home" href="index.html" title="Icinga Version 1.0 Dokumentation">
<link rel="up" href="ch10.html" title="Kapitel 10. Entwicklung">
<link rel="prev" href="epnplugins.html" title="Entwickeln von Plugins für die Nutzung mit Embedded Perl">
<link rel="next" href="ix01.html" title="Stichwortverzeichnis">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<CENTER><IMG src="../images/logofullsize.png" border="0" alt="Icinga" title="Icinga"></CENTER>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">Installation des Icinga Webfrontends</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="epnplugins.html">Zurück</a> </td>
<th width="60%" align="center">Kapitel 10. Entwicklung</th>
<td width="20%" align="right"> <a accesskey="n" href="ix01.html">Weiter</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="icinga-web"></a>Installation des Icinga Webfrontends</h2></div></div></div>
<p>Da noch kein Installer verfügbar ist, ist die Installation des Webinterfaces zugegebener Maßen noch etwas mühsam.</p>
<p>Hier findest Du eine Beispielkonfiguration, wenn Du andere Pfade und Verzeichnisse verwendest mußt Du den Code anpassen. Los geht's:</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<p>Clone von git://git.icinga.org/icinga-web.git/ und verschiebe den git clone nach /var/www/icinga-web (in diesem Beispiel). Denk daran, dass der Pfad zu Deinem Webverzeichnis von Deiner Distribution abhängt:</p>
<pre class="programlisting"> # mv icinga-web /var/www</pre>
</li>
<li class="listitem">
<p>Clone auch die Icinga API und verschiebe sie nach /var/www/lib/icinga-api: </p>
<pre class="programlisting"> # git clone git://git.icinga.org/icinga-api.git/
# mv icinga-api /var/www/icinga-web/lib/</pre>
</li>
<li class="listitem">
<p>Ändere den Besitzer des Web-Verzeichnisses auf den http-Benutzer:</p>
<p><span class="emphasis"><em>Fedora / RedHat / CentOS</em></span></p>
<pre class="programlisting"> # chown -R apache:apache /var/www/icinga-web</pre>
<p><span class="emphasis"><em>Ubuntu / Debian / openSuSE</em></span></p>
<pre class="programlisting"> # chown -R www-data:www-data /var/www/icinga-web</pre>
</li>
<li class="listitem">
<p>Anlegen der Datenbank und Setzen der Berechtigungen: </p>
<pre class="programlisting"> # mysql -u root -p
mysql> CREATE DATABASE icinga_web;
mysql> GRANT ALL ON 'icinga_web.*' TO 'icinga_web'@'localhost' IDENTIFIED BY 'icinga_web';
mysql> FLUSH PRIVILEGES;
quit</pre>
</li>
<li class="listitem">
<p>Importieren der Datenbank über folgende Dateien: </p>
<pre class="programlisting"> # mysql -u root -p icinga_web < /var/www/icinga-web/etc/database/rescue_schema.sql
# mysql -u root -p icinga_web < /var/www/icinga-web/etc/database/rescue_data.sql</pre>
</li>
<li class="listitem">
<p>Editiere /var/www/icinga-web/app/config/databases.xml und setzte Deine Werte (ab Zeile 7):</p>
<pre class="programlisting"> <database name="appkit_default" class="AgaviDoctrineDatabase">
<ae:parameter name="dsn">mysql://icinga_web:icinga_web@127.0.0.1:3306/icinga_web</ae:parameter>
<ae:parameter name="username">icinga_web</ae:parameter>
<ae:parameter name="password">icinga_web</ae:parameter>
<ae:parameter name="charset">utf8</ae:parameter>
<ae:parameter name="manager_attributes">
<ae:parameter name="MODEL_LOADING">CONSERVATIVE</ae:parameter>
</ae:parameter>
<ae:parameter name="load_models">%de.icinga.appkit.doctrine_model_path%</ae:parameter>
</database></pre>
</li>
<li class="listitem">
<p>Editiere /var/www/icinga-web/app/config/icinga.xml und setze die Berechtigungen für den Zugriff auf die ido-Datenbank (ab Zeile 163): </p>
<pre class="programlisting"> <parameter name="IcingaData">
<parameter name="class">IcingaData</parameter>
<parameter name="api_file">%core.root_dir%/lib/icinga-api/IcingaApi.php</parameter>
<parameter name="api_type">IcingaApi::CONNECTION_IDO</parameter>
<parameter name="config_type">mysql</parameter>
<parameter name="config_host">127.0.0.1</parameter>
<parameter name="config_port">3306</parameter>
<parameter name="config_database">icinga</parameter>
<parameter name="config_user">icinga</parameter>
<parameter name="config_password">icinga</parameter>
<parameter name="config_table_prefix">icinga_</parameter>
</parameter></pre>
<div class="note" title="Anmerkung" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Anmerkung]" src="../images/note.png"></td>
<th align="left">Anmerkung</th>
</tr>
<tr><td align="left" valign="top"> Vorher solltest Du die IDOUtils installiert und konfiguriert haben, (wie hier beschrieben:<a class="xref" href="quickstart-idoutils.html" title="Icinga-Schnellstart mit IDOUtils">„Icinga-Schnellstart mit IDOUtils“</a> ) !</td></tr>
</table></div>
</li>
<li class="listitem">
<p>Erstelle einen virtuellen Host: </p>
<pre class="programlisting"> <VirtualHost *:80>
ServerName icinga-web
DocumentRoot /var/www/icinga-web/pub/
DirectoryIndex index.php
<Directory /var/www/icinga-web/pub/>
Options -MultiViews -Indexes +FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# If the requested URL does not exist (it's likely an agavi route),
# pass it as path info to index.php, the Agavi dispatch script.
RewriteRule ^$ index.php?/ [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?/$1 [QSA,L]
</IfModule>
</Directory>
# deny something!
<Location />
Options -MultiViews -Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Location>
# JS frameworks
Alias /js/yui /var/www/icinga-web/lib/yui
Alias /js/swfobject /var/www/icinga-web/lib/swfobject
Alias /js/mootools /var/www/icinga-web/lib/mootools
Alias /js/jquery /var/www/icinga-web/lib/jquery
Alias /js/appkit /var/www/icinga-web/lib/appkit/js
Alias /js/gc-prettify /var/www/icinga-web/lib/gc-prettify
Alias /js/firebug /var/www/icinga-web/lib/firebug
Alias /js/ext3 /var/www/icinga-web/lib/ext3
# Flash frameworks
Alias /flash/flexchart /var/www/icinga-web/lib/flexchart
<IfDefine APACHE2>
AcceptPathInfo On
</IfDefine>
</VirtualHost></pre>
</li>
<li class="listitem">
<p>Leere den Cache:</p>
<pre class="programlisting"> # rm /var/www/icinga-web/app/cache/config/*.php</pre>
</li>
<li class="listitem">
<p>Lade die Konfiguration des Webservers neu:</p>
<p><span class="emphasis"><em>Fedora/RedHat/CentOS</em></span></p>
<pre class="programlisting"> # service httpd reload</pre>
<p><span class="emphasis"><em>Ubuntu / openSuSE</em></span></p>
<pre class="programlisting"> # /etc/init.d/apache2 reload</pre>
</li>
</ol></div>
<p>Viel Spaß und bitte gib uns Dein Feedback!!
http://localhost/icinga-web
</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="epnplugins.html">Zurück</a> </td>
<td width="20%" align="center"><a accesskey="u" href="ch10.html">Nach oben</a></td>
<td width="40%" align="right"> <a accesskey="n" href="ix01.html">Weiter</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Entwickeln von Plugins für die Nutzung mit Embedded Perl </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Zum Anfang</a></td>
<td width="40%" align="right" valign="top"> Stichwortverzeichnis</td>
</tr>
</table>
</div>
<P class="copyright">© 2009 Icinga Development Team, http://www.icinga.org</P>
</body>
</html>
|