Thursday, May 23rd 2013, 4:11pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 81

Gender: male

Location: Aachen

Occupation: Monitoring-Fritze

Number of monitoring servers: 1

Nagios Version: 0.0

Icinga Version: 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~190

Number of services: ~2000

OS: 10.04.2 Server LTS

Plugin Version: 1.4.13

IDO-Version: 1.6.1

Other Addons: PNP 0.6.16

1

Wednesday, October 27th 2010, 2:26pm

[solved] Webfrontend verdreht

Hallo Wissende,

ich bekomme das Webfrontend auf meinem Ubuntu 10.04.1 Serfer LTS nicht ans fliegen.


Source code

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
sudo php icingaWebTesting.php
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHPUnit @package_version@ by Sebastian Bergmann.

-> 500 internal server error!

=== Error ===
Uncaught exception AppKitPHPError thrown!

=== Message ===
PHP Error parse_ini_file(/usr/local/icinga-web/etc/..//etc/tests/test.properties): failed to open stream: No such file or directory (/usr/local/icinga-web/etc/tests/tests/installation/userRightsTest.php:10)

=== Stacktrace ===
#0 [internal function]: AppKitExceptionHandler::phpErrorException(2, 'parse_ini_file(...', '/usr/local/icin...', 10, Array)
#1 /usr/local/icinga-web/etc/tests/tests/installation/userRightsTest.php(10): parse_ini_file('/usr/local/icin...')
#2 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestCase.php(701): userRightsTest->setUp()
#3 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestResult.php(687): PHPUnit_Framework_TestCase->runBare()
#4 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestCase.php(653): PHPUnit_Framework_TestResult->run(Object(userRightsTest))
#5 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(757): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
#6 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(732): PHPUnit_Framework_TestSuite->runTest(Object(userRightsTest), Object(PHPUnit_Framework_TestResult))
#7 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(675): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
#8 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/Framework/TestSuite.php(675): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
#9 /usr/local/icinga-web/lib/agavi/src/vendor/PHPUnit/TextUI/TestRunner.php(350): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
#10 /usr/local/icinga-web/lib/agavi/src/testing/AgaviTesting.class.php(101): PHPUnit_TextUI_TestRunner->doRun(Object(AgaviTestSuite), Array)
#11 /usr/local/icinga-web/etc/tests/icingaWebTesting.php(66): AgaviTesting::dispatch(Array)
#12 {main}



apache error.log gibt nichts besonderes -so erscheint mir das-.

Source code

1
2
3
4
5
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Tue Oct 26 19:55:59 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations
[Tue Oct 26 20:00:26 2010] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Tue Oct 26 20:01:39 2010] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.5 with Suhosin-Patch configured -- resuming normal operations



Die angepasste
/usr/local/icinga-web/app/modules/Web/config/module.xml
sieht so aus

Source code

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
<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations xmlns="http://agavi.org/agavi/config/parts/module/1.0" xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0">
    	<ae:configuration>

            	<module enabled="true">
                    	<settings>
                            	<setting name="title">Web Module</setting>
                            	<setting name="version">1.0</setting>

                            	<setting name="appkit_module.app.javascript_files">
                                            	<!--  ICINGA JS -->
                                            	<ae:parameter>%core.module_dir%/Web/lib/js/StatusData.js</ae:parameter>
                                            	<ae:parameter>%core.module_dir%/Web/lib/js/SimpleDataProvider.js</ae:parameter>
                            	</setting>

                            	<setting name="api.interfaces.data">
                                    	<ae:parameter name="api_type">IcingaApi::CONNECTION_IDO</ae:parameter>
                                    	<ae:parameter name="config_type">mysql</ae:parameter>
                                    	<ae:parameter name="config_host">127.0.0.1</ae:parameter>
                                    	<ae:parameter name="config_port">3306</ae:parameter>
                                    	<ae:parameter name="config_database">icinga</ae:parameter>
                                    	<ae:parameter name="config_user">icinga</ae:parameter>
                                    	<ae:parameter name="config_password">geheim</ae:parameter>
                                    	<ae:parameter name="config_table_prefix">icinga_</ae:parameter>
                            	</setting>
                    	</settings>

                    	<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="simple_data_provider.xml" />

                    	<!-- include icnga connection settings -->
                    	<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icinga-io.xml" />

                    	<!-- include optional override settings file -->
                    	<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="icinga-io.site.xml">
                            	<xi:fallback></xi:fallback>
                    	</xi:include>

            	</module>

    	</ae:configuration>
</ae:configurations>



/

Source code

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
usr/bin/php bin/testdeps.php
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Icinga-web dependencies (running 20 test)

PHP (core) tests
    	1/20 Test php version >= 5.2.3 (REQUIRED) ... (version 5.3.2-1ubuntu4.5 >= 5.2.3) OK
    	2/20 Test for PEAR (REQUIRED) ... OK

PHP extensions
    	3/20 Test php5-xsl (REQUIRED) ... (xsl found v0.1) OK
    	4/20 Test php5-ldap ... (ldap found) OK
    	5/20 Test php5-pdo (REQUIRED) ... (PDO found v1.0.4dev) OK
    	6/20 Test php5-dom (REQUIRED) ... (dom found v20031129) OK
    	7/20 Test php5-session (REQUIRED) ... (session found) OK
    	8/20 Test php5-spl (REQUIRED) ... (SPL found v0.2) OK
    	9/20 Test php5-pcre (REQUIRED) ... (pcre found) OK
    	10/20 Test php5-tokenizer (REQUIRED) ... (tokenizer found v0.1) OK
    	11/20 Test php5-libxml (REQUIRED) ... (libxml found) OK
    	12/20 Test php5-reflection (REQUIRED) ... (Reflection found v$Revision: 293036 $) OK
    	13/20 Test php5-gettext (REQUIRED) ... (gettext found) OK

Optional pdo drivers
    	14/20 Test php5-pdo-mysql ... (pdo_mysql found v1.0.2) OK
    	15/20 Test php5-pdo-pgsql ... (Extension pdo_pgsql does not exist) FAIL

Optional php extension
    	16/20 Test php5-soap ... (soap found) OK
    	17/20 Test php5-xmlrpc ... (xmlrpc found v0.51) OK
    	18/20 Test php5-iconv ... (iconv found) OK
    	19/20 Test php5-gd ... (gd found) OK
    	20/20 Test php.ini memory_limit ... (memory_limit='-1') FAIL

All over result: PASS (required 12/12, optional 6/8, all 18/20, time 0.02s)

Exit (status=0)


cache geleert - hab ich; Kist rebootet - hab ich;

Eintrag im mysql -> nsm_log

Source code

1
Uncaught AppKitPHPError: PHP Error ob_end_clean(): failed to delete buffer. No buffer to delete. (/usr/local/icinga-web/lib/agavi/src/exception/AgaviException.class.php:249) (/usr/local/icinga-web/app/modules/AppKit/lib/logging/AppKitExceptionHandler.class.php:20)


Ich komm da nicht weiter.. :-(

Icinga & icinga-web 1.2.1

Gruß Dirk

This post has been edited 2 times, last edit by "Ruddimaster" (Oct 27th 2010, 11:22pm)


dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

2

Wednesday, October 27th 2010, 3:06pm

poste mal die apache config, ob der alias fuer pub/js gesetzt ist. sowie pruefe ob mod_rewrite enabled ist.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Wolti

Beginner

Posts: 2

Gender: male

Location: Aachen

Number of monitoring servers: 3

Nagios Version: 3

Icinga Version: 1.2.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 11

Number of services: 74

OS: Windows, Linux

Plugin Version: 1.4.15

NDO Version: 3

3

Wednesday, October 27th 2010, 4:41pm

same...

Hallo zusammen,



ich habe leider das gleiche Problem. Gestestet mit der (Incinga-Web)1.2.1 und 1.2.0 mit Icinga 1.2.1+IDOUtils (tar-version). Testsystem war beides mal ein blankes Ubuntu Server 10.10 64-Bit (leider vorgegeben). Die Logfiles von Apache sind ohne Befund und der Rest ist nach der angegebenen Anleitung+Hirn gemacht. Icinga an sich funktioniert Einwandfrei, Daten kommen an und können auch von beidem gelesen werden. make testdept ist auch ohne Befund.

In der icinga-web.conf ist eigentlich auch alles im Grünen:

Source code

1
2
3
4
Alias /icinga-web /usr/local/icinga-web/pub 
<directory /usr/local/icinga-web/pub> 
AllowOverride All 
</directory>




Jede Idee ist wilkommen, bin zu fast jeder Schandtat diesbezüglich bereit, da Testsystem!=Produktivsystem ;-)



grüße,

Daniel

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

4

Wednesday, October 27th 2010, 8:22pm

entweder verwendest du keine aktuelle apache config (make install-apache-config hilft weiter), oder bei dir ist die alte methodik mit den softlinks nicht aktiv.

anhand deiner pfade sollte das ganze naemlich so aussehen:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Alias /icinga-web/js/ext3 /usr/local/icinga-web/lib/ext3
Alias /icinga-web /usr/local/icinga-web/pub

<Directory /usr/local/icinga-web/lib/ext3>
Order allow,deny
Allow from all
</Directory>

<Directory /usr/local/icinga-web/pub>
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Posts: 81

Gender: male

Location: Aachen

Occupation: Monitoring-Fritze

Number of monitoring servers: 1

Nagios Version: 0.0

Icinga Version: 1.6.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: ~190

Number of services: ~2000

OS: 10.04.2 Server LTS

Plugin Version: 1.4.13

IDO-Version: 1.6.1

Other Addons: PNP 0.6.16

5

Wednesday, October 27th 2010, 8:53pm

... bin jetzt ein bischen weiter...

nach Anleitung von
http://www.sysadminslife.com/linux/howto…debian-5-lenny/
+
nache "make install" noch ein " make install-apache-config"

jetzt hab ich das "loading" im Dauerzustand... aber da gibs ja einen thread...

@same: Deine icinga-web.conf ist nicht vollständig.

make install-apache-config macht da noch was mehr:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# icinga-web apache configuration
# - Enable all options .htaccess
# - Add extjs library to alias
#

Alias /icinga-web/js/ext3 /usr/local/icinga-web/lib/ext3
Alias /icinga-web /usr/local/icinga-web/pub

<Directory /usr/local/icinga-web/lib/ext3>
    	Order allow,deny
    	Allow from all
</Directory>

<Directory /usr/local/icinga-web/pub>
    	DirectoryIndex index.php
    	Options FollowSymLinks
    	AllowOverride all
    	Order allow,deny
    	Allow from all
</Directory>


ich hoffe das hilft Dir weiter...

dnsmichi

Super Moderator

Posts: 5,988

Birthday: May 30th 1983 (29)

Gender: male

Location: Nürnberg

Occupation: Consultant / Developer beim besten Arbeitgeber der Welt @netways

Number of monitoring servers: Icinga: 4x dev, 10++ prod, Icinga2: 2x dev

Nagios Version: s/nagios/icinga/

Icinga Version: 1.9.1 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 1000+

Number of services: 15000+

OS: RHEL, Debian, SUSE

Plugin Version: 1.4.16

IDO-Version: 1.9.1 / GIT MySQL/Postgresql/Oracle

Other Addons: Icinga Web, PNP, check_multi, inGraph, EventDB, LConf

6

Wednesday, October 27th 2010, 9:15pm

naja, es gibt ja noch paket bezogene abhaengigkeiten, die im icinga-web install guide beschrieben sind, nicht aber in dem angefuehrten howto. lediglich der pointer zu 'make testdeps' sollte ein wenig hilfreich sein in dieser causa, da ich vermute, dass bei dir der php mysql treiber fehlt.
+++ Icinga / LConf Developer +++ Senior Consultant at []NETWAYS> +++
+++ Icinga 1.9 || Icinga 2 +++ Icinga Support || IRC +++

Wolti

Beginner

Posts: 2

Gender: male

Location: Aachen

Number of monitoring servers: 3

Nagios Version: 3

Icinga Version: 1.2.1

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 11

Number of services: 74

OS: Windows, Linux

Plugin Version: 1.4.15

NDO Version: 3

7

Wednesday, October 27th 2010, 11:02pm

Solved



danke euch beiden, make install-apache-config hats schon getan...

Die Datenbankanbindung usw. läuft sauber.



Grüße,

Daniel