PDA

View Full Version : Ubuntu 8.04 + Cent-2 (5240) - Installation Failed


exoid
05-23-2008, 07:07 PM
Hello;

I have tried multiple times to install Centreon-2 (latest revisions, this time around being 5240) but it keeps failing at Step 10 of install & errors in the initial ./install.sh script as outlined below:

Here is where ./install.sh is giving errors (all following the online DOC for Debian install):

------------------------------------------------------------------------
Centreon Post Install
------------------------------------------------------------------------


/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 941: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 983: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 990: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 990: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 990: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 997: /usr/local/centreon/www/install/install.conf.php: No such file or directory
/usr/local/src/trunk/centreon-2.0-SVN/libinstall/functions: line 1000: /usr/local/centreon/www/install/install.conf.php: No such file or directory
Create /usr/local/centreon/www/install/install.conf.php OK
Create /etc/centreon/instCentWeb.conf OK





------------------------------------------------------------------------
Start CentPlugins Installation
------------------------------------------------------------------------

Where is your CentPlugins lib directory
default to [/var/lib/centreon/centplugins]
>

Do you want me to create this directory ? [/var/lib/centreon/centplugins]
[y/n], default to [n]:
> y
Path /var/lib/centreon/centplugins OK
Finding Nagios user : nagios
Finding Nagios group : nagios
Preparing Centreon temporary files)
/tmp/centreon-setup exists, it will be moved...
ls: cannot access /tmp/centreon-setup/src/plugins/src/check*centreon*: No such file or directory
ls: cannot access /tmp/centreon-setup/src/plugins/src/check_snmp*: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/centreon.pm: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/centreon.conf: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/check_meta_service: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/process-service-perfdata: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/submit_host_check_result: No such file or directory
sed: can't read /tmp/centreon-setup/src/plugins/src/submit_service_check_result: No such file or directory
CentPlugins is installed
root@tst-nagios3:/usr/local/src/trunk/centreon-2.0-SVN# /etc/init.d/apache2 restart
* Restarting web server apache2 [ OK ]


I think this has something to do as to why Step-10 of Centreon-WWW installation is failing:

http://img368.imageshack.us/img368/2410/step10kv2.jpg

I've also noticed the following:

- In Ubuntu (7.xx & 8.xx) the Apache2-Server user/group is www-data NOT apache
- After installation is complete with ./install.sh the "www" folder is never moved into Centreon directory.

My install log is also attached.

WAtt
05-23-2008, 08:13 PM
Hi


/usr/local/src/trunk/centreon-2.0-SVN/libinstall/CentWeb.sh: line 75: /usr/local/src/trunk/centreon-2.0-SVN/libinstall/cinstall: Permission denied


Can you check a right on libinstall/cinstall ???

exoid
05-23-2008, 09:00 PM
Below is the permissions:

drwxr-xr-x 2 sysmon sysmon 4096 2008-05-23 03:56 libinstall

-rw-r--r-- 1 sysmon sysmon 6881 2008-05-20 18:00 cinstall

Initially, install.sh is ran like:

sudo -s (to become root)
bash install.sh

Thanks.

WAtt
05-24-2008, 04:44 PM
Please try


$> chmod +x libinstall/*

exoid
05-25-2008, 05:41 AM
I will try this when I am back at work on Monday and let you know the outcome; thanks for the help.

Btw; when Centreon checks to make sure "apache" user & group is there, can we bypass this? Because in Ubuntu the Apache2 username is assigned to www-data.

WAtt
05-25-2008, 05:35 PM
Is true, if you use a Ubuntu Package. When you want to compil manually Nagios3, you'll can use "my_apache_user" for apache user.

By default I prefer check.

I think I'll make a bypass on CentStorage,CentCore,CentPlugins* when a check succeful on CentWeb install...

exoid
05-26-2008, 06:39 PM
So, after the "chmod +x" I am able to complete the setup; mind you I did download the latest trunk version 5251 as well.

I get to the login web-frontend just fine, however after I login I get a Smarty error as follows:

Fatal error: Smarty error. $compile_dir '../GPL_LIB/SmaryCache/compile' does not exist or is not a directory. in /usr/local/centreon/GPL_LIB/Smarty/libs/Smarty.class.php on like 1095.

Any idea?

exoid
05-26-2008, 08:28 PM
Fixed this, I created the required folders manually and set the right user for the folders; I was able to login to Centreon to get stuck at:

"Connection error to NDO DataBase!"

How to start NDO DataBase?