File: icinga-web-scratch.html

package info (click to toggle)
icinga 1.0.2-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,952 kB
  • ctags: 13,294
  • sloc: xml: 154,821; ansic: 99,198; sh: 14,585; sql: 5,852; php: 5,126; perl: 2,838; makefile: 1,268
file content (592 lines) | stat: -rw-r--r-- 28,581 bytes parent folder | download | duplicates (2)
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Installation des neuen Icinga Web Frontend</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.2 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="icinga-api.html" title="Installation und Benutzung der Icinga API">
</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 neuen Icinga Web Frontend</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="icinga-api.html">Weiter</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="section" title="Installation des neuen Icinga Web Frontend">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="icinga-web-scratch"></a>Installation des neuen Icinga Web Frontend</h2></div></div></div>
    

    <p><span class="bold"><strong>Einleitung</strong></span></p>

    <p>Das neue Icinga Web wird aktuell sehr stark weiterentwickelt, sodass sich diese Dokumentation unter Umständen noch ändern kann/wird. Falls
    Sie eine detaillierte Installationsanleitung benötigen, konsultieren Sie bitte doc/INSTALL aus dem Source-Paket. Mehr Informationen über die
    gesamte Architektur können Sie auf unserer Webseite nachlesen: <a class="link" href="http://www.icinga.org/architecture/" target="_top">http://www.icinga.org/architecture/</a> Falls Sie mehr über das Icinga Web development und die
    Modularchitektur wissen wollen, verfolgen Sie bitte stetig aktualisierte Einträge im Development-Wiki von Icinga Web: <a class="link" href="https://dev.icinga.org/projects/icinga-web/wiki/" target="_top">https://dev.icinga.org/projects/icinga-web/wiki/</a></p>

    <div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
            <p><span class="bold"><strong>Voraussetzungen</strong></span></p>

            <p>Die Pakete mysql und php5 sind installiert (mit PEAR und CLI), Icinga samt IDOUtils läuft, die Icinga-API ebenfalls, dann ab zu 2.,
            ansonsten bitte:</p>

            <div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
                    <p><span class="bold"><strong>Ubuntu / Debian</strong></span></p>

                    <pre class="programlisting"># apt-get install php5-cli php-pear php5-xmlrpc php5-xsl php5-pdo php5-ldap php5-gd</pre>
                </li>
<li class="listitem">
                    <p><span class="bold"><strong>Fedora / RHEL / CentOS</strong></span></p>

                    <pre class="programlisting"># yum install php-cli php-pear php-xmlrpc php-xsl php-pdo php-ldap php-gd</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">
                        <p>Aktuelle Pakete für PHP und PRCE finden Sie beispielsweise hier: <a class="link" href="http://www.jasonlitka.com/category/yum-repo-news" target="_top">http://www.jasonlitka.com/category/yum-repo-news/</a></p>
                    </td></tr>
</table></div>
                </li>
<li class="listitem">
                    <p><span class="bold"><strong>OpenSuSE</strong></span></p>

                    <p>Benutzen Sie yast, um die Pakete "php5-pear", "php5-xmlrpc", "php5-xsl", "php5-&lt;rdbm&gt;", "php5-soap", "php5-gettext",
                    "php5-pdo", "php5-ldap" und "php5-gd" zu installieren. Die CLI ist im php5-Paket enthalten.</p>

                    <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">
                        <p>Zumindest bei SLES10 SP2 fehlt die Funktion hash_hmac.</p>
                    </td></tr>
</table></div>
                </li>
</ul></div>

            <p>Die Installation von Icinga mit den IDOUtils bzw. der Icinga-API ist in der <a class="link" href="quickstart-idoutils.html" title="Icinga-Schnellstart mit IDOUtils">Icinga-Schnellstartanleitung</a> und dem Abschnitt über die <a class="link" href="icinga-api.html" title="Installation und Benutzung der Icinga API">Icinga-API</a>
            beschrieben.</p>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Die Installation</strong></span></p>

            <p>Laden Sie das Archiv herunter von <a class="link" href="http://sourceforge.net/projects/icinga/files/" target="_top">http://sourceforge.net/projects/icinga/files/</a> oder klonen Sie von
            icinga-web.git, um mit der aktuellsten Version zu arbeiten:</p>

            <pre class="programlisting"># git clone git://git.icinga.org/icinga-web.git</pre>

            <p>Extrahieren Sie das Archiv (tarball) wie folgt:</p>

            <pre class="programlisting"># tar xzvf icinga-web-1.0.1.tar.gz</pre>

            <p>Wechseln Sie in das Verzeichnis:</p>

            <pre class="programlisting"># cd icinga-web</pre>

            <p>Icinga Web stellt verschiedene configure Optionen zur Verfügung z.B.</p>

            <pre class="programlisting"># ./configure
                        --prefix=/usr/local/icinga-web
                        --with-web-user=www-data
                        --with-web-group=www-data
                        --with-db-type=mysql
                        --with-db-host=localhost
                        --with-db-port=3306
                        --with-db-name=icinga_web
                        --with-db-user=icinga_web
                        --with-db-pass=icinga_web
                        --with-icinga-api=/usr/local/icinga/share/icinga-api</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">
                <p>Bitte beachten Sie, dass Sie hier die Icinga Web-Datenbank konfigurieren, und nicht die Icinga-IDOUtils-Datenbank!</p>
            </td></tr>
</table></div>

            <p>Alle Konfigurationsmöglichkeiten sehen Sie mit:</p>

            <pre class="programlisting"># ./configure --help</pre>

            <p>Ohne weitere Optionen wird das Icinga Webinterface mit:</p>

            <pre class="programlisting"># ./configure
# make install</pre>

            <p>unter /usr/local/icinga-web installiert.</p>

            <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">
                <p>Falls Sie keine Optionen angeben, erwartet der Installer die Icinga API in /usr/local/icinga-api. Allerdings können Sie die
                Option "--with-icinga-api" verwenden um einen anderen Ort anzugeben. Sofern Sie Icinga mit Hilfe des Quickstart Guides
                installiert haben, sollten sie den folgenden Befehl verwenden:</p>
            </td></tr>
</table></div>

            <pre class="programlisting"># ./configure --with-icinga-api=/usr/local/icinga/share/icinga-api</pre>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>PHP-Abhängigkeiten</strong></span></p>

            <p>Bitte prüfen Sie die PHP-Abhängigkeiten mit:</p>

            <pre class="programlisting"># make testdeps</pre>

            <p>Alle "require"-Tests sollten erfolgreich sein. Eventuell müssen Sie die php.ini anpassen:</p>

            <p>Die "magic_quote_gpc" in der Apache- und der CLI-php.ini auf "Off" setzen! Bitte beachten Sie, dass die Pfade von der Distribution
            abhängig sind.</p>

            <pre class="programlisting"># vi /etc/php5/apache/php.ini
   magic_quotes_gpc = off

# vi /etc/php5/cli/php.ini
   magic_quotes_gpc = off</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">
                <p>Beide Dateien müssen vorhanden sein, sonst erhalten Sie eine Agavi-Meldung, weil der Default von magic_quotes_gpc "ON"
                ist.</p>
            </td></tr>
</table></div>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Datenbank-Installation</strong></span></p>

            <p>Icinga Web benötigt eine eigene Datenbank z.B. icinga_web. Sie können die Datenbank von IDOUtils mitverwenden, dies wird
            allerdings nicht empfohlen, um bei Upgrades keine Probleme zu haben.</p>

            <p><span class="bold"><strong>Anlegen des Datenbankbenutzers:</strong></span></p>

            <p>Der Benutzer muss mindestens diese Privilegien haben: SELECT, UPDATE, INSERT, DELETE.</p>

            <pre class="programlisting">SQL&gt; GRANT USAGE ON *.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'icinga_web';

SQL&gt; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX ON icinga_web.* TO 'icinga_web'@'localhost';

SQL&gt; FLUSH PRIVILEGES;</pre>

            <p><span class="bold"><strong>MySQL</strong></span></p>

            <pre class="programlisting"># mysql -u root -p
  
 mysql&gt; GRANT USAGE ON icinga_web.* TO 'icinga_user'@'localhost' IDENTIFIED BY 'icinga_pass' WITH MAX_QUERIES_PER_HOUR 0      MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;
   
 mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX ON icinga_web.* TO 'icinga_user'@'localhost';
 
 mysql&gt; FLUSH PRIVILEGES ;

 mysql&gt; quit</pre>

            <p><span class="bold"><strong>Anlegen der Datenbank</strong></span></p>

            <p>Icinga Web bringt Doctrine mit, womit in Zukunft die Datenbank verwaltet wird. Mittels 'make' kann diese initialisiert, upgegradet
            oder gelöscht werden.</p>

            <pre class="programlisting"># make db-initialize      - legt eine Icinga web Datenbank an und füllt diese mit initialen Werten
</pre>

            <pre class="programlisting"># make db-drop            - löscht die komplette Datenbank, inklusive Securityabfrage um ungewolltes Löschen zu verhindern
</pre>

            <pre class="programlisting"># make db-upgrade         - führt ein Upgrade von einer alten Version durch (ähnlich wie db-initialize)</pre>

            <pre class="programlisting"># make db-doc2sql         - falls Sie SQL scripts beispielsweise für Packaging oder manuelles Setup benötigen, können Sie diese Option verwenden um die SQL scripts aus Doctrine zu extrahieren
</pre>

            <p>Um die Datenbankanlege-Befehle nutzen zu können, müssen Sie dem Benutzer der diese DB Befehle ausführen soll, auch die
            entsprechenden Privilegien zuordnen. Falls derjenige Benutzer, der für das Icinga Web in configure vorgesehen wurde, zu wenig
            Berechtigungen hat, gibt es in 'make' eine Abfrage, ob Sie einen anderen Benutzer mit mehr Privilegien verwenden wollen. Falls dies nicht
            funktioniert, sollten sie etc/build.properties editieren und einen root Benutzer einfuegen</p>

            <p>Das Installieren der Datenbank funktioniert mittels:</p>

            <pre class="programlisting"># make db-initialize</pre>

            <p><span class="bold"><strong>Manuelles Anlegen der Datenbank</strong></span></p>

            <p>Sofern Sie die Datenbank manuell installieren wollen z.B. für Package building, können Sie mit diesem Befehl die SQL Scripts
            extrahieren</p>

            <pre class="programlisting"># make db-doc2sql</pre>

            <p>und dann diese in die frisch angelegte Datenbank importieren.</p>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Icinga-Web Konfiguration</strong></span></p>

            <p>Im Normalfall können Sie die Datenbankeinstellungen während configure vornehmen. Sollten Sie diese allerdings anpassen wollen oder
            nachsehen wollen im Fehlerfall, öffnen sie folgende Datei mit einem Editor Ihrer Wahl.</p>

            <pre class="programlisting"># vi app/config/databases.xml</pre>

            <pre class="programlisting"> &lt;databases default="icinga_web"&gt;

                        &lt;database name="icinga_web" class="AgaviDoctrineDatabase"&gt;

                                &lt;!--

                                        Doctrine dsn strings:

                                        http://www.doctrine-project.org/documentation/manual/1_1/en/introduction-to-connections

                                --&gt;

                                &lt;ae:parameter name="dsn"&gt;mysql://icinga_web:icinga_web@127.0.0.1:3306/icinga_web&lt;/ae:parameter&gt;

                                &lt;!-- Generic credentials  --&gt;

                                &lt;!-- &lt;ae:parameter name="username"&gt;icinga_web&lt;/ae:parameter&gt; --&gt;

                                &lt;!-- &lt;ae:parameter name="password"&gt;icinga_web&lt;/ae:parameter&gt; --&gt;

                                &lt;!-- DB encoding type --&gt;

                                &lt;ae:parameter name="charset"&gt;utf8&lt;/ae:parameter&gt;

                                &lt;!--

                                        Doctrine_Manager configuration

                                --&gt;

                                &lt;ae:parameter name="manager_attributes"&gt;

                                        &lt;!-- This allows lazy loading of the models --&gt;

                                        &lt;ae:parameter name="Doctrine_Core::ATTR_MODEL_LOADING"&gt;CONSERVATIVE&lt;/ae:parameter&gt;

                                &lt;/ae:parameter&gt;

                                &lt;!-- The path to our models --&gt;

                                &lt;ae:parameter name="load_models"&gt;%core.module_dir%/AppKit/lib/database/models/generated&lt;/ae:parameter&gt;

                                &lt;ae:parameter name="models_directory"&gt;%core.module_dir%/AppKit/lib/database/models&lt;/ae:parameter&gt;

                        &lt;/database&gt;</pre>

            <p><span class="bold"><strong>Konfiguration von Icinga API Parametern</strong></span></p>

            <p>Diese Einstellungen werden direkt in Icinga Web vorgenommen das diese Informationen dann entsprechend aufbereitet an die Icinga API
            weitergibt. Öffnen Sie app/modules/Web/config/module.xml um die IcingaApi factories zu sehen: IcingaData und IcingaCommand.
            </p>
<pre class="programlisting"># vi app/modules/Web/config/module.xml</pre>
<p> In IcingaData werden die Parameter für die Icinga API festgelegt,
            um beispielsweise die Icinga IDOUtils Datenbank als Datenquelle einzustellen. </p>
<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">
                    <p>Bitte beachten Sie, dass Sie zuvor IDOUtils installieren müssen (so wie im Icinga IDOUtils Quickstart <a class="link" href="quickstart-idoutils.html" title="Icinga-Schnellstart mit IDOUtils">hier</a> beschrieben).</p>
                </td></tr>
</table></div>
<p> </p>
<pre class="programlisting"> &lt;!-- icinga-api data interface --&gt;

                &lt;parameter name="IcingaData"&gt;

                        &lt;parameter name="class"&gt;IcingaData&lt;/parameter&gt;

                        &lt;parameter name="file"&gt;%core.root_dir%/app/lib/icinga/factory/IcingaData.class.php&lt;/parameter&gt;

                        &lt;parameter name="requiredClasses"&gt;

                                &lt;!-- NONE --&gt;

                        &lt;/parameter&gt;

                        &lt;parameter name="api_file"&gt;%core.root_dir%/lib/icinga-api/IcingaApi.php&lt;/parameter&gt;

                        &lt;!--

                                API connection type

                        --&gt;

                        &lt;parameter name="api_type"&gt;IcingaApi::CONNECTION_IDO&lt;/parameter&gt;

                         &lt;parameter name="config_type"&gt;mysql&lt;/parameter&gt;

                         &lt;parameter name="config_host"&gt;127.0.0.1&lt;/parameter&gt;

                         &lt;parameter name="config_port"&gt;3306&lt;/parameter&gt;

                         &lt;parameter name="config_database"&gt;icinga&lt;/parameter&gt;

                         &lt;parameter name="config_user"&gt;your-ido-user&lt;/parameter&gt;

                         &lt;parameter name="config_password"&gt;your-ido-pw&lt;/parameter&gt;

                         &lt;parameter name="config_table_prefix"&gt;icinga_&lt;/parameter&gt;
                &lt;/parameter&gt;</pre>

            <p>In IcingaCommand können Sie einstellen, wie Befehle an die Icinga Core command pipe gesendet werden - lokal or remote via SSH.
            Abhängig davon, ob die jeweilige Option 'enabled' ist, wird diese verwendet/nicht verwendet. Standardmässig wird die lokale Pipe
            verwendet.</p>

            <pre class="programlisting"> &lt;parameter name="IcingaCommand"&gt;

                        &lt;parameter name="class"&gt;IcingaCommand&lt;/parameter&gt;

                        &lt;parameter name="file"&gt;%core.root_dir%/app/lib/icinga/factory/IcingaCommand.class.php&lt;/parameter&gt;

                        &lt;parameter name="requiredClasses"&gt;

                                &lt;!-- NONE --&gt;

                        &lt;/parameter&gt;

                        &lt;parameter name="api_file"&gt;%core.root_dir%/lib/icinga-api/IcingaApi.php&lt;/parameter&gt;

                        &lt;parameter name="interfaces"&gt;

                                &lt;parameter name="pipe1"&gt;

                                        &lt;parameter name="enabled"&gt;true&lt;/parameter&gt;

                                        &lt;parameter name="type"&gt;IcingaApi::COMMAND_PIPE&lt;/parameter&gt;

                                        &lt;parameter name="pipe"&gt;/usr/local/icinga/var/rw/icinga.cmd&lt;/parameter&gt;

                                &lt;/parameter&gt;

                                &lt;parameter name="ssh1"&gt;

                                        &lt;parameter name="enabled"&gt;false&lt;/parameter&gt;

                                        &lt;parameter name="type"&gt;IcingaApi::COMMAND_SSH&lt;/parameter&gt;

                                        &lt;parameter name="ssh_bin"&gt;/usr/bin/ssh&lt;/parameter&gt;

                                        &lt;parameter name="ssh_user"&gt;icinga&lt;/parameter&gt;

                                        &lt;parameter name="ssh_host"&gt;127.0.0.15&lt;/parameter&gt;

                                        &lt;parameter name="ssh_port"&gt;22&lt;/parameter&gt;

                                        &lt;parameter name="ssh_timeout"&gt;20&lt;/parameter&gt;

                                        &lt;parameter name="ssh_pipe"&gt;/usr/local/icinga/var/rw/icinga.cmd&lt;/parameter&gt;

                                &lt;/parameter&gt;

                        &lt;/parameter&gt;</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">
                <p>Nachdem Sie Änderungen an diesen Konfigurationen vorgenommen haben, müssen sie den Cache leeren!</p>
            </td></tr>
</table></div>

            <pre class="programlisting"># rm -rf app/cache/config/*.php</pre>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Apache-Konfiguration</strong></span></p>

            <p>Voraussetzungen:</p>

            <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
                    <p>mod_rewrite, vielleicht müssen Sie einen Verweis erstellen:</p>
                </li></ul></div>

            <pre class="programlisting"># ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load</pre>

            <p>Bei OpenSuSE können Sie das Modul mit "a2enmod rewrite" aktivieren. Falls das nicht funktioniert, gibt es in der Datei
            /etc/sysconfig/apache2 die Zeile "APACHE_MODULES=...", der das Modul "rewrite" hinzugefügt werden muss.</p>

            <p>Editieren Sie die .htaccess unter /usr/local/icinga-web/pub und ändern Sie die RewriteBase (ab Zeile 14): </p>
<pre class="programlisting"> DirectoryIndex index.php

 Options -MultiViews -Indexes +FollowSymLinks
 Order allow,deny
 Allow from all

 &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On

    # This depends on your path
    # on independent hosts the base is '/'
    RewriteBase /icinga-web/

        # 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]
 &lt;/IfModule&gt;

 &lt;IfModule mod_deflate.c&gt;
        SetOutputFilter DEFLATE

        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip

        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

        Header append Vary User-Agent env=!dont-vary
 &lt;/IfModule&gt;

 &lt;IfDefine APACHE2&gt;
        AcceptPathInf  On
 &lt;/IfDefine&gt;

 #&lt;IfModule mod_auth_basic.c&gt;
 #       AuthType Basic
 #       AuthName "My http basic auth realm"
 #       AuthUserFile /path/to/my/htusers
 #       require valid-user
 #&lt;/IfModule&gt;</pre>

            <p>Bitte erstellen Sie noch einen neuen Alias im Konfigurationsverzeichnis des Webservers (hier in der icinga-web.conf):</p>

            <pre class="programlisting"> # vi /etc/apache2/conf.d/icinga-web.conf
   Alias /icinga-web /usr/local/icinga-web/pub
  &lt;directory /usr/local/icinga-web/pub&gt;
        AllowOverride All
  &lt;/directory&gt;</pre>

            <p>Leeren Sie den Cache:</p>

            <pre class="programlisting"> # rm /usr/local/icinga-web/app/cache/config/*.php</pre>

            <p>und starten Sie den Webserver neu:</p>

            <pre class="programlisting"> # service apache2 restart</pre>

            <p>bzw.</p>

            <pre class="programlisting"> # /etc/init.d/apache2 restart</pre>

            <p>oder</p>

            <pre class="programlisting"> # /etc/init.d/httpd restart</pre>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Testen</strong></span></p>

            <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">
                <p>Bitte achten Sie darauf, dass Ihre Datenbank, Apache, IDOUtils und Icinga gestartet sind!</p>
            </td></tr>
</table></div>

            <p>Öffnen Sie im Webbrowser http://localhost/icinga-web. Überprüfen Sie ob das Webinterface ohne Fehler "exceptions" startet, und
            loggen Sie sich mit dem User 'root' und dem Passwort 'password' ein.</p>

            <p>Viel Spaß :-)</p>
        </li>
<li class="listitem">
            <p><span class="bold"><strong>Fehler?</strong></span></p>

            <p>Diese Sammlung beinhaltet einige nützliche Informationen wie Sie Fehler finden und lösen können. Ebenso wird darauf hingewiesen,
            welche Informationen Sie im Fehlerfall angeben sollen, wenn Sie eine Frage auf den Mailinglisten oder auf <a class="link" href="http://www.icinga-portal.org" target="_top">http://www.icinga-portal.org</a> stellen.</p>

            <p>* Geben Sie immer die verwendete Version an - tar.gz oder GIT?</p>

            <p>* Browser, Version</p>

            <p>* Falls das Problem mit der Datenquelle besteht: Ausführliche Informationen zu API, IDOUtils, Core (Version, Debug Logs).</p>

            <p>Wo können Sie nachsehen?</p>

            <p>* Apache Error Logs, PHP Errors, PHP Dateien können nicht gefunden werden</p>

            <p>* /var/log/messages, /path/to/icinga/var/icinga.log</p>

            <p>Änderungen an der Icinga Web Konfiguration (z.B. API IDOUtils Einstellungen geändert) werden nicht aktualisiert?</p>

            <p>* Löschen Sie den Konfigurationscache in app/cache/config/*.php</p>

            <p>Icinga Web zeigt eine blanke Seite?</p>

            <p>* Apache Errors Logs =&gt; mod_rewrite enabled, php Abhängigkeiten ok? 'make testdeps'</p>

            <p>* .htaccess/VHost Konfiguration =&gt; Pfade nicht korrekt? Icinga Web zeigt keine Daten?</p>

            <p>* Sehen Sie in den Apache Error Logs nach, ob dort ein Fehler bezüglich fehlender IcingaApi.php auftritt =&gt; Überprüfen Sie anhand
            des Installationguides ob Sie die Icinga API korrekt installiert haben.</p>

            <p>* Datenbankzugriff verweigert =&gt; Überprüfen Sie ob die Datenbankeinstellungen für Icinga Web korrekt sind.</p>

            <p>IDOUtils Datenbank wird nicht gefüllt?</p>

            <p>* "Error writing to data sink" =&gt; Überprüfen Sie die IDOUtils (ido2db runs 2x - ok?), ido2db.cfg debug_level=-1,
            debug_verbosity=2, restarten Sie IDOUtils und suchen Sie Fehler in ido2db.debug</p>

            <p>* Keine Daten vorhanden =&gt; Überprüfen Sie icinga.log ob IDOMOD zu Beginn geladen wird. Falls nicht, enablen Sie das Event Broker
            Modul in icinga.cfg so wie im Icinga Core mit . <a class="link" href="quickstart-idoutils.html" title="Icinga-Schnellstart mit IDOUtils">IDOUtils Quickstart Guide</a></p>

            <p>* IDOUtils DB-Schema ist die aktuellste Version? =&gt; Falls nicht, überprüfen Sie mögliche Upgrades anhand der Docs dafür.</p>

            <p>* Sockets sind korrekt definiert? =&gt; Unix oder TCP Socket, TCP wahlweise mit oder ohne SSL</p>

            <p>Sofern Sie Fragen oder Updates haben, zögern Sie bitte nicht uns diese mitzuteilen! :-)</p>
        </li>
</ol></div>

    <a class="indexterm" name="id5614347"></a>

    <a class="indexterm" name="id5614440"></a>
</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="icinga-api.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"> Installation und Benutzung der Icinga API</td>
</tr>
</table>
</div>
<P class="copyright">© 2009-2010 Icinga Development Team, http://www.icinga.org</P>
</body>
</html>