Hi,

I am new to Icinga but looking at moving from Nagios to the Icinga fork.

I have been trying to install icinga-web1.5.1 on a Centos 6 box.  I have
got Icinga Core, Idoutils, Classic GUI, working with all the prerequisites.

Configure outputs a good rate of success:

./configure --with-web-user=apache --with-web-group=apache
--with-web-path=/icinga-web
checking for a BSD-compatible install... /usr/bin/install -c
checking for grep that handles long lines and -e... /bin/grep
checking for a sed that does not truncate output... /bin/sed
checking for php... /usr/bin/php
checking for mysql... /usr/bin/mysql
checking for phing... /usr/bin/phing
checking if path /etc/httpd/conf.d exists... found
checking for phpunit... /usr/bin/phpunit
checking for phpcs... /usr/bin/phpcs
checking for devel-mode... no (good)
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib/icingaScheduler/config.php
config.status: creating pub/Makefile
config.status: creating etc/Makefile
config.status: creating bin/Makefile
config.status: creating doc/Makefile
config.status: creating app/Makefile
config.status: creating etc/sitecfg/Makefile
config.status: creating app/config/databases.xml
config.status: creating app/config/icinga.xml
config.status: creating app/config/logging.xml
config.status: creating app/config/settings.xml
config.status: creating app/config/translation.xml
config.status: creating app/modules/Api/config/access.xml
config.status: creating app/modules/AppKit/config/module.xml
config.status: creating app/modules/AppKit/config/auth.xml
config.status: creating app/modules/Cronks/config/module.xml
config.status: creating app/modules/Reporting/config/module.xml
config.status: creating etc/build.properties
config.status: creating tests/phpunit/test.properties
config.status: creating etc/apache2/icinga-web.conf
config.status: creating etc/scheduler/icingaCron
config.status: creating bin/clearcache.sh
config.status: creating pub/.htaccess
config.status: creating pub/soap/.htaccess

icinga-web successfully configured!

Please proceed with make to install your icinga-web instance:

 * make               Some general hints about make targets
 * make install       Install a new instance of icinga-web
 * make upgrade       Upgrades an existing installation:
                      keep site config files untouched!

However, when I make test:

I get a bunch of errors:

There were 6 failures:

1) userRightsTest::testCacheDirsAreWriteable
Cache permission check failed

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/installation/userRightsTest.php:66
/usr/bin/phpunit:44

2) userRightsTest::testLogDir
Couldn't write log files

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/installation/userRightsTest.php:94
/usr/bin/phpunit:44

3) ModuleLoadingTest::testModuleRouting
Failed asserting that 0 matches expected 1.

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/module/ModuleLoadingTest.php:16
/usr/bin/phpunit:44

4) icingaDatabaseAccessibleTest::testAvailable
Table for Doctrinemodel Doctrine_File_Index not found (SQLSTATE[42S02]:
Base table or view not found: 1146 Table 'icinga.doctrine__file__index'
doesn't exist. Failing Query: "SELECT d.keyword AS d__keyword, d.field AS
d__field, d.position AS d__position, d.file_id AS d__file_id FROM
doctrine__file__index d")

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/configDatabase/icingaDatabaseAccessibleTest.php:93
/usr/bin/phpunit:44

5) availabilityTest::testWrongLogin
Login threw an exception Cannot open file
"/usr/local/icinga-web/log/debug-2011-11-11.log", please check permissions
on file or directory.

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/interface/availabilityTest.php:45
/usr/bin/phpunit:44

6) availabilityTest::testCorrectLogin
Login threw an exception Cannot open file
"/usr/local/icinga-web/log/debug-2011-11-11.log", please check permissions
on file or directory.

/root/downloads/icinga-web-1.5.1/tests/phpunit/tests/interface/availabilityTest.php:76
/usr/bin/phpunit:44

FAILURES!
Tests: 47, Assertions: 30, Failures: 6, Errors: 8, Skipped: 18.
make: *** [test] Error 2


I have checked the obvious fixes like PHP safe mode is set to off etc. but
still no joy and this is really causing me a roadblock at the moment.

Can anyone assist?

Also, is the rpm of icinga-gui the new web version or the classic?

I have tried using RPM's instead of installing from source but the same
issues occur.

Any help kindly appreciated.

Thanks
Tom
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to