Thanks a lot Michael for the reply.   I am using Ubuntu x64 latest version with 
no GUI.
I will try your suggestions when I get time and write back.

Grant.

From: Michael Friedrich [mailto:[email protected]]
Sent: Friday, 13 August 2010 4:25 PM
To: [email protected]
Subject: Re: [icinga-users] Problem Getting Icinga-Web to work

Grant Carthew (AU) wrote:
Hi All,
I am a noob to both Linux and Icinga so just want to make sure I fix this 
problem without adding other problems;
I have completed the Icinga Quickstart with IDOUtils, works great.
I have just installed Icinga-Web and got most of it working but am finding the 
web interface just states loading...  and never displays details.
I have run a php icingaWebTest and this is the result;

PHPUnit @package_version@ by Sebastian Bergmann.

Running post installation checks
        Checking if cache folders exist
        Cache folders exist
.       Testing if web user can write to cache
touch: cannot touch 
`/usr/local/icinga-web/etc/..//app/modules/AppKit/cache/testfile.txt': 
Permission denied
Web user www-data couldn't write to cache 
/usr/local/icinga-web/etc/..//app/modules/AppKit/cachePlease check that the 
either the user www-data or the group www-data has write access to this folder 
- otherwise icinga-web won't work
touch: cannot touch 
`/usr/local/icinga-web/etc/..//app/modules/Web/cache/testfile.txt': Permission 
denied
Web user www-data couldn't write to cache 
/usr/local/icinga-web/etc/..//app/modules/Web/cachePlease check that the either 
the user www-data or the group www-data has write access to this folder - 
otherwise icinga-web won't work
2 error(s) were reported. Try to fix them? [y/n] (y)y
        Cache is writeable for web user
.       Testing log write-access for web user
        Log-directory is writeable for wwwGroup!
.       Testing if API Connection is available
Could not connect to API. The API Connector returned the following message:
getConnection failed: Database connection failed: SQLSTATE[28000] [1045] Access 
denied for user 'icinga'@'localhost' (using password: YES))
Without the icinga-API you will not be able to request any information from 
icinga!
FTesting accessibility
        Checking table for NsmSession...
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to 
allocate 64 bytes) in 
/usr/local/icinga-web/lib/doctrine/lib/Doctrine/Connection.php on line 1584
r...@mon:/usr/local/icinga-web/etc/tests#

So I can see three issues in the result.   I need to change permissions on the 
/usr/local/icinga-web directory?   Is this correct?   And what permissions do I 
need to add and what is the best way to do this?

The permissions should now be fixed as you have been asked. but recheck the 
perms on app/cache in your web install dir. This is the location where 
pre-cached configuration will be stored (the framework parses your *.xml 
configs and generates cached configs).


Also the API Connector has access denied for the icinga user.   What do I need 
to change in the Modules.xml file?

As stated in the docs, you need to specify the api credentials for your 
datasource - in this case idoutils db. have a look into your ido2db.cfg and 
check if those credential work on the idoutils db. after that, fill those into 
your app/module/Web/config/module.xml

With 1.0.3 reaching the world next week, there will be configure options for 
that too, to be able to do that during the setup, not afterwards.


Lastly the memory issue.   What is needed here?

Would be interesting which linux distribution you are using. The error refers 
to the fact that the allowed memory for php is set to low (probably 64M, while 
128M or higher is required to work. Check your php.ini (both apache2 AND cli) 
and set that to higher values (and restart apache afterwards).

Kind regards,
Michael




________________________________
- NOTICE FROM DIMENSION DATA LEARNING SOLUTIONS PTY LTD
This message is confidential, and may contain proprietary or legally privileged 
information. If you have received this email in error, please notify the sender 
and delete it immediately.


Internet communications are not secure. You should scan this message and any 
attachments for viruses. Under no circumstances do we accept liability for any 
loss or damage which may result from your receipt of this message or any 
attachments.
******************************************************************************
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to